generate-image
Generate or edit images using AI models (FLUX, Nano Banana 2). Use for general-purpose image generation including photos, illustrations, artwork, visual assets, concept art, and any image that is not a technical diagram or schematic. For flowcharts, circuits, pathways, and technical diagrams, use the scientific-schematics skill instead.
Author
Category
Image ProcessingInstall
Download and extract to your skills directory
Copy command and send to AI Agent for auto-install:
Generate Image - AI Image Generation and Editing Tool
Skill Overview
Generate Image is an image generation and editing tool based on the OpenRouter API. It supports advanced models such as FLUX.2 Pro and Gemini 3.1 Flash Image Preview for creating high-quality photos, artistic illustrations, concept art, and visual assets, as well as providing image editing capabilities.
Use Cases
Core Features
scripts/generate_image.py script. Simply provide a text description to generate an image, with no complex programming knowledge required, making it easy to get started quickly.Frequently Asked Questions
What API Key does the Generate Image skill require?
Generate Image requires an OpenRouter API key. You can configure it in either of the following ways:
.env file in the project directory and add OPENROUTER_API_KEY=your-api-key-hereexport OPENROUTER_API_KEY=your-api-key-hereWhat is the difference between Generate Image and scientific-schematics?
Generate Image is intended for general-purpose image generation and editing, such as photos, artistic illustrations, and concept art. In contrast, scientific-schematics is specifically designed for technical diagrams, such as flowcharts, circuit diagrams, biological pathway diagrams, and system architecture diagrams. If you need to generate a technical schematic or flowchart, you should use the scientific-schematics skill.
How can I use the FLUX model to generate high-quality images?
Use the following command to generate an image with the FLUX.2 Pro model:
python scripts/generate_image.py "Your image description" --model "black-forest-labs/flux.2-pro" --output output.pngFLUX.2 Pro supports both image generation and editing, offering fast speeds and high quality. If you only need image generation and are cost-sensitive, you can use the flux.2-flex model.