image-gen
Skill by EverMind-AI
Image-gen generates images from text prompts by calling Google's Nano Banana models on OpenRouter. It is for AI assistants that need to draw, illustrate or render pictures, scenes and designs.
Install image-gen
Built from the published package, never by AI.
git clone --depth 1 https://github.com/EverMind-AI/Raven /tmp/Raven && mkdir -p ~/.claude/skills && cp -r /tmp/Raven/demos/skill_retrieval/skills/image-gen ~/.claude/skills/image-genRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/EverMind-AI/Raven /tmp/Raven && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Raven/demos/skill_retrieval/skills/image-gen ~/.gemini/antigravity-cli/skills/image-genAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Image-gen is an agent skill that generates one or more images from a text prompt, and can also take input images to edit or vary. It calls Google's Nano Banana models on OpenRouter, either google/gemini-2.5-flash-image or google/gemini-3.1-flash-image-preview. The skill uses the OpenAI-compatible chat completions API with modalities set to image and text. It reads the returned images from the message images array, decodes the base64 data and writes a PNG file.
The skill needs an OPENROUTER_API_KEY environment variable and Python. Its SKILL.md lists trigger phrases such as draw, illustrate, make a logo or show what something looks like. It advises against using it for charts from data or precise diagrams. The source also covers troubleshooting for empty image arrays, region blocks and content refusals. It suits assistants that need to create pictures, posters, icons or scenes from text.
Written from the project's SKILL.md and checked against it.
What it can do
- Text to imageGenerates one or more images from a text prompt.
- Image editingTakes an input image to edit, vary or restyle, such as a watercolor style.
- Model choiceUses either the original Nano Banana or Nano Banana 2 model on OpenRouter.
- Save to PNGDecodes the returned base64 image data and writes it to a PNG file.
What you need
- OpenRouter API key set as OPENROUTER_API_KEY
- Python
Try asking
- Generate a watercolor picture of a lighthouse at dusk
- Make this photo look like a pencil sketch
- Draw a simple banner for a bakery and save it as a PNG
Good to know
- Observed cost is about $0.04 per 1024×1024 PNG at the time of writing.
- Charts and precise diagrams are better made with plotting or graph tools.
- Some regions may receive HTTP 403 errors from OpenRouter, and the source suggests a proxy.
- Content-filtered prompts return a refusal and need to be rewritten.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: demos/skill_retrieval/skills/image-gen/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to image-gen
All alternatives →Keeps customer-facing CopilotKit Intelligence docs on one approved name per concept. Useful for writers, editors and reviewers of docs, nav labels, signup labels and image alt text in showcase/shell-docs.
Gets, makes and treats media for HyperFrames videos. It sources music, sound effects, images, voiceover, avatars and transcripts with HeyGen or free local tools, and applies colour grades and looks to footage.
Searches the user's uploaded photo library and connected device galleries to find, date, and describe photos. Built for personal photo requests and for cases where a photo could ground or personalize an answer.
Converts text, markdown, or another skill's summary into a listenable MP3 using local CPU-only neural text-to-speech. It rewrites the prose for listening first. Aimed at people who want audio briefings.
Generate Image creates new images and edits existing ones using OpenRouter models such as FLUX.2 Pro and Gemini 3 Pro. It is aimed at photos, illustrations, concept art and other visuals that are not technical diagrams.
Gives an AI assistant the HyperFrames CLI for building, checking, previewing and rendering video projects. It suits people who make videos from HTML compositions and want the assistant to run the full workflow.
Compare with intelligence-vocabulary, media-use or media_library
image-gen: common questions
How much does each image cost?
The source reports about $0.04 per 1024×1024 PNG at the time of writing, so 10 images are about $0.40.
Which models does it call?
It calls google/gemini-2.5-flash-image and google/gemini-3.1-flash-image-preview through OpenRouter.
Why does a request return no images?
The source says the request must include modalities set to image and text, otherwise OpenRouter returns text only.
How do I install image-gen?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is image-gen free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is image-gen safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to image-gen?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
