← Back to Skills Marketplace
drones277

Gemini TG Image Gen

by RigdenDjapo · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1591
Downloads
1
Stars
3
Active Installs
1
Versions
Install in OpenClaw
/install gemini-tg-image-gen
Description
Generate images via OpenRouter (google/gemini-2.5-flash-image) and send to Telegram. Use when user asks for AI-generated images in TG.
README (SKILL.md)

Gemini TG Image Gen (OpenRouter)

Workflow

  1. Immediately notify user in Telegram: "⏳ Идёт генерация, подождите немного..."
  2. Use OpenRouter model google/gemini-2.5-flash-image.
  3. Read API key from env: OPENROUTER_API_KEY.
  4. Run script to generate and save image locally.
  5. Send the image to Telegram using the message tool (local file path).
  6. NO_REPLY.

Usage

OPENROUTER_API_KEY=... python3 scripts/generate_image.py "\x3Cprompt>"

The script prints a JSON object with paths.

Telegram Send

# step 1: waiting message
message action=send channel=telegram text="⏳ Идёт генерация, подождите немного..."

# step 5: send image
message action=send channel=telegram media="/root/.openclaw/workspace/tmp/openrouter_image_*.png" caption="Generated: \x3Cprompt>"

After sending, use NO_REPLY.

Usage Guidance
This skill appears to implement what it claims, but there are important issues to consider before installing: - Metadata mismatch: The skill will fail without OPENROUTER_API_KEY, but that env var is not declared in the skill metadata. Only set that API key if you trust the skill and the OpenRouter account. - Network risk: The script downloads whatever URLs are returned by OpenRouter. If an attacker or an unexpected response supplies a URL, the agent will fetch it (possible SSRF or access to internal resources). Consider running this in a network-restricted sandbox or adding URL host validation/allowlist. - Dependency note: The script requires Python and the requests library; the skill does not declare those requirements. Ensure your runtime provides them. - Code issues: There's a bug in _extract_image_urls (uses an undefined b64_json variable) that may raise an exception; you may want to inspect/fix the script before use. Recommendations: - Ask the publisher to update the registry metadata to declare OPENROUTER_API_KEY as a required credential and list runtime dependencies. - Prefer running the skill in an isolated environment (no access to internal networks) and/or modify the script to validate/whitelist image hosts and limit timeouts/response sizes. - Review or test the script locally first. If you don't trust the source, avoid providing your OpenRouter API key.
Capability Analysis
Type: OpenClaw Skill Name: gemini-tg-image-gen Version: 1.0.0 The skill bundle is benign. It generates images using the OpenRouter API and sends them to Telegram, as described. The `SKILL.md` instructions are clear and do not contain any prompt injection attempts or instructions to deviate from the stated purpose. The `scripts/generate_image.py` script correctly interacts with `openrouter.ai`, reads the `OPENROUTER_API_KEY` environment variable, and saves generated images to a temporary workspace directory (`/root/.openclaw/workspace/tmp`). There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or obfuscation. All actions are aligned with the stated purpose.
Capability Assessment
Purpose & Capability
The skill's stated purpose is image generation via OpenRouter and sending to Telegram, which matches the code and instructions. However the registry metadata declares no required environment variables or primary credential, while SKILL.md and scripts/generate_image.py require OPENROUTER_API_KEY. That metadata mismatch is a meaningful incoherence (the skill will fail without the API key).
Instruction Scope
SKILL.md instructs the agent to run the bundled script which calls OpenRouter and then downloads whatever image URLs/data the service returns, saves them under /root/.openclaw/workspace/tmp, and sends the local file via the Telegram message tool. Allowing the agent to fetch arbitrary URLs from the model response can let it make outbound requests to attacker-controlled or internal hosts (SSRF / unexpected network I/O). The instructions also rely on an env var (OPENROUTER_API_KEY) that wasn't declared in metadata.
Install Mechanism
There is no install spec (instruction-only + bundled script), which is lower risk than arbitrary downloads. The script uses the Python requests library but the skill metadata doesn't declare that dependency; runtime will fail or behave unpredictably if requests isn't available.
Credentials
The code expects OPENROUTER_API_KEY in the environment, but the skill metadata lists no required env vars and no primary credential. That omission is an inconsistency and should be corrected. No other credentials are requested, which is proportionate, but the missing declaration reduces transparency.
Persistence & Privilege
The skill does not request always:true, does not alter other skills, and is user-invocable. It writes files only to its workspace path (/root/.openclaw/workspace/tmp) which is expected for a generator; no elevated persistence or cross-skill modification is requested.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gemini-tg-image-gen
  3. After installation, invoke the skill by name or use /gemini-tg-image-gen
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial: Generate AI images via OpenRouter Gemini 2.5 Flash + send to Telegram. Uses OPENROUTER_API_KEY env.
Metadata
Slug gemini-tg-image-gen
Version 1.0.0
License
All-time Installs 3
Active Installs 3
Total Versions 1
Frequently Asked Questions

What is Gemini TG Image Gen?

Generate images via OpenRouter (google/gemini-2.5-flash-image) and send to Telegram. Use when user asks for AI-generated images in TG. It is an AI Agent Skill for Claude Code / OpenClaw, with 1591 downloads so far.

How do I install Gemini TG Image Gen?

Run "/install gemini-tg-image-gen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Gemini TG Image Gen free?

Yes, Gemini TG Image Gen is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Gemini TG Image Gen support?

Gemini TG Image Gen is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Gemini TG Image Gen?

It is built and maintained by RigdenDjapo (@drones277); the current version is v1.0.0.

💬 Comments