generate-image
Skill by agent-skills-hub
Generate or edit images with AI models through OpenRouter, including FLUX.2 Pro and Gemini 3.1 Flash Image Preview. It is for photos, illustrations, concept art and visual assets, but not for technical diagrams.
Install generate-image
Built from the published package, never by AI.
git clone --depth 1 https://github.com/agent-skills-hub/agent-skills-hub /tmp/agent-skills-hub && mkdir -p ~/.claude/skills && cp -r /tmp/agent-skills-hub/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/agent-skills-hub/agent-skills-hub /tmp/agent-skills-hub && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-skills-hub/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
generate-image is an agent skill that creates new images from text prompts or edits existing images using models available through OpenRouter. The source names FLUX.2 Pro, FLUX.2 Flex and Gemini 3.1 Flash Image Preview. It covers photos, illustrations, artwork, concept art and visual assets, and it is meant for any image that is not a technical diagram or schematic.
The skill runs a bundled Python script, scripts/generate_image.py. The script takes a text prompt and an optional input image, calls the chosen model and saves the result as a PNG file, by default generated_image.png. It needs an OpenRouter API key, read from a .env file or an environment variable. The source says it suits scientific documents, presentations, posters and general visual content, and it directs flowcharts and technical diagrams to the scientific-schematics skill.
Written from the project's SKILL.md and checked against it.
What it can do
- Generate imagesCreates a new image from a text description of the scene or style.
- Edit imagesModifies an existing image using written editing instructions and an input file.
- Model selectionChooses a model with the --model flag, such as FLUX.2 Pro or Gemini 3.1 Flash Image Preview.
- Custom output pathSaves the result to a file path set with the --output flag.
What you need
- OpenRouter API key
- Python
- requests library
Try asking
- Generate a concept art image of a futuristic city at dusk
- Edit photo.jpg so the sky becomes a sunset
- Create a blue abstract slide background and save it to slides/background.png
Good to know
- flux.2-flex supports generation only, not editing.
- Not intended for flowcharts, circuits or technical diagrams.
- Typical generation time is 5 to 30 seconds, depending on the model.
- The source does not list prices; pricing is on the OpenRouter models page.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/generate-image/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
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 models does generate-image support?
The default is google/gemini-3.1-flash-image-preview. The source also lists black-forest-labs/flux.2-pro for generation and editing and black-forest-labs/flux.2-flex for generation only.
Can generate-image edit existing images?
Yes. Pass an input file with --input. The source says PNG, JPEG, GIF and WebP files are supported, and both Gemini 3.1 Flash Image Preview and FLUX.2 Pro support editing.
How much does it cost to run?
The source does not state prices. It refers users to the OpenRouter models page at openrouter.ai/models for pricing.
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 73 of 100. Grades: maintenance A, licence A, quality B. 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.
