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.
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-imageRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/lamm-mit/scienceclaw /tmp/scienceclaw && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scienceclaw/skills/generate-image ~/.gemini/antigravity-cli/skills/generate-imageAntigravity 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
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
ANo 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 →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
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.
