ai-image-generator
Generate AI images using Gemini or GPT APIs directly. Covers model selection (Gemini for scenes; GPT Image 2 for text rendering, batch variations, multi-reference compositing; GPT Image 1.5 for transparent icons), the 5-part prompting framework, API calling patterns, multi-turn editing, and quality assurance. Produces photorealistic scenes, icons, illustrations, OG images, posters, infographics, and product shots. Use when building websites that need images, creating marketing assets, or generating visual content. Triggers: 'generate image', 'ai image', 'create hero image', 'make an icon', 'ge
npx skills add jezweb/claude-skills --skill ai-image-generator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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](https://imagebot.au) 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 transp
- Model Selection
- Model IDs
- GPT Image 2 Specifics
- 1. Text rendering actually works
- 2. Multi-variation batching
- 3. Multi-reference compositing
- Modes
- Aspect ratios
- Resolution
- Generation time
- Constraints
- Pricing (per 1024×1024 image)
- The 5-Part Prompting Framework
- 1. Image Type
Convert to WebP for web use
python3 -c "
from PIL import Image
img = Image.open('hero-image.png')
Trim whitespace from transparent icons
img = Image.open('icon.png')
trimmed = img.crop(img.getbbox())
export GEMINI_API_KEY="your-key-here"
export OPENAI_API_KEY="your-key-here"What does the ai-image-generator skill do?
Generate AI images using Gemini or GPT APIs directly. Covers model selection (Gemini for scenes; GPT Image 2 for text rendering, batch variations, multi-reference compositing; GPT Image 1.5 for transparent icons), the 5-part prompting framework, API calling patterns, multi-turn editing, and quality assurance. Produces photorealistic scenes, icons, illustrations, OG images, posters, infographics, and product shots. Use when building websites that need images, creating marketing assets, or generating visual content. Triggers: 'generate image', 'ai image', 'create hero image', 'make an icon', 'ge
How do I install it?
Run `npx skills add jezweb/claude-skills --skill ai-image-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From jezweb/claude-skills, a repository with 954 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
