Generate Image
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
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.pywith model listing, per-model inspection, and a free--dry-runmode - 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-schematicsskill
Install
$ npx -y skills add k-dense-ai/scientific-agent-skills --skill generate-image -yInstalls 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:
--api-key- the
OPENROUTER_API_KEYenvironment variable OPENROUTER_API_KEY=in a.envfile, 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- Infographics2.3K
- Matlab2.3K
- Dask2.3K
- Market Research Reports2.3K
- Get Available Resources2.3K
- Optimize For Gpu2.3K
- Pymc2.3K
- Venue Templates2.3K
- Research Lookup2.3K
- Umap Learn2.3K
- Parallel Web2.3K
- Scikit Survival2.3K
- Biopython2.3K
- Torch Geometric2.3K
- Open Notebook2.3K
- Timesfm Forecasting2.3K
- Geopandas2.3K
- Stable Baselines32.3K
- Geomaster2.3K
- Pymoo2.3K
- Simpy2.3K
- Consciousness Council2.3K
- Scikit Bio2.3K
- What If Oracle2.3K
Similar to Generate Image
More AI Image, Video & Voiceimage-createstarchild-ai-agent/official-skills2.1K installsGenerate, edit, cut out, and inspect images with hosted models, enforcing a validate-call-remember workflow.
gpt-imagewuyoscar/gpt-image2-skill612 installsGenerate and edit images through a packaged CLI with a prompt reference gallery and model routing.
gpt-image-skillfeiskyer/claude-code-settings161 installsGenerates or edits images through OpenAI's GPT Image models, gated to requests that name OpenAI or GPT.
imagecoreyhaines31/marketingskills108K installsCatalog skill for generating, editing, and optimizing marketing images across AI models, design tools, and web optimization.
ai-image-generatorjezweb/claude-skills1.5K installsAI image generation skill for Gemini and GPT Image models, covering model selection, prompting, and API calls.