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.
  5. Send the image to Telegram using the message tool (local file path).

    7w4.net提供免費和付費技能下載。

  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