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.

Install

Hot:10

Download and extract to your skills directory

Copy command and send to AI Agent for auto-install:

Download and install this skill https://openskills.cc/api/download?slug=k-dense-ai-skills-generate-image&locale=en&source=copy

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

  • Research Papers and Academic Presentations: Generate conceptual illustrations for research papers, create background images for presentations, and produce visual assets for academic posters without requiring professional design skills.
  • Marketing and Promotional Materials: Generate website imagery, marketing and promotional images, product concept visuals, and other visual content to quickly produce high-quality marketing materials.
  • General Image Creation: Create digital artworks, edit existing photos (such as changing backgrounds or adding elements), and generate images and backgrounds for presentations.
  • Core Features

  • Multi-Model Image Generation: Supports multiple high-quality image generation models, including FLUX.2 Pro and Gemini 3.1 Flash Image Preview, allowing you to select the model best suited to your needs.
  • Image Editing and Modification: In addition to generating images from scratch, it can edit existing images, including changing backgrounds, adding elements, adjusting colors, and more to meet detailed modification requirements.
  • Simple Python Script Interface: Provides a command-line tool through the 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:

  • Create a .env file in the project directory and add OPENROUTER_API_KEY=your-api-key-here

  • Or set the environment variable: export OPENROUTER_API_KEY=your-api-key-here

  • You can obtain an API key at https://openrouter.ai/keys
  • What 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.png

    FLUX.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.