Claude Code Image Gen — Development skill for Claude Code
A Claude Code skill that generates images through OpenAI, Gemini, Higgsfield, FLUX, or any OpenAI-compatible endpoint.
How to install Claude Code Image Gen
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open behzadsp/claude-code-image-gen and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Image Gen does
A Claude Code skill that generates images through OpenAI, Gemini, Higgsfield, FLUX, or any OpenAI-compatible endpoint. One CLI, no dependencies.
Alternatives in Development
- Imagegen — Generate and edit images using OpenAI's Image API for projects 14.6k ★
- Claude Code API — OpenAI-compatible API gateway for Claude Code CLI 300 ★
- Nano Banana Image Generation — Generate professional images via the Gemini CLI's nanobanana extension 261 ★
README
claude-code-image-gen
A [Claude Code](https://claude.com/claude-code) skill that generates images through OpenAI, Google Gemini, Higgsfield, Black Forest Labs FLUX, or any OpenAI-compatible endpoint — behind a single CLI with no dependencies.
Ask Claude for a hero image and it picks the provider you have keys for, writes the prompt, saves the PNG into your project, and shows it to you.
you ▸ generate a hero image for the pricing page, dark, abstract, 16:9
↳ skill: image-gen
↳ python3 scripts/generate.py -p "..." -a 16:9 -o ./public/hero.png
↳ {"success": true, "provider": "openai", "model": "gpt-image-2.5-sunburst"}
Why
Most image-gen integrations pin one provider, or one model name that goes stale the next time the provider ships. This one routes across providers, reads the live model catalog instead of a hardcoded list, and degrades to a clear error instead of a wrong guess.
- No dependencies. Python 3.8+ standard library. No
pip install, no Node, no MCP server to keep running. - Provider-agnostic. Five backends, one flag. Anything OpenAI-shaped works without new code.
- Resilient parsing. The response walker finds a base64 blob or image URL anywhere in the payload, so a provider tweaking its schema does not break it.
- Async handled. Higgsfield and FLUX submit-then-poll jobs are wrapped; you just get a file path back.
Install
git clone https://github.com/behzadsp/claude-code-image-gen.git ~/.claude/skills/image-gen
Claude Code loads skills from `~/.claude/skills/` (personal) or `.claude/skills/` (per-project, committed to git). To keep the repo elsewhere while still having it discovered, clone where you like and symlink instead:
git clone https://github.com/behzadsp/claude-code-image-gen.git ~/src/image-gen
ln -s ~/src/image-gen ~/.claude/skills/image-gen
Restart Claude Code, then ask it for an image.
Optionally put the CLI on PATH so it also works as a plain c
Related Skills
Pvc Img Gen Codex
Claude Code skill that makes and edits real images through the Codex CLI from the OpenAI ChatGPT VS Code exten
ChatGPT Image 2.5 Claude Skill
A skill that generates and edits images with ChatGPT Images 2.5, using your own ChatGPT login through the Code
Generate Image Skill
Give your coding agent the power to generate its own images locally with FLUX.1-schnell — free, offline, no AP
Carousel Cover
Generate a cover image for the current carousel via Higgsfield CLI. Loads the matching prompt template, fills
Gen Images Skill
Context-aware image generation skill for Claude Code — analyzes website brand identity and generates on-brand
Image Generation Skill
Claude Code skill: make and edit images by asking. Uses OpenAI's Codex CLI. Install: npx skills add BrickleRex
Related Agents
Image Generator
Generates and edits images using the OpenAI Image API via the bundled CLI (scripts/image_gen.py). Use for conc
Codex CLI
Codex CLI → any OpenAI-compatible endpoint
Openrouter Agent
Runs a model from any of ~60 vendors through OpenRouter's OpenAI-compatible endpoint, billed per token against