cloudflare-api
Hit the Cloudflare REST API directly for operations that wrangler and MCP can't handle well. Bulk DNS, custom hostnames, email routing, cache purge, WAF rules,…
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
$ npx -y skills add jezweb/claude-skills --skill ai-image-generator --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ai-image-generatorContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: ai-image-generator description: "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', 'generate illustration', 'create og image', 'poster', 'infographic', 'image variations', 'gpt-image-2', 'ai art', 'image generation'." allowed-tools: - Read - Write - Bash - Glob - Grep compatibility: claude-code-only
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.
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 | 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()]"
Released 2026-04-22. Three capabilities that change when you'd reach for it.
Posters, OG images with headlines, infographics with labels, UI mockups, pricing cards. Text is rendered reliably, including non-Latin scripts (Japanese, Korean, Hindi, Bengali). Primary reason to switch from Gemini — Gemini doesn't render readable text at all.
One prompt, up to 10 images in a single call. Variants share composition and palette but differ in detail. Good for style exploration before committing, A/B options for a client, rapid ideation.
Feed reference images alongside your prompt — product shots, lifestyle scenes, logos. The model places the product into the scene with correct lighting, scale, perspective. Enables "product in context" workflows without multi-turn editing.
3:1 ultra-wide through 1:3 ultra-tall, plus 1:1, 3:2, 2:3, 16:9, 9:16. Wider range than other models — useful for website banners (ultra-wide hero) or mobile story formats (ultra-tall).
Up to 2K on the long edge standard. 4K in beta.
**Up to 2 minutes on complex prompts.** Build async UX — don't block on the response. Show progress or spin off and poll.
| Quality | Cost | |---------|------| | Low | $0.006 | | Medium | $0.053 | | High | $0.211 |
Token pricing: $5/M text in, $10/M text out, $8/M image in, $30/M image out.
Build prompts in this order for consistent results:
Set the genre: "A photorealistic photograph", "An isometric illustration", "A flat vector icon"
Who or what, with specific details: "of a warm, approachable Australian woman in her early 30s, smiling naturally"
Setting and spatial relationships: "in a bright modern home with terracotta decor on wooden shelves behind her"
Camera and lighting: "Shot at 85mm f/2.0, natural window light, head and shoulders framing"
What to exclude: "Photorealistic, no text, no watermarks, no logos"
BAD — keyword soup: "professional woman, spa, warm lighting, high quality, 4K" GOOD — narrative direction: "A
Production workflow skills for Claude Code. Each skill guides Claude through a recipe to produce tangible output — scaffolded projects, generated assets, professional documents, deployed services. Ten plugins of practical, production-oriented skills.
Repo: jezweb/claude-skills
Hit the Cloudflare REST API directly for operations that wrangler and MCP can't handle well. Bulk DNS, custom hostnames, email routing, cache purge, WAF rules,…
Scaffold and deploy Cloudflare Workers with Hono routing, Vite plugin, and Static Assets. Describe project, scaffold structure, configure bindings, deploy. Use…
Generate Drizzle ORM schemas for Cloudflare D1 databases with correct D1-specific patterns. Produces schema files, migration commands, type exports, and…
Cloudflare D1 migration workflow: generate with Drizzle, inspect SQL for gotchas, apply to local and remote, fix stuck migrations, handle partial failures. Use…
Generate database seed scripts with realistic sample data. Reads Drizzle schemas or SQL migrations, respects foreign key ordering, produces idempotent…
Scaffold Hono API routes for Cloudflare Workers. Produces route files, middleware, typed bindings, Zod validation, error handling, and API_ENDPOINTS.md…