Skip to content

Gemini TG Image Gen

Verified

Generate images via OpenRouter (google/gemini-2.5-flash-image) and send to Telegram. Use when user asks for AI-generated images in TG.

515 downloads
$ Add to .claude/skills/

About This Skill

# 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

```bash OPENROUTER_API_KEY=... python3 scripts/generate_image.py "<prompt>" ```

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: <prompt>" ```

After sending, use `NO_REPLY`.

Use Cases

  • Generate images through a Telegram bot powered by Gemini's image API
  • Create a Telegram-based image generation service for team or community use
  • Allow non-technical users to generate images via simple Telegram messages
  • Build a Telegram bot that converts text prompts to visual content
  • Provide image generation access to Telegram groups for creative collaboration

Pros & Cons

Pros

  • +Telegram interface makes image generation accessible to non-technical users
  • +Group support enables collaborative image generation in team chats
  • +No app installation needed — works through existing Telegram client

Cons

  • -Requires both Telegram Bot API token and Gemini API credentials
  • -Only available on claude-code and openclaw platforms
  • -Image generation latency may be noticeable in real-time chat contexts

FAQ

What does Gemini TG Image Gen do?
Generate images via OpenRouter (google/gemini-2.5-flash-image) and send to Telegram. Use when user asks for AI-generated images in TG.
What platforms support Gemini TG Image Gen?
Gemini TG Image Gen is available on Claude Code, OpenClaw.
What are the use cases for Gemini TG Image Gen?
Generate images through a Telegram bot powered by Gemini's image API. Create a Telegram-based image generation service for team or community use. Allow non-technical users to generate images via simple Telegram messages.

100+ free AI tools

Writing, PDF, image, and developer tools — all in your browser.

Next Step

Use the skill detail page to evaluate fit and install steps. For a direct browser workflow, move into a focused tool route instead of staying in broader support surfaces.