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

  • Score 94
  • 59k stars
  • MIT
  • 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/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-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 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

A

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

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.

generate-image Install

Add to stack

Loading.