Generate Image
Generate Image is a skill in K-Dense's Claude Scientific Writer (MIT) for photos, illustrations, concept art, logos, and image edits. Version 2.0 (reviewed 2026-07-26) targets the OpenRouter Image API (POST /api/v1/images), which puts Gemini, FLUX, Seedream, Recraft, GPT-Image, and roughly thirty other models behind one request shape. Earlier listings mentioned only FLUX.2 Pro and Gemini 3 Pro.
Key Features
- One script, many models:
scripts/generate_image.pydefaults togoogle/gemini-3.1-flash-image. The skill's model table suggestsgoogle/gemini-3-pro-imagefor the top Gemini tier,black-forest-labs/flux.2-profor photoreal control and seeds,flux.2-klein-4bfor cheap iteration,recraft/recraft-v4-vectorfor SVG, andopenai/gpt-image-2for transparent backgrounds. - Parameter awareness: models reject parameters they do not support, so the script sends only flags you pass. For example,
--resolutionworks for Gemini but not FLUX, and--seedworks for FLUX but not Gemini or OpenAI.--list-modelsprints live support and needs no key. - Editing and references:
-iis repeatable and accepts local files, URLs, or data URLs for edits and composites. Reference limits vary by model, from 1 (Recraft) to 16 (OpenAI). - Cost visibility: the per-request cost from
usage.costis printed after each call. Billing is all or nothing: a failed generation is not charged.
Use Cases
- Hero images and backgrounds for posters and slides.
- Conceptual illustrations for a paper or blog post.
- Vector logos and quick variations of a visual idea.
Pricing and Access
The skill is free (MIT) and uses only the Python standard library (3.9+). Every generation is a paid OpenRouter request under your OPENROUTER_API_KEY; the price depends on the model you pick.
Getting Started
- Install the plugin in Claude Code:
/plugin marketplace add https://github.com/K-Dense-AI/claude-scientific-writer, then/plugin install claude-scientific-writer. - Set
OPENROUTER_API_KEYin your environment or an ignored.envfile. - Run
python scripts/generate_image.py "A beautiful sunset over mountains", or edit withpython scripts/generate_image.py "Make the sky purple" -i photo.jpg -o edited.png.
Limitation: reference images are uploaded to OpenRouter, so do not send unpublished or sensitive data. Sending an unsupported parameter returns an HTTP 400 rather than being ignored.
Frequently Asked Questions
Should I use it for flowcharts?
No. The skill points technical diagrams to Scientific Schematics, which adds a quality review loop.
Can I get several images at once?
Yes, with --n on models that allow it: Seedream and OpenAI up to 10, Recraft up to 6, Gemini and FLUX only 1.
Alternatives
- Nano Banana: Google's image model, usable directly without the script.
- GPT Image 2: OpenAI's image model, also reachable through this skill.
- Canvas Design Skill: Anthropic's skill for designed visual pieces rather than raw generation.
Conclusion
Generate Image is a thin, well-documented wrapper that lets Claude call almost any image model on OpenRouter from one command. Choose cheap models while iterating, and keep sensitive references local. See more in the skills hub.
Comments
No comments yet. Be the first to comment!
Related Tools
Related Insights

Anthropic Subagent: The Multi-Agent Architecture Revolution
Deep dive into Anthropic multi-agent architecture design. Learn how Subagents break through context window limitations, achieve 90% performance improvements, and real-world applications in Claude Code.
Skills + Hooks + Plugins: How Anthropic Redefined AI Coding Tool Extensibility
An in-depth analysis of Claude Code's trinity architecture of Skills, Hooks, and Plugins. Explore why this design is more advanced than GitHub Copilot and Cursor, and how it redefines AI coding tool extensibility through open standards.
Claude Code's Next Frontier: Not Code, But Your Local Obsidian Knowledge Base
Explore how Obsidian + Claude Code transforms from a knowledge management tool into your private AI assistant. Complete guide including obsidian-skills, Claudian plugin, Claudesidian template, and best practices for achieving both data privacy and AI capabilities.