gemini-tg-image-gen
⚠Review·Scanned 2/17/2026
This skill generates images via OpenRouter's google/gemini-2.5-flash-image model and sends them to Telegram, running scripts/generate_image.py and saving files under /root/.openclaw/workspace/tmp. It reads OPENROUTER_API_KEY, calls https://openrouter.ai/api/v1/chat/completions, downloads image URLs, and instructs running the Python script.
from clawhub.ai·v15a0542·6.1 KB·0 installs
Scanned from 1.0.0 at 15a0542 · Transparency log ↗
$ vett add clawhub.ai/drones277/gemini-tg-image-genReview findings below
Gemini TG Image Gen (OpenRouter)
Workflow
- Immediately notify user in Telegram:
"⏳ Идёт генерация, подождите немного..." - Use OpenRouter model
google/gemini-2.5-flash-image. - Read API key from env:
OPENROUTER_API_KEY. - Run script to generate and save image locally.
- Send the image to Telegram using the
messagetool (local file path). - NO_REPLY.
Usage
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.