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

generate-image

Skill by lamm-mit

Generate Image creates new images and edits existing ones from text prompts using OpenRouter models such as Gemini 3 Pro and FLUX.2. It is meant for photos, illustrations, concept art and other general visual assets, not technical diagrams.

  • Score 78
  • 250 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install generate-image

Built from the published package, never by AI.

git clone --depth 1 https://github.com/lamm-mit/scienceclaw /tmp/scienceclaw && mkdir -p ~/.claude/skills && cp -r /tmp/scienceclaw/skills/generate-image ~/.claude/skills/generate-image

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

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

Skills can run scripts on your machine. Some need an API key: check the README.

About

Generate Image is an agent skill that creates new images and edits existing ones using AI models on OpenRouter. It runs a Python script, scripts/generate_image.py, that takes a text prompt and saves the result as a PNG file. The default model is google/gemini-3-pro-image-preview, and black-forest-labs/flux.2-pro and flux.2-flex are also available.

The skill is meant for photos, illustrations, artwork, concept art and other visual assets. It tells the assistant to use the separate scientific-schematics skill for flowcharts, circuits, pathways and technical diagrams. It needs an OpenRouter API key, which can be set in a .env file or as an environment variable. It suits people who need general-purpose images for papers, slides, posters or documentation.

Written from the project's SKILL.md and checked against it.

What it can do

  • Generate imagesCreates a new image from a text prompt and saves it as a PNG file.
  • Edit imagesModifies an existing PNG, JPEG, GIF or WebP image based on written instructions when --input is set.
  • Model selectionSwitches between Gemini 3 Pro, FLUX.2 Pro and FLUX.2 Flex using the --model option.
  • Custom output pathSaves the result to a file set with --output, defaulting to generated_image.png.
  • API key lookupReads OPENROUTER_API_KEY from a .env file or accepts a key through --api-key.

What you need

  • OpenRouter API key
  • Python
  • requests library

Try asking

  • Generate a watercolor illustration of a mountain lake at dawn
  • Edit photo.jpg so the sky becomes a sunset with purple tones
  • Create a blue abstract presentation background with subtle molecular patterns

Good to know

  • The Gemini 3 Pro model is listed as a preview model.
  • FLUX.2 Flex supports generation only, not editing.
  • Generation typically takes 5 to 30 seconds.
  • The source does not list prices; it refers to OpenRouter pricing.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/generate-image/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to generate-image

All alternatives →

Compare with intelligence-vocabulary, media-use or media_library

generate-image: common questions

Which models does this skill support?

The source lists google/gemini-3-pro-image-preview as the default, plus black-forest-labs/flux.2-pro and black-forest-labs/flux.2-flex. Gemini 3 Pro and FLUX.2 Pro support both generation and editing.

Can it edit an existing image?

Yes. Passing --input with an image path enables edit mode, and the instruction in the prompt describes the change. Supported input formats are PNG, JPEG, GIF and WebP.

When should I use a different skill?

The source says to use the scientific-schematics skill for flowcharts, circuit diagrams, biological pathways, system architecture diagrams and other technical schematics.

How do I install generate-image?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is generate-image free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is generate-image safe to use?

It scores 78 of 100. Grades: maintenance A, licence A, quality B. 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 generate-image?

Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.

generate-image Install

Add to stack

Loading.