Generate or edit images using AI models (FLUX, Gemini). Use for scientific illustrations, diagrams, schematics, infographics, concept visualizations, and artistic images. Supports image editing to modify existing images (change colors, add/remove elements, style transfer). Useful for figures, posters, and visual explanations.
Detected risks:
The generate-image skill enables users to create and edit high-quality images using AI-powered models such as FLUX.2 Pro and Gemini 3 Pro. It addresses the challenge of producing custom visuals quickly without requiring advanced graphic design skills. By leveraging natural language prompts, users can generate illustrations, diagrams, infographics, and artistic images directly from descriptive text. Additionally, the skill allows for modifying existing images, offering flexibility to adjust colors, add or remove elements, or perform style transfers, making it a comprehensive solution for visual content creation.
Key features include seamless integration with OpenRouter's image generation models, support for multiple models with different performance and quality characteristics, and the ability to edit images based on user-provided instructions. Users can specify input images, select preferred models, and define custom output paths. The script handles API key management, error detection, and outputs images in standard PNG format. The skill supports both single-image generation and batch creation through repeated execution with varied prompts, catering to diverse workflow needs.
This skill is ideal for researchers, educators, content creators, and designers who require rapid prototyping of visual materials. It is particularly useful for producing scientific illustrations, posters, concept visualizations, and explanatory graphics. By simplifying the image creation process, it reduces reliance on manual design tools, enabling users to focus on creative and communicative aspects of their projects. Its flexibility and model selection options make it suitable for a broad audience, from hobbyists to professionals in technical and creative fields.
Run the script with a text prompt describing the image, e.g., `python scripts/generate_image.py "A beautiful sunset over mountains"`. The generated image will be saved as `generated_image.png` by default.
Yes. Use the `--input` parameter to provide the image path and include your editing instructions in the prompt, e.g., `python scripts/generate_image.py "Make the sky purple" --input photo.jpg`.
The skill supports `google/gemini-3-pro-image-preview` and `black-forest-labs/flux.2-pro` for both generation and editing, and `black-forest-labs/flux.2-dev` for generation only. Choose based on quality, editing capability, and cost considerations.
Yes. You must set an OpenRouter API key in a `.env` file or as an environment variable. The script will provide an error message if the key is missing and instructions to configure it.
The script requires Python and the `requests` library. Images are returned as PNG files. Some models support editing while others are generation-only, and batch generation requires running the script multiple times with different prompts.
Quick Setup:
.claude/skills/Repository
Microck/ordinary-claude-skills