Gemini TG Image Gen

👤 drones277 📦 v1.0.0 ⭐ 3.9 ⬇️ 2.2K 下载
🎨 设计多媒体 免费 🔑 需 API Key

📖 技能介绍


name: 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.


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.

    这个技能的最新版本可以在7w4.net小葱技能站找到。

  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 "<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.

🤖 AI 评测

这个工具质量中等,基本功能可用但完善度不足。优点是工作流程清晰、代码逻辑完整、支持多种图片格式、考虑了错误处理。缺点是文档不够详细、缺少依赖说明、代码有 bug 残留。修复这些问题后会更加好用。目前使用前需要一定技术基础来排查问题。

📊 多维度评分

适应性3.6
规范性3.6
有效性3.8
可靠性4
可信度4.4

📁 包含文件 (4 个)

📄 SKILL.md 1 KB
📄 _meta.json 138 B
📄 scripts/generate_image.py 5 KB
📄 skill-card.md 2.1 KB