Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 84
  • 6.4k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-gen

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install image-gen in Claude Code

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

A

No 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 →

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.

image-gen Install

Add to stack

Loading.