generate-image
Skill by K-Dense-AI
Generates and edits images through the OpenRouter Image API, reaching models such as Gemini, Seedream, Recraft, GPT-Image and Riverflow. Aimed at photos, illustrations, logos, concept art and reference-based image editing.
Install generate-image
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/claude-scientific-writer /tmp/claude-scientific-writer && mkdir -p ~/.claude/skills && cp -r /tmp/claude-scientific-writer/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/claude-scientific-writer /tmp/claude-scientific-writer && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-scientific-writer/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
The generate-image skill creates and edits images through the OpenRouter Image API. It reaches Gemini, Seedream, Recraft, GPT-Image, Riverflow and other models through one request shape. A bundled Python script handles generation, edits from local files, URLs or data URLs used as reference images, and model listing.
The script checks each request against the live model catalogue before anything is billed, so unsupported options fail locally with the allowed values printed. A dry-run flag prints the request body without generating. The skill is meant for photos, illustrations, concept art, posters, logos and compositing. For flowcharts, circuits and other technical diagrams, the source points to 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
- Image generationCreates images from a text prompt using a chosen model, defaulting to google/gemini-3.1-flash-image.
- Image editingEdits an existing image or composites several reference images from paths, URLs or data URLs.
- Model listingPrints the model catalogue and allowed values with --list-models, optionally filtered.
- Model inspectionShows one model's allowed values and pricing with --model-info.
- Dry runValidates the request and prints the exact body without generating or billing, using --dry-run.
- Preflight checkChecks parameters against the live catalogue before the billed request is sent.
- Multiple imagesProduces several images per request where the model allows it, using --n.
- Vector outputRecraft vector models return SVG files, as the source notes for recraft/recraft-v4.1-vector.
- Transparent backgroundSupports --background transparent on certain OpenAI models, such as gpt-image-1.
What you need
- OpenRouter API key set as OPENROUTER_API_KEY
- Python 3.9 or later
- Network access to openrouter.ai
Try asking
- Generate a wide poster hero image with empty space on the right for a title
- Edit portrait.png to add sunglasses to the person in the photo
- Make a two-colour minimal fox logo as an SVG using the Recraft vector model
Good to know
- Generation requires an OpenRouter key and bills per request.
- Parameter support varies by model, and unsupported values are rejected.
- Reference image limits differ by model, from 1 to 16 images.
- Not intended for flowcharts or technical diagrams; use scientific-schematics for those.
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.md15 KB -
references/models.md12 KB -
scripts/generate_image.py28 KB
Alternatives to generate-image
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
generate-image: common questions
Which image models does it support?
The source names Gemini, Seedream, Recraft, GPT-Image and Riverflow, and says the OpenRouter Image API reaches roughly thirty other models behind one request shape.
Do failed generations cost money?
The source says billing is all-or-nothing: a failed generation is not billed, so a rejected parameter costs nothing but time.
Can it create vector logos?
Yes. The source says recraft/recraft-v4.1-vector returns SVG output, and the media type is image/svg+xml.
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 92 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: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
