ai-image-generator

ai-image-generator is a skill for Claude Code from jezweb/claude-skills. It costs 165 tokens per session (3,960 once invoked), scanned C, original, MIT.

A skill for generating images directly through the Google Gemini and OpenAI GPT image APIs. It covers choosing a model, writing prompts, making edits, creating variations, and checking results.

In plain words
What is it for?
Use it for realistic scenes, images with readable text, batches of variations, compositing multiple references, and transparent icons or logos.
Why use it?
It helps match different image tasks to the appropriate model and gives a defined process for generating or revising images.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument; mentions Claude Code.

Part of the design-assets plugin — 5 skills, 5 commands shipped together

Good fit Use it for realistic scenes, images with readable text, batches of variations, compositing multiple references, and transparent icons or logos.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jezweb/claude-skills/ai-image-generator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jezweb/claude-skills --skill ai-image-generator
Clone the repo
git clone --depth 1 https://github.com/jezweb/claude-skills

Made for: Claude Code.

Or install design-assets, the plugin that ships this one along with the rest of its 5 skills, 5 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-image-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/jezweb/claude-skills/ai-image-generator/github.svg)](https://agentmods.dev/skills/jezweb/claude-skills/ai-image-generator)
Your own site
<a href="https://agentmods.dev/skills/jezweb/claude-skills/ai-image-generator"><img src="https://agentmods.dev/badge/skills/jezweb/claude-skills/ai-image-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-image-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/jezweb/claude-skills/ai-image-generator"><img src="https://agentmods.dev/badge/skills/jezweb/claude-skills/ai-image-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 165 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,960 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 24 Apr 2026
  • Snyk pass 24 Apr 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00165 $0.03960
Opus 5 $0.00082 $0.01980
Sonnet 5 $0.00033 $0.00792
Haiku 4.5 $0.00016 $0.00396

Measured 13d ago against content hash c6dfa3c1153c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

ai-image-generator scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s "https://generativelanguage.googleapis.com/v1beta/models?key=$GEMINI_API_KEY" | python3 -c "import sys,json; [print(m['name']) for m in json.load(sys.stdin)['models'] if 'image' in m['name'].lower()]"

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s "https://generativelanguage.googleapis.com/v1beta/models?key=$GEMINI_API_KEY" | python3 -c "import sys,json; [print(m['name']) for m in json.load(sys.stdin)['models'] if 'image' in m['name'].lower()]"
plugins/design-assets/skills/ai-image-generator/SKILL.md · 390 lines

How it starts

The opening of the file, as written. The whole thing — 390 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Image Generator

Generate images using AI APIs (Google Gemini and OpenAI GPT). This skill teaches the prompting patterns and API mechanics for producing professional images directly from Claude Code.

Managed alternative: If you don't want to manage API keys, ImageBot provides a managed image generation service with album templates and brand kit support.

Model Selection

Choose the right model for the job:

Need Model Why
Photorealistic scenes / stock photos Gemini 3.1 Flash Image Best depth, complexity, environmental context
Final client scenes (higher detail) Gemini 3 Pro Image Higher detail, better style consistency
Text on images (posters, OG with copy, infographics) GPT Image 2 Text rendering actually works — including multi-script
10-variation style exploration GPT Image 2 Native batch — one prompt, 10 variants sharing composition + palette
Multi-reference compositing (product + lifestyle) GPT Image 2 Handles lighting, scale, perspective across references
Transparent icons / logos GPT Image 1.5 Native RGBA alpha — GPT Image 2 cannot do transparency
Quick drafts / iteration Gemini 2.5 Flash Image Free tier (~500/day)

Rule of thumb: any image with readable text → GPT Image 2 (unless you need transparency, then GPT 1.5). Otherwise → Gemini.

Model IDs

Model API ID Provider
Gemini 3.1 Flash Image gemini-3.1-flash-image-preview Google AI
Gemini 3 Pro Image gemini-3-pro-image-preview Google AI
Gemini 2.5 Flash Image gemini-2.5-flash-image Google AI
GPT Image 2 (default) gpt-image-2 OpenAI
GPT Image 2 (ChatGPT-parity output) chatgpt-image-latest OpenAI
GPT Image 1.5 (transparency-only) gpt-image-1.5 OpenAI

Verify model IDs before use — they change frequently:

curl -s "https://generativelanguage.googleapis.com/v1beta/models?key=$GEMINI_API_KEY" | python3 -c "import sys,json; [print(m['name']) for m in json.load(sys.stdin)['models'] if 'image' in m['name'].lower()]"

Read the full file on GitHub · 390 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 390 lines · 165 tokens per session scan C c6dfa3c1153c

Subscribe to this mod's changes

ai-image-generator is a skill published in the GitHub repository jezweb/claude-skills (1,001 stars, last pushed 2mo ago), licensed MIT. It adds 165 tokens to every session and 3,960 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ensemble-solving

Generate multiple diverse solutions in parallel and select the best. Use for architecture decisions, code generation with multiple valid approaches, or creative tasks where exploring alternatives improves quality.

mhattingpete/claude-skills-marketplace · 35 tokens

code-transfer

Transfer code between files with line-based precision. Use when users request copying code from one location to another, moving functions or classes between files, extracting code blocks, or inserting code at specific line numbers.

mhattingpete/claude-skills-marketplace · 43 tokens

feature-planning

Break down feature requests into detailed, implementable plans with clear tasks. Use when user requests a new feature, enhancement, or complex change.

mhattingpete/claude-skills-marketplace · 32 tokens

review-implementing

Process and implement code review feedback systematically. Use when user provides reviewer comments, PR feedback, code review notes, or asks to implement suggestions from reviews.

mhattingpete/claude-skills-marketplace · 35 tokens

codebase-documenter

Generates comprehensive documentation explaining how a codebase works, including architecture, key components, data flow, and development guidelines. Use when user wants to understand unfamiliar code, create onboarding docs, document architecture, or explain how the system works.

mhattingpete/claude-skills-marketplace · 52 tokens

conversation-analyzer

Analyzes your Claude Code conversation history to identify patterns, common mistakes, and opportunities for workflow improvement. Use when user wants to understand usage patterns, optimize workflow, identify automation opportunities, or check if they're following best practices.

mhattingpete/claude-skills-marketplace · 48 tokens