gemini-image-generatorGenerate, edit, and compose images using Gemini models. Activate when user asks to generate images, draw, create logos/posters/icons/banners, edit/modify pho...
Install via ClawdBot CLI:
clawdbot install wangyan/gemini-image-generator通过 Nano Banana 实现文生图、图片编辑与多图合成,支持 OpenAI 兼容和 Google 原生两种 API 格式,可自定义端点和密钥。
python3 或 uv 不可用时,返回 缺失依赖:{名称} + 安装命令,不做文本兜底。 MEDIA: 行。无产物则自动重试 1 次;仍失败输出 图片生成失败 - 原因/建议。uv run {baseDir}/scripts/generate_image.py --prompt "图片描述" --filename "output.png"
uv run {baseDir}/scripts/generate_image.py --prompt "编辑指令" --filename "edited.png" -i "/path/input.png" --resolution 2K
uv run {baseDir}/scripts/generate_image.py --prompt "合成指令" --filename "composed.png" -i img1.png -i img2.png -i img3.png
uv run {baseDir}/scripts/generate_image.py --prompt "描述" --filename "output.png" \
--base-url "https://example.com/v1" --api-key "sk-xxx" --model "gemini-3-pro-preview"
uv run {baseDir}/scripts/generate_image.py --prompt "描述" --filename "output.png" --api-format google
优先级:命令行参数 > 环境变量(由 skills.entries.gemini-image-generator.env 注入)
| 参数 | 环境变量 | 说明 |
|------|---------|------|
| --api-key / -k | apiKey(通过 primaryEnv 注入) | API 密钥(必填) |
| --base-url / -b | GEMINI_BASE_URL | API 端点 URL(必填) |
| --model / -m | GEMINI_MODEL | 模型名称(默认 gemini-3-pro-preview) |
| --api-format / -F | GEMINI_API_FORMAT | openai(默认)或 google |
| --timeout / -t | GEMINI_TIMEOUT | 超时秒数(默认 300) |
| --resolution / -r | GEMINI_RESOLUTION | 1K(默认)、2K、4K |
| --output-dir / -o | GEMINI_OUTPUT_DIR | 输出目录(默认 images) |
可选参数:
--input-image / -i:输入图片路径(可重复,最多 14 张)--quality:standard(默认)或 hd--style:natural(默认)或 vivid--aspect-ratio / -a:宽高比(如 1:1、16:9、9:16、4:3、3:4)--verbose / -v:输出详细调试支持模型:
gemini-2.5-flash-imagegemini-3-pro-image-previewgemini-3.1-flash-image-previewyyyy-mm-dd-hh-mm-ss-name.png MEDIA: 行供 OpenClaw 自动附件到聊天 Generated Mar 1, 2026
Marketing teams can generate custom images, banners, and promotional graphics for social media posts. This enables rapid creation of visually consistent content across platforms like Instagram, Facebook, and Twitter without requiring graphic design expertise.
Online retailers can create product mockups, lifestyle images, and promotional banners for their websites. This helps showcase products in various contexts and styles to improve conversion rates and reduce photography costs.
Startups and small businesses can generate logo concepts, brand visuals, and marketing materials like posters and icons. This provides affordable initial brand assets before investing in professional design services.
Educators and content creators can generate illustrations, diagrams, and visual aids for presentations, textbooks, and online courses. This enhances learning materials with custom visuals tailored to specific educational content.
Individuals can edit personal photos, create custom avatars, or generate unique images for personal projects. This allows for creative expression and personalized visual content without professional editing software.
Offer the image generation service through a monthly subscription for businesses needing regular visual content. Provide tiered plans based on usage volume, resolution options, and advanced features like batch processing.
Provide the image generation capabilities as an API that other developers can integrate into their applications. Charge based on API call volume, image resolution, and additional features like image editing or composition.
License the technology to marketing agencies, design platforms, or content management systems that can rebrand it as their own service. Offer customization options and technical support as part of the licensing agreement.
💬 Integration Tip
Ensure proper environment variable configuration for API keys and endpoints, and verify Python dependencies are installed before deployment to avoid runtime failures.
Generate/edit images with Nano Banana Pro (Gemini 3 Pro Image). Use for image create/modify requests incl. edits. Supports text-to-image + image-to-image; 1K/2K/4K; use --input-image.
Capture frames or clips from RTSP/ONVIF cameras.
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
Generate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without browser automation.
使用内置 image_generate.py 脚本生成图片, 准备清晰具体的 `prompt`。
AI image generation powered by CellCog. Create images, edit photos, consistent characters, product photography, reference-based images, sets of images, style transfer. Professional image creation with AI.