AI Image Creator
evolution-foundation/evo-nexus
Generates PNG images through OpenRouter models, with transparent backgrounds and reference-image edits, and describes existing images with multimodal vision.
Generate, edit-from-reference, or analyze images with AI via OpenRouter (Gemini, GPT Image, Seedream, Qwen, MAI, Grok, FLUX.2, Recraft, Muse, Riverflow; Cloudflare AI Gateway BYOK).
$ npx skills add centminmod/my-claude-code-setup --skill ai-image-creator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install centminmod/my-claude-code-setup ai-image-creator --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/centminmod/my-claude-code-setup.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/ai-image-creator .claude/skills/ai-image-creator && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "ai-image-creator" agent skill from https://github.com/centminmod/my-claude-code-setup/tree/master/.claude/skills/ai-image-creator into .claude/skills/ai-image-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-image-creator", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/centminmod/my-claude-code-setup/tree/master/.claude/skills/ai-image-creatorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add centminmod/my-claude-code-setup --skill ai-image-creator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install centminmod/my-claude-code-setup ai-image-creator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/centminmod/my-claude-code-setup.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/ai-image-creator .agents/skills/ai-image-creator && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ai-image-creator" agent skill from https://github.com/centminmod/my-claude-code-setup/tree/master/.claude/skills/ai-image-creator into .agents/skills/ai-image-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-image-creator", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add centminmod/my-claude-code-setup --skill ai-image-creator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install centminmod/my-claude-code-setup ai-image-creator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/centminmod/my-claude-code-setup.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/ai-image-creator .cursor/skills/ai-image-creator && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "ai-image-creator" agent skill from https://github.com/centminmod/my-claude-code-setup/tree/master/.claude/skills/ai-image-creator into .cursor/skills/ai-image-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-image-creator", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/centminmod/my-claude-code-setup.git --path .claude/skills/ai-image-creator--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add centminmod/my-claude-code-setup --skill ai-image-creator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install centminmod/my-claude-code-setup ai-image-creator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/centminmod/my-claude-code-setup.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/ai-image-creator .gemini/skills/ai-image-creator && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "ai-image-creator" agent skill from https://github.com/centminmod/my-claude-code-setup/tree/master/.claude/skills/ai-image-creator into .gemini/skills/ai-image-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-image-creator", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install centminmod/my-claude-code-setup ai-image-creatorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add centminmod/my-claude-code-setup --skill ai-image-creator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/centminmod/my-claude-code-setup.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/ai-image-creator .github/skills/ai-image-creator && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "ai-image-creator" agent skill from https://github.com/centminmod/my-claude-code-setup/tree/master/.claude/skills/ai-image-creator into .github/skills/ai-image-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-image-creator", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add centminmod/my-claude-code-setup --skill ai-image-creator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install centminmod/my-claude-code-setup ai-image-creator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/centminmod/my-claude-code-setup.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/ai-image-creator .opencode/skills/ai-image-creator && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "ai-image-creator" agent skill from https://github.com/centminmod/my-claude-code-setup/tree/master/.claude/skills/ai-image-creator into .opencode/skills/ai-image-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ai-image-creator", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
ai-image-creatorGenerate, edit-from-reference, or analyze images with AI via OpenRouter (Gemini, GPT Image, Seedream, Qwen, MAI, Grok, FLUX.2, Recraft, Muse, Riverflow; Cloudflare AI Gateway BYOK).
AI Image Creator is an agent skill from centminmod/my-claude-code-setup. Generate, edit-from-reference, or analyze images with AI via OpenRouter (Gemini, GPT Image, Seedream, Qwen, MAI, Grok, FLUX.2, Recraft, Muse, Riverflow; Cloudflare AI Gateway BYOK). Also analyze a video (--analyze-video, read-only — no video generated) into a text description for video prompts. Use when the user asks to generate an image, create a PNG, make an icon, make it transparent, edit with a reference, design a logo/banner, describe/analyze/explain an image ("what's in this image"), or describe/analyze a…
Its SKILL.md is about 8.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 15 other files, including scripts and reference files (for example `references/analyze-reference.md`, `references/api-reference.md` and `references/composite-reference.md`). Compatibility notes: Requires uv (Python runner) and network access. Environment variables for CF AI Gateway or direct API keys must be configured in shell profile (~/.zshrc on…
It sits in Media & Creative, covering Image generation. It works with OpenRouter, Workers AI, Qwen and Google Gemini. The repository describes itself as: Shared starter template configuration and CLAUDE.md memory bank system for Claude Code. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 7d5c374. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
BashReadWriteFrom allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
uvmagickbrewaptffmpegFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
youtu.beAlso links to:
openrouter.aiFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
AI_IMG_CREATOR_CF_TOKENAI_IMG_CREATOR_OPENROUTER_KEYAI_IMG_CREATOR_GEMINI_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Requires uv (Python runner) and network access. Environment variables for CF AI Gateway or direct API keys must be configured in shell profile (~/.zshrc on macOS, ~/.bashrc on Linux, or System Environment Variables on Windows).
From compatibility in the SKILL.md frontmatter.
AI Image Creator loads about 8.1k tokens when it runs, and up to ~25k if it reads all its reference files. Until then it costs about 143 tokens; SKILL.md has 3,154 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Bash, Read, WriteAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from centminmod/my-claude-code-setup at commit 7d5c374, republished under its MIT licence (© centminmod). 3,154 words, ~8,145 tokens.
.claude/skills/ai-image-creator/SKILL.md (or your agent's skills folder). This skill also uses 12 other files; get the full folder from GitHub.Generate PNG images via multiple AI models, routed through Cloudflare AI Gateway BYOK or directly via OpenRouter/Google AI Studio.
When the user mentions a model keyword in their image request, use the corresponding --model flag:
| Keyword | Model | Use When User Says | Best For (measured cost · time per image) |
|---|---|---|---|
gemini | Google Gemini 3.1 Flash | "gemini", "nano banana 2" | Previous default; still marginally closer on the Opus benchmark; up to 4K ($0.067 · 12s at 1K) |
gemini-lite | Google Gemini 3.1 Flash Lite | "gemini lite", "nano banana lite", "fast draft" | Fast cheap iteration; 1K only ($0.034 · 5s) |
nano-banana-2.1 | Google Nano Banana 2.1 (default) | "nano banana 2.1", "nb 2.1", "generate an image" (no model specified) | Versatile default, Flash-tier successor to gemini: refs, --analyze, up to 4K; near-identical fidelity for ~44% less ($0.038 · 12s at 1K) |
geminipro | Google Gemini 3 Pro | "geminipro", "gemini pro", "use gemini pro" | Highest-quality Gemini (~$0.17 at 2K) |
riverflow | Sourceful Riverflow v2 Pro | "riverflow", "use riverflow" | Artistic/illustration ($0.15) |
flux2 | FLUX.2 Max | "flux2", "flux", "use flux" | Illustration, clean lines (~$0.07/MP) |
seedream | ByteDance Seedream 5.0 Lite | "seedream", "use seedream" | 2K/4K only, web-connected knowledge, 14 refs ($0.035 · 40s at 2K) |
gpt5.4 | OpenAI GPT-5.4 Image 2 | "gpt5.4", "gpt-5.4 image", "use gpt5.4" | Multimodal GPT; also --analyze (token-billed) |
gpt-sunburst | OpenAI GPT Image 2.5 Sunburst | "gpt image", "gpt image 2.5", "sunburst" | Precision editing, 16 refs, --quality up to max, native -t ($0.015 · 26s at default quality; token-billed, rises with --quality) |
gpt-flare | OpenAI GPT Image 2.5 Flare | "gpt flare", "fast gpt image" | Same features as Sunburst, speed tier ($0.015 · 19s at default quality) |
mai | Microsoft MAI-Image-2.6 | "mai", "microsoft image" | Multi-reference compositing of people/products/styles, 5 refs ($0.041 · 25s) |
mai-flash | Microsoft MAI-Image-2.6 Flash | "mai flash" | Faster MAI, same 5-ref editing ($0.020 · 15s) |
grok | xAI Grok Imagine Image 2.0 | "grok", "grok imagine" | 1K/2K, --quality low|medium, 3 refs ($0.060 · 66s — billed above its $0.04 list price; +$0.01/ref) |
qwen | Qwen Image 3 | "qwen", "qwen image" | Small legible text (posters, UI, infographics), 1K/2K, 4 refs ($0.030 · 63s) |
qwen-pro | Qwen Image 3 Pro | "qwen pro" | Qwen Image 3 with richer world knowledge ($0.040 · 57s) |
muse | Meta Muse Image | "muse", "meta image" | Complex multi-part prompts; reasons first, may search the web; prompt only ($0.010 · 18s, 1600px) |
recraft-flash | Recraft V4.1 Flash | "recraft", "cheapest", "quick draft" | Cheapest/fastest ~1K drafts; no -r ($0.007 · 5s) |
Models from seedream down to recraft-flash (except gpt5.4) use the OpenRouter Images API (/v1/images). Each accepts only the -a/-s/--quality/-r options it supports, and the script rejects anything else before calling the API. Run --list-models to see each model's limits.
Cost and time are real OpenRouter charges and end-to-end times (through the Cloudflare gateway) at default settings. They come from the Claude Opus robot benchmark, one sample per model on 2026-09-28 (nano-banana-2.1 on 2026-10-07). geminipro, riverflow, flux2 and gpt5.4 were not benchmarked; their figures are list prices or earlier cost-log values. For per-model output format, resolution and quality notes, read references/model-benchmarks.md. Re-run the benchmark with the ai-image-test-run skill.
Routing check: If the user asks to describe, analyze, or explain an existing image (not generate a new one), skip directly to the Image Analysis (
--analyze) section below. No prompt enhancement or output path needed.Video routing: If the user asks to describe, analyze, or explain a video (or wants a text description of a clip to seed/extend a video prompt), skip directly to the Video Analysis (
--analyze-video) section below.
For long or complex prompts (recommended), write to ${CLAUDE_SKILL_DIR}/tmp/prompt.txt using the Write tool:
Write prompt text to ${CLAUDE_SKILL_DIR}/tmp/prompt.txtFor short prompts (under 200 chars, no special characters), pass inline via --prompt.
CRITICAL — Prompt Quality Tips:
Professional prompt patterns are available in 3 reference files. These are not loaded by default — only read them when the user's request matches a category or they explicitly ask for enhancement.
Category Detection — Match the user's request to a category:
| If request mentions... | Category | Also read |
|---|---|---|
| "product shot", "product photo", "hero image" | product_hero | prompt-core.md + prompt-categories.md § product_hero |
| "lifestyle", "in-use", "in context" | lifestyle | prompt-core.md + prompt-categories.md § lifestyle |
| "instagram", "social media", "tiktok", "pinterest" | social_media | prompt-core.md + prompt-platforms.md + prompt-categories.md § social_media |
| "banner", "ad", "email header" | marketing_banner | prompt-core.md + prompt-platforms.md + prompt-categories.md § marketing_banner. Routing hint: If user has an existing logo and wants multiple standard sizes → use composite mode instead (see ## Composite Banners). |
| "website", "app", "logo", "ad format", "leaderboard", "skyscraper" | web_app | prompt-core.md + prompt-platforms.md + prompt-categories.md § web_app. Routing hint: For "logo banners" or "OG images with my logo" where user has existing logo → use composite-banners.py. For "design me a new logo" → use generate-image.py. |
| "brand kit", "logo banners", "banner sizes", "IAB sizes", "consistent banners" + user has existing logo | composite | Read references/composite-reference.md, use composite-banners.py |
| "icon", "favicon", "app icon" | icon_logo | prompt-core.md + prompt-categories.md § icon_logo |
| "mascot", "character", "illustration", "artwork" | illustration | prompt-core.md + prompt-categories.md § illustration |
| "food", "drink", "recipe", "restaurant" | food_drink | prompt-core.md + prompt-categories.md § food_drink |
| "building", "interior", "room", "architecture" | architecture | prompt-core.md + prompt-categories.md § architecture |
| "chart", "infographic", "data", "diagram" | infographic | prompt-core.md + prompt-categories.md § infographic |
| "t-shirt", "mug design", "poster", "POD", "print-on-demand" | pod_design | prompt-core.md + prompt-platforms.md + prompt-categories.md § pod_design |
| "consistent character", "same character/product across frames", "comic strip", "storyboard", "frame set", "start and last frame", "panels", "before/after" | frame_consistency | Read references/consistency-presets.md — keep people/objects/scenes consistent across a SET of frames (for video first/last frames or stitched comic strips) |
| "describe", "analyze", "what's in this image", "explain image" | analyze | Handled by the top Routing check — read references/analyze-reference.md only for advanced/structured analysis patterns |
| No match / simple request | — | Skip patterns, generate directly |
When to skip enhancement:
When to apply:
Reference files (in references/ directory):
prompt-core.md — Foundational rules: narrative prompting, camera/lens/lighting specs, text rendering rules, model recommendationsprompt-platforms.md — Social media ratios, IAB ad sizes, web dimensions, POD specs — all mapped to -a/-s flagsprompt-categories.md — 11 category formulas with templates and complete example promptsuv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
-o "OUTPUT_PATH" \
[--provider openrouter|google] \
[-a "16:9"] \
[-s "2K"] \
[-m "model-id"] \
[-r "ref-image.png"] \
[--quality "high"] \
[-t]With a specific model:
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
-o "OUTPUT_PATH" \
-m riverflow \
-p "A serene mountain lake at sunset"With transparent background (requires ffmpeg + imagemagick):
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
-o "mascot.png" \
-t \
-p "A friendly robot mascot character"With reference image for editing/style transfer (see Reference Images for which models accept -r):
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
-o "edited.png" \
-r "original.png" \
-p "Change the background to a sunset scene"Or with inline prompt (default model):
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
-o "OUTPUT_PATH" \
-p "A simple blue circle on white background"rm -f ${CLAUDE_SKILL_DIR}/tmp/prompt.txtfile OUTPUT_PATHConfirm it shows "PNG image data" and report the file path and size to the user.
If the user needs resizing, format conversion, or other manipulation, first detect available image tools, then use them. See Image Tools section below.
| Argument | Short | Required | Default | Description |
|---|---|---|---|---|
--output | -o | Yes | -- | Output file path (parent dirs auto-created). Saved in the format its extension names (.png, .jpg, .webp; anything else means PNG). Models that return another format (Gemini Flash Lite, Grok and Seedream send JPEG; Muse and Recraft send WebP; Nano Banana 2.1 also sends a non-PNG format) are converted with ImageMagick, or saved unconverted with a warning if it's missing. The result JSON's format field reports what was written |
--prompt | -p | No | -- | Inline prompt text |
--prompt-file | -- | No | ../tmp/prompt.txt | Path to prompt file |
--provider | -- | No | openrouter | openrouter or google |
--aspect-ratio | -a | No | model default | OpenRouter only: 1:1, 16:9, 9:16, 3:2, 2:3, 4:3, 3:4, 4:5, 5:4, 21:9 |
--image-size | -s | No | model default | OpenRouter only: 1K, 2K, 4K. Images-API models accept only their listed sizes (seedream 2K/4K; grok/qwen/qwen-pro 1K/2K; the rest none). gemini-lite is 1K only. 0.5K is accepted only on the Gemini 3.1 Flash preview build (-m google/gemini-3.1-flash-image-preview-20260226); every selectable keyword rejects it |
--model | -m | No | nano-banana-2.1 | Model keyword (see Model Selection or --list-models) or full model ID |
--ref | -r | No | -- | Reference image file (repeatable). For editing/style transfer. See Reference Images for supported models and per-model limits |
--quality | -- | No | model default | Images-API models only: gpt-sunburst/gpt-flare take auto, low, medium, high, xhigh, max; grok takes low, medium |
--analyze | -- | No | -- | Analyze/describe a reference image (text-only output, no image generated). Requires -r. Multimodal chat models only (gemini, gemini-lite, nano-banana-2.1, geminipro, gpt5.4) |
--analyze-video | -- | No | -- | Analyze/describe a video. Pass the video via -r (local file or URL). OpenRouter only. Choose a model/preset with -m (default gemini3.5-flash). Returns structured JSON by default |
--prose | -- | No | -- | (--analyze-video only) Return free-text prose instead of the default structured JSON |
--contact-sheet | -- | No | -- | (--analyze-video, local file only) Extract evenly-spaced keyframes with ffmpeg and save a labeled contact-sheet image to PATH — a human ground-truth reference. Skipped for URL sources / if ffmpeg is missing |
--verify | -- | No | -- | (--analyze-video, local file only) Second pass that checks the analysis against extracted frames (no video re-sent) and classifies each claim supported/contradicted/not_visible. Adds a verification object. Costs one extra model call |
--transparent | -t | No | -- | Generate with transparent background. Native on gpt-sunburst/gpt-flare (no extra tools); every other model requires ffmpeg + imagemagick |
--costs | -- | No | -- | Display generation/cost history for this project and exit |
--list-models | -- | No | -- | List available model keywords and exit |
| Variable | Required For | Description |
|---|---|---|
AI_IMG_CREATOR_CF_ACCOUNT_ID | Gateway mode | Cloudflare account ID |
AI_IMG_CREATOR_CF_GATEWAY_ID | Gateway mode | AI Gateway name |
AI_IMG_CREATOR_CF_TOKEN | Gateway mode | Gateway auth token |
AI_IMG_CREATOR_OPENROUTER_KEY | Direct OpenRouter | OpenRouter API key (sk-or-...) |
AI_IMG_CREATOR_GEMINI_KEY | Direct Google | Google AI Studio API key |
Gateway mode activates when all 3 CF_* vars are set. Falls back to direct mode if gateway fails.
For first-time setup, see references/setup-guide.md.
-t)Generates images with transparent backgrounds using a 3-step pipeline:
Requirements: brew install ffmpeg imagemagick
Native transparency: With -m gpt-sunburst or -m gpt-flare, -t sends background: transparent to the Images API instead. The model renders the alpha channel directly: there is no green-screen prompt, no chroma key and no ffmpeg/imagemagick requirement. Output must still be PNG or WebP.
Use cases: Game sprites, icons, logos, mascots, marketing assets with transparency.
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
-o "sprite.png" -t -p "A pixel art treasure chest"-r)Send existing images alongside text prompts for editing, style transfer, or guided generation. Supports multiple references, up to each model's limit:
| Models | Max -r |
|---|---|
gemini, gemini-lite, nano-banana-2.1, geminipro, gpt5.4 (chat) | no script limit |
gpt-sunburst, gpt-flare | 16 |
seedream | 14 |
mai, mai-flash | 5 |
qwen, qwen-pro | 4 |
grok | 3 |
riverflow, flux2, muse, recraft-flash | not supported (errors) |
# Edit an existing image
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
-o "edited.png" -r "photo.png" -p "Make the background white"
# Style transfer with multiple references
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
-o "combined.png" -r "style1.png" -r "content.png" -p "Apply the style of the first image to the second"Supported formats: PNG, JPEG, WebP, GIF.
--analyze)Describe, analyze, or explain existing images using multimodal AI vision. Returns text-only output (no image generated). Multimodal chat models only (gemini, gemini-lite, nano-banana-2.1, geminipro, gpt5.4). Images-API models output images only and are rejected.
No -o output path needed. No prompt enhancement needed. The script outputs JSON to stdout with the model's analysis in the analysis field.
# Analyze with default prompt (describes subject, style, colors, composition, mood, text)
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
--analyze -r "photo.png"
# Analyze with custom prompt
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
--analyze -r "photo.png" -p "Describe this image in plain text and also in JSON structured output"
# Analyze with a specific model
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
--analyze -r "photo.png" -m gpt5.4 -p "What text is visible in this image?"
# Analyze multiple images together
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
--analyze -r "before.png" -r "after.png" -p "Compare these two images and describe the differences"JSON output format:
{"ok": true, "analyze": true, "analysis": "<model text>", "provider": "openrouter", "model": "...", "mode": "gateway", "elapsed_seconds": 3.2, "ref_images": 1}Incompatible flags: --analyze cannot be combined with -t, -a, or -s. (-o is accepted but ignored in analyze mode, which returns text only.)
For advanced analysis prompt patterns (structured output, comparison, targeted analysis), read references/analyze-reference.md.
--analyze-video)Describe or analyze a video using OpenRouter video-input LLMs (no image generated). Use this to turn an existing clip into a description you can feed back as a prompt to generate or extend a video (e.g. with the ai-video-creator skill).
Structured JSON is the default. All 15 video models support strict structured outputs (response_format json_schema, verified), so by default analysis is a structured object with these fields: summary, setting, subjects[] (each with role/appearance/confidence), shot_timeline[] (timestamp/action/camera), camera_techniques[], editing_stylization[], lighting, color_palette[], mood, uncertain_details[], and a distilled video_generation_prompt. The editing_stylization and uncertain_details fields specifically counter the two main failure modes (missed freeze-frame/black-and-white stylization, and confabulated details). Pass --prose for a free-text description instead. The envelope's structured field is true when JSON parsed cleanly.
Pass the video via -r — either a local file (mp4/mov/webm/mkv/avi; sent as a base64 data URL) or a URL (publicly accessible, including YouTube). OpenRouter only; no -o, prompt enhancement, or output path needed.
Model selection (-m) — three presets cover the common cases; or pick any model by keyword (see --list-models):
| Preset | Resolves to | When to use |
|---|---|---|
video-default (or omit -m) | gemini3.5-flash (Google Gemini 3.5 Flash) | Default — best accuracy + fastest; reads audio. ~11× the cost of the cheap tier |
video-cheap | qwen3.5-flash (Qwen3.5 Flash) | Rock-bottom cost for quick scene summaries (or mimo for a cheap, more detailed read) |
video-quality | gemini3-pro (Google Gemini 3.1 Pro) | Highest-accuracy reading when it matters most |
All 15 video-capable models are selectable by keyword: qwen3.5-flash, seed-1.6-flash, seed-2.0-mini, mimo, qwen3.6-35b, qwen3.6-flash, step-3.7-flash, gemini3-flash-lite, seed-2.0-lite, seed-1.6, qwen3.5-plus, minimax-m3, qwen3.6-plus, gemini3.5-flash, gemini3-pro (cheapest → priciest). Run --list-models for IDs and per-1M-token pricing.
Bare family names are not keywords.
-m gemini,-m seed, or-m qwen(the image-model families) are not valid--analyze-videoselectors and error with "unknown video model". Use a preset (video-default/video-cheap/video-quality) or a full keyword from the list above (e.g.gemini3.5-flash,seed-1.6-flash).
# Default model (gemini3.5-flash), structured JSON output
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
--analyze-video -r "clip.mp4"
# Free-text prose instead of JSON
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
--analyze-video -r "clip.mp4" --prose
# Rock-bottom cost preset
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
--analyze-video -r "clip.mp4" -m video-cheap
# Highest-accuracy preset on a YouTube URL with a custom focus
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
--analyze-video -r "https://youtu.be/VIDEO_ID" -m video-quality \
-p "Focus on camera movement and lighting"JSON output format (default — analysis is a structured object):
{"ok": true, "analyze": true, "analyze_video": true, "structured": true, "analysis": {"summary": "...", "setting": "...", "subjects": [{"role": "protagonist", "appearance": "...", "confidence": "high"}], "shot_timeline": [{"timestamp": "0:00", "action": "...", "camera": "..."}], "camera_techniques": ["..."], "editing_stylization": ["monochrome freeze-frame", "..."], "lighting": "...", "color_palette": ["..."], "mood": "...", "uncertain_details": ["..."], "video_generation_prompt": "..."}, "provider": "openrouter", "model": "google/gemini-3.5-flash", "mode": "gateway", "elapsed_seconds": 16.9, "video_source": "clip.mp4"}With --prose, analysis is a plain text string and structured is false.
--contact-sheet, --verify)The model samples its own frames internally, but it can still slip a confabulation into a single shot (e.g. a "golden glowing eye" in the final beat that isn't there). Two opt-in, local-file-only aids ground the analysis against real pixels using ffmpeg-extracted keyframes:
--contact-sheet PATH — extracts ~12 evenly-spaced keyframes (always including first
and last; capped uniform sampling, not scene-detect) and tiles them into one labeled image
at PATH. This is the highest-leverage aid: a human (or you) can eyeball the whole clip at
a glance to sanity-check the description. Built with ImageMagick montage (timestamp
labels) or, if absent, ffmpeg's tile filter. The path is echoed back as contact_sheet
in the JSON envelope.--verify — runs a cheap second pass that sends the contact sheet + a few full
keyframes (with timestamps) and the pass-1 analysis back to the same model, and asks it
to classify each claim supported / contradicted / not_visible strictly from the
frames. The video is not re-sent (that would just re-confabulate from the same pixels),
and undiscernible details stay not_visible rather than being "resolved" into a guess. Adds
a verification object: {claims[]{claim,verdict,evidence}, corrections[], overall_accuracy}.Both are skipped with a warning (never a hard error) for URL/YouTube sources or if ffmpeg is
missing — the analysis itself always proceeds. Extracted frames go to a temp dir that is
cleaned up automatically; only the --contact-sheet image is kept.
# Save a ground-truth contact sheet alongside the analysis, and verify the claims
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py \
--analyze-video -r "clip.mp4" \
--contact-sheet "exports/clip_frames.png" --verifyNotes:
--analyze, -t, -a, or -s, and requires --provider openrouter.--costs)Every generation is logged to .ai-image-creator/costs.json in your project directory. View history:
uv run python ${CLAUDE_SKILL_DIR}/scripts/generate-image.py --costsShows per-model breakdown: generation count, total tokens, elapsed time, and recent entries. Security: Only non-sensitive data is logged (model, tokens, timing, file path). No API keys or credentials are ever stored.
Token totals may under-count. OpenRouter image-generation responses (and Cloudflare-gateway responses) often omit the
usageblock, so those entries log 0 tokens. Elapsed time and generation counts are always accurate; treat token totals as best-effort.
Consider adding .ai-image-creator/ to your .gitignore.
Generate consistent logo banners across multiple sizes from a JSON config. Uses ImageMagick for offline compositing — no API calls, no network required. Composites an existing logo/mark onto branded backgrounds with text at standard dimensions.
Use composite-banners.py when ALL of these are true:
Use generate-image.py (AI generation) when ANY of these are true:
When composite mode applies, read references/composite-reference.md for full config schema, preset dimensions, and font handling details.
uv run python ${CLAUDE_SKILL_DIR}/scripts/composite-banners.py --initbanner-config.json — set logo path, brand text, colors, banner sizesuv run python ${CLAUDE_SKILL_DIR}/scripts/composite-banners.py --validateuv run python ${CLAUDE_SKILL_DIR}/scripts/composite-banners.py -c banner-config.json -o ./banners/| Argument | Short | Default | Description |
|---|---|---|---|
--config | -c | banner-config.json | Config JSON path |
--output-dir | -o | . | Output directory |
--name | -n | all | Generate single banner by name |
--format | -f | png | png, webp, jpeg |
--list-presets | List IAB/social/web size presets | ||
--init | Generate starter config | ||
--validate | Check config, exit 0 or 2 | ||
--dry-run | Preview without rendering | ||
--json | Structured JSON to stdout | ||
--verbose | -v | Verbose output |
Requirements: ImageMagick 7 (brew install imagemagick or apt install imagemagick).
Starting composite mode:
--init to scaffold config, then help user fill in their brand valuesDuring generation:
--validate before generating to catch font/logo issues early--name to iterate on one banner before generating the full setAfter generation:
Combined workflow (most powerful):
On first invocation, detect available image manipulation tools:
which magick convert sips ffmpeg 2>/dev/null| Tool | Check | Key Operations |
|---|---|---|
ImageMagick 7 (magick) | magick --version | Resize, crop, convert, composite |
ImageMagick 6 (convert) | convert --version | Same ops, legacy command name |
| sips (macOS) | sips --help | Resize, format conversion |
| ffmpeg | ffmpeg -version | Convert formats, resize |
# Resize
magick output.png -resize 512x512 icon-512.png
# Multiple sizes (icons)
for s in 16 32 48 64 128 256 512; do magick output.png -resize ${s}x${s} icon-${s}.png; done
# Convert to WebP
magick output.png output.webp
# Maskable icon (add safe-zone padding)
magick output.png -gravity center -extent 120%x120% maskable.png
# macOS sips resize
sips --resampleWidth 512 --resampleHeight 512 output.png --out icon-512.pngCRITICAL: Check tool availability before using. Prefer magick (IM7) over convert (IM6). If no tools found, inform user: brew install imagemagick.
Cause: Environment variables not set or not exported.
Fix: Add exports to ~/.zshrc and run source ~/.zshrc. See references/setup-guide.md.
Cause: Invalid or expired API key/token.
Fix: Check AI_IMG_CREATOR_CF_TOKEN (gateway) or AI_IMG_CREATOR_OPENROUTER_KEY (direct). Regenerate if needed.
Cause: Model returned text only (safety filter, unclear prompt, or unsupported request). Fix: Make the prompt more specific and descriptive. Avoid prohibited content.
Cause: Network issue or image generation taking too long (300s timeout).
Fix: Retry. If persistent, try --provider google as alternative. Check CF gateway status.
For full API formats, response schemas, BYOK configuration, and curl examples: see references/api-reference.md
For first-time setup instructions: see references/setup-guide.md
© centminmod, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 12 other files (scripts, references) in .claude/skills/ai-image-creator of centminmod/my-claude-code-setup.
Open the folder on GitHubat commit 7d5c374
AI Image Creator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| AI Image Creator this skillcentminmod/my-claude-code-setup | 2.7k | — | ~8.1k | Automated safety check: Notes | MIT | |
| AI Image Creatorevolution-foundation/evo-nexus | 545 | — | ~5.1k | Automated safety check: Notes | Custom licence | |
| Openrouter Imgrtadewald/skills | 180 | — | ~800 | Automated safety check: Notes | None | |
| Generate ImageK-Dense-AI/claude-scientific-writer | 2.4k | 1 repos | ~3.8k | Automated safety check: Notes | MIT | |
| AI Image Generationaiskillstore/marketplace | 430 | 1 repos | ~7.3k | Automated safety check: Pass | MIT | |
| AI Image Generation and Editingzhayujie/CowAgent | 47k | — | ~1.3k | Automated safety check: Pass | MIT |
evolution-foundation/evo-nexus
Generates PNG images through OpenRouter models, with transparent backgrounds and reference-image edits, and describes existing images with multimodal vision.
rtadewald/skills
Generate or edit images via OpenRouter Image API across top models (Nano Banana, GPT Image, FLUX.2, Seedream, Qwen, Grok).
K-Dense-AI/claude-scientific-writer
Generate or edit images with AI models through the OpenRouter Image API (Gemini, Seedream, Recraft, GPT-Image, Riverflow).
aiskillstore/marketplace
Generate and edit images on RunComfy via the runcomfy CLI — a smart router across the full image-model catalog: FLUX 2 (Klein 9B/4B, Pro, Dev, Flash, Turbo, Max), Google Nano Banana 2 / Pro, OpenAI…
zhayujie/CowAgent
Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.
decolua/9router
Generates images through a 9Router gateway's image endpoint, with model discovery, the request fields and per-provider quirks for OpenAI, Gemini, MiniMax and others.
centminmod/my-claude-code-setup
Audit a session-metrics JSON export for token-usage waste and produce a plain-English findings report.
centminmod/my-claude-code-setup
Tally Claude Code session token usage and cost estimates from the raw JSONL conversation log.
centminmod/my-claude-code-setup
Consult official Claude Code documentation from code.claude.com using selective fetching.
centminmod/my-claude-code-setup
Dual-AI code analysis pairing OpenAI Codex with Claude code-searcher — the lightest consult variant, two citation-verified perspectives.
centminmod/my-claude-code-setup
Dual-AI code analysis pairing z.ai GLM 5.2 with Claude code-searcher — a lightweight two-model second opinion.
centminmod/my-claude-code-setup
Group a session-metrics session's turns into higher-level SEMANTIC TASKS ("what was I actually trying to do") and render a Tasks companion page (tasks.html + tasks.md) with a worth-it / mixed /…
Categories
Generate, edit-from-reference, or analyze images with AI via OpenRouter (Gemini, GPT Image, Seedream, Qwen, MAI, Grok, FLUX.2, Recraft, Muse, Riverflow; Cloudflare AI Gateway BYOK). AI Image Creator is an agent skill from centminmod/my-claude-code-setup.2, Recraft, Muse, Riverflow; Cloudflare AI Gateway BYOK).
AI Image Creator fits situations like: the user asks to generate an image; make it transparent; edit with a reference; design a logo/banner.
Run `npx skills add centminmod/my-claude-code-setup --skill ai-image-creator -a claude-code`. Or copy the skill folder (.claude/skills/ai-image-creator in centminmod/my-claude-code-setup) into .claude/skills/ai-image-creator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add centminmod/my-claude-code-setup --skill ai-image-creator -a codex`. Or copy the skill folder (.claude/skills/ai-image-creator in centminmod/my-claude-code-setup) into .agents/skills/ai-image-creator in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add centminmod/my-claude-code-setup --skill ai-image-creator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ai-image-creator, .gemini/skills/ai-image-creator, .github/skills/ai-image-creator and .opencode/skills/ai-image-creator in your project.
Going by SKILL.md and its folder, AI Image Creator needs Python for the scripts in its folder, the command-line tools its instructions call (uv, magick, brew, apt and ffmpeg) and credentials named AI_IMG_CREATOR_CF_TOKEN, AI_IMG_CREATOR_OPENROUTER_KEY and AI_IMG_CREATOR_GEMINI_KEY. Our summary lists: Python 3. Its frontmatter pre-approves these tools: Bash, Read, Write. Compatibility (from SKILL.md): Requires uv (Python runner) and network access. Environment variables for CF AI Gateway or direct API keys must be configured in shell profile (~/.zshrc on macOS, ~/.bashrc on Linux, or System Environment Variables on Windows)..
SKILL.md names 2 domains. In commands or code: youtu.be; the agent is likely to contact it when it follows the instructions. As links in the text: openrouter.ai. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
AI Image Creator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 8.1k tokens (SKILL.md is roughly 33k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 17k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with AI Image Creator: AI Image Creator (evolution-foundation/evo-nexus, 545 stars), Openrouter Img (rtadewald/skills, 180 stars), Generate Image (K-Dense-AI/claude-scientific-writer, 2.4k stars) and AI Image Generation (aiskillstore/marketplace, 430 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
centminmod (a GitHub user) maintains it in centminmod/my-claude-code-setup, which has 2,656 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 8, 2026.
Source: centminmod/my-claude-code-setup on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.