Skip to content

Generate or edit images through OpenRouter's Image API across Gemini, Seedream, Recraft, GPT-Image, and Riverflow.

CCM score
70 of 100
skills.sh installs
2.3K
GitHub stars
58.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers photos, illustrations, concept art, logos, and editing or compositing from reference images
  • Runs scripts/generate_image.py with model listing, per-model inspection, and a free --dry-run mode
  • Checks each requested parameter against the model catalogue and rejects unsupported combinations before billing
  • Designed for visual assets, not technical diagrams, which belong to the scientific-schematics skill

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill generate-image -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Generate Image

Generate and edit images through OpenRouter's Image API, which reaches Gemini, Seedream, Recraft, GPT-Image, Riverflow, and other models behind one request shape.

When to use

Use this skill for: photos and photorealistic images, illustrations and artwork, concept art, presentation and poster visuals, logos and vector marks, image editing, and compositing from reference images.

Use scientific-schematics instead for: flowcharts, circuit diagrams, biological pathways, system architecture diagrams, CONSORT diagrams, and other technical schematics.

API key

Generation requires an OpenRouter key. The script resolves it in this order:

  1. --api-key
  2. the OPENROUTER_API_KEY environment variable
  3. OPENROUTER_API_KEY= in a .env file, searching the working directory upward, then the script's own directory

If none is present the script exits with setup instructions. Keys: https://openrouter.ai/keys

--list-models, --model-info, and --dry-run need no key.

Quick start

# Generate
python scripts/generate_image.py "A beautiful sunset over mountains"

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Category
AI Image, Video & Voice
First seen
Jun 3, 2026

Questions

What does the generate-image skill do?

generate-image generates or edits images with AI models through the OpenRouter Image API, reaching Gemini, Seedream, Recraft, GPT-Image and Riverflow behind one request shape. It covers photos, illustrations, concept art, logos, and editing or compositing from reference images, while technical diagrams are routed to the scientific-schematics skill instead.

How do I install the generate-image skill?

Run npx -y skills add k-dense-ai/scientific-agent-skills --skill generate-image -y in a project to install generate-image. Once installed, the agent can call the bundled script to produce or edit images from a prompt.

What does generate-image need to run?

generate-image needs Python 3.9 or newer and network access to openrouter.ai. Image generation requires an OPENROUTER_API_KEY and bills per request, while listing models and dry runs need no key.

Which models can generate-image use?

generate-image defaults to google/gemini-3.1-flash-image and can also use models such as bytedance-seed/seedream-4.5 for photoreal control, recraft/recraft-v4.1-vector for SVG output, and openai/gpt-image-1 for transparent backgrounds. Its script checks each model's accepted parameters before billing a request.

More from k-dense-ai/scientific-agent-skills

All 132

Similar to Generate Image

More AI Image, Video & Voice