generate-image
Skill by K-Dense-AI
Generates or edits images through the OpenRouter Image API, using models such as Gemini, Seedream, Recraft and GPT-Image. Built for photos, illustrations, logos, concept art and compositing from reference images.
Install generate-image
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/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/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scientific-agent-skills/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 and edits images through the OpenRouter Image API. It reaches models such as Gemini, Seedream, Recraft, GPT-Image and Riverflow behind one request shape, and a bundled Python script sends the requests. Reference images can be local files, HTTP(S) URLs or data URLs. The script can also list models, show one model's allowed values and pricing, and run a dry run without generating.
The script checks each request against the model catalogue before the billed call, so unsupported options fail locally with the legal values. The skill is aimed at photos, illustrations, concept art, visual assets, logos, and image editing or compositing. The source says flowcharts, circuits and other technical diagrams should use the scientific-schematics skill instead. Generation requires an OPENROUTER_API_KEY and bills per request.
Written from the project's SKILL.md and checked against it.
What it can do
- Generate imagesCreates images from a text prompt using a chosen OpenRouter image model.
- Edit from referencesEdits or composites images using one or more local or URL reference images.
- List modelsPrints the model catalogue and allowed values, optionally filtered by substring.
- Inspect a modelShows one model's allowed values and pricing.
- Dry runPrints the request payload without generating or billing.
- Preflight checkChecks options against the model catalogue before a billed request is sent.
- Choose output formatSupports png, jpeg, webp and svg output where the selected model allows it.
What you need
- OpenRouter API key (OPENROUTER_API_KEY)
- Python 3.9 or later
- Network access to openrouter.ai
Try asking
- Generate a watercolor illustration of a lighthouse at dusk, wide shot, no text
- Edit photo.jpg to make the sky purple and save it as edited.png
- Show the OpenRouter image models whose names match gemini
Good to know
- Each generation request is billed per request; listing models, model info and dry runs are not.
- Parameter support and allowed values vary by model and provider.
- The n value is an upper bound, and providers may return fewer images.
- Seeded results are not guaranteed to repeat across model versions.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/generate-image/SKILL.md, skills/generate-image/scripts/generate_image.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Read Write Edit Bash
-
SKILL.md17 KB -
references/models.md15 KB -
scripts/generate_image.py32 KB
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 API key does it need?
It needs an OpenRouter key, read from the --api-key flag, the OPENROUTER_API_KEY environment variable, or a .env file.
Can it make technical diagrams?
The source says flowcharts, circuit diagrams and pathways should use the scientific-schematics skill instead.
Does trying it out cost anything?
Image generation bills per request. Listing models, inspecting a model and --dry-run need no key and do not generate images.
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 MIT licence. The service it connects to may have its own pricing.
Is generate-image safe to use?
It scores 94 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 generate-image?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
