AI Image Generation
Create AI images with GPT Image, Gemini Nano Banana, FLUX, Imagen, and top providers using prompt engineering, style control, and smart editing.
Iván
@ivangdavila
What This Skill Does
Multi-provider AI image generation skill that creates, edits, and refines visuals using GPT Image, Gemini, FLUX, Imagen, and other top models. Includes prompt engineering guidance, style control, and benchmark-backed model selection for tasks like text-in-image, photorealistic shots, and multi-turn edits.
Replaces guesswork in choosing image models by providing task-specific recommendations and fallback chains across providers.
When to Use It
- Generate a photorealistic hero shot for a product launch using Imagen or FLUX Ultra
- Create an image with exact text overlay using GPT Image 1.5 or Ideogram
- Edit an existing image through multi-turn conversational refinements with Gemini
- Produce fast, low-cost draft visuals for early design iterations using GPT Image mini
- Maintain character or product consistency across a series of images with FLUX Kontext Max
- Generate images locally without API calls using FLUX Schnell or Stable Diffusion
Install
$ openclaw skills install @ivangdavila/image-generationSetup
On first use, read setup.md.
When to Use
User needs AI-generated visuals, edits, or consistent image sets. Use this skill to pick the right model, write stronger prompts, and avoid outdated model choices.
Architecture
User preferences persist in ~/image-generation/. See memory-template.md for setup.
~/image-generation/
├── memory.md # Preferred providers, project context, winning recipes
└── history.md # Optional generation log
Quick Reference
| Topic | File |
|---|---|
| Initial setup | setup.md |
| Memory template | memory-template.md |
| Migration guide | migration.md |
| Benchmark snapshots | benchmarks-2026.md |
| Prompt techniques | prompting.md |
| API handling | api-patterns.md |
| GPT Image (OpenAI) | gpt-image.md |
| Gemini and Imagen (Google) | gemini.md |
| FLUX (Black Forest Labs) | flux.md |
| Midjourney | midjourney.md |
| Leonardo | leonardo.md |
| Ideogram | ideogram.md |
| Replicate | replicate.md |
| Stable Diffusion | stable-diffusion.md |
Core Rules
1. Resolve aliases to official model IDs first
Community names shift quickly. Before calling an API, map the nickname to the provider model ID.
| Community label | Official model ID to try first | Notes |
|---|---|---|
| Nano Banana | gemini-2.5-flash-image-preview | Common nickname, not an official Google model ID |
| Nano Banana 2 / Pro | Verify provider docs | Usually a provider preset over Gemini image models |
| GPT Image 1.5 | gpt-image-1.5 | Current OpenAI high-tier image model |
| GPT Image mini / iMini | gpt-image-1-mini | Budget/faster OpenAI variant |
| FLUX 2 Pro / Max | flux-pro / flux-ultra | Many platforms rename these SKUs |
2. Pick models by task, not by hype
| Task | First choice | Backup |
|---|---|---|
| Exact text in image | gpt-image-1.5 | Ideogram |
| Multi-turn edits | gemini-2.5-flash-image-preview | flux-kontext-pro |
| Photoreal hero shots | imagen-4.0-ultra-generate-001 | flux-ultra |
| Fast low-cost drafts | gpt-image-1-mini | imagen-4.0-fast-generate-001 |
| Character/product consistency | flux-kontext-max | gpt-image-1.5 with references |
| Local no-API workflows | flux-schnell | SDXL |
3. Use benchmark tables as dated snapshots
Benchmarks drift weekly. Use benchmarks-2026.md as a starting point, then recheck current rankings when quality is critical.
4. Draft cheap, finish expensive
Start with 1-4 low-cost drafts, pick one, then upscale or rerender only the winner.
5. Keep a fallback chain
If the preferred model is unavailable, fallback by tier:
- same provider lower tier, 2) cross-provider equivalent, 3) local/open model.
6. Treat DALL-E as legacy
OpenAI lists DALL-E 2/3 as legacy. Do not use them as default for new projects.
Common Traps
- Using vendor nicknames as model IDs -> API errors and wasted retries
- Assuming "Nano Banana Pro" or "FLUX 2" are universal IDs -> provider mismatch
- Copying old DALL-E prompt habits -> weaker output vs modern GPT/Gemini image models
- Comparing text-to-image and image-editing scores as if they were the same benchmark
- Optimizing every draft at max quality -> cost spikes without quality gain
Security & Privacy
Data that leaves your machine:
- Prompt text
- Reference images when editing or style matching
Data that stays local:
- Provider preferences in
~/image-generation/memory.md - Optional local history file
This skill does NOT:
- Store API keys
- Upload files outside chosen provider requests
- Persist generated images unless user asks to save them
External Endpoints
| Provider | Endpoint | Data Sent | Purpose |
|---|---|---|---|
| OpenAI | api.openai.com | Prompt text, optional input images | GPT Image generation/editing |
| Google Gemini API | generativelanguage.googleapis.com | Prompt text, optional input images | Gemini image generation/editing |
| Google Vertex AI | aiplatform.googleapis.com | Prompt text, optional input images | Imagen 4 generation |
| Black Forest Labs | api.bfl.ai | Prompt text, optional input images | FLUX generation/editing |
| Replicate | api.replicate.com | Prompt text, optional input images | Hosted third-party image models |
| Midjourney | discord.com | Prompt text | Midjourney generation via Discord workflows |
| Leonardo | cloud.leonardo.ai | Prompt text, optional input images | Leonardo generation/editing |
| Ideogram | api.ideogram.ai | Prompt text | Typography-focused image generation |
No other data is sent externally.
Migration
If upgrading from a previous version, read migration.md before updating local memory structure.
Trust
This skill may send prompts and reference images to third-party AI providers. Only install if you trust those providers with your content.
Related Skills
Install with clawhub install <slug> if user confirms:
image-edit- Specialized inpainting, outpainting, and mask workflowsvideo-generation- Convert image concepts into video pipelinescolors- Build palettes for visual consistency across assetsffmpeg- Post-process image sequences and exports
Feedback
- If useful:
clawhub star image-generation - Stay updated:
clawhub sync
Top skills in this category
API Gateway
@byungkyuConnect to external services through Maton-managed API routes. Use this skill only after the user names the target app, account, and task. Start with read/list calls when possible and follow the app-specific reference before any change.
Using Superpowers
@zlc000190Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions
novel-generator 是一个中文爽文小说生成技能。用户只需提供一句话方向(如"写个都市重生爽文"),AI 代理即可自动完善提示词、规划大纲、逐章创作并输出为独立 Markdown 文件。 核心特性: 智能提示词生成:从一句话方向自动补全世界观、人设、冲突、爽点设计 分章节创作:每章 2000-3000 字,层层递进,章章有爽点 记忆系统:通过 .learnings/ 记录角色、地点、情节、世界观,确保故事前后一致 情节图解:关键战斗、人物关系、势力分布自动生成 Mermaid 图 失败记录:穿帮、矛盾、崩塌等问题自动记录,持续优化 多题材支持:都市、修仙、玄幻、重生、系统流、末世、科幻、游戏 兼容 Claude Code、Cursor、OpenAI Codex、GitHub Copilot 等所有支持 Agent Skills 的工具。
@ityhg根据用户提供的内容方向自动生成提示词并创作爽文小说。适用场景:(1) 用户提供小说方向/题材/关键词,(2) 需要生成章节连贯的长篇爽文,(3) 需要维护角色、地点、情节的连续性,(4) 需要为关键情节生成图解,(5) 需要记录生成失败场景以优化后续创作。支持都市、修仙、玄幻、重生、系统流等多种题材。Use wh...
Simmer
@simmerThe prediction market interface for AI agents. Trade Polymarket and Kalshi through one API with self-custody wallets, safety rails, and smart context.
Smart Web Fetch
@leochens智能网页抓取技能 - 替代内置 web_fetch,自动使用 Jina Reader / markdown.new / defuddle.md 清洗服务获取干净 Markdown。支持多级降级策略,大幅降低 Token 消耗。当 Agent 需要获取网页内容时使用本技能替代 web_fetch。