New advertisers: 50% off your first month with code FIRSTMONTHSee slots

AI image generation and editing via FLUX.2 and Gemini models for photos, illustrations, and concept art.

skills.sh installs
1.4K
GitHub stars
34.1K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers image generation and editing through OpenRouter, using scripts/generate_image.py with an optional --input image for edit mode
  • Offers models including google/gemini-3-pro-image-preview, black-forest-labs/flux.2-pro, and the cheaper black-forest-labs/flux.2-flex for generation only
  • Requires an OPENROUTER_API_KEY in a .env file or environment variable and reports clear errors when it is missing
  • Designed for general visual content, routing technical diagrams, flowcharts, and pathways to the scientific-schematics skill instead

Install

$ npx -y skills add davila7/claude-code-templates --skill generate-image -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Generate Image

Generate and edit high-quality images using OpenRouter's image generation models including FLUX.2 Pro and Gemini 3 Pro.

When to Use This Skill

Use generate-image for:

  • Photos and photorealistic images
  • Artistic illustrations and artwork
  • Concept art and visual concepts
  • Visual assets for presentations or documents
  • Image editing and modifications
  • Any general-purpose image generation needs

Use scientific-schematics instead for:

  • Flowcharts and process diagrams
  • Circuit diagrams and electrical schematics
  • Biological pathways and signaling cascades
  • System architecture diagrams
  • CONSORT diagrams and methodology flowcharts
  • Any technical/schematic diagrams

Quick Start

Use the scripts/generate_image.py script to generate or edit images:

# Generate a new image
python scripts/generate_image.py "A beautiful sunset over mountains"

# Edit an existing image
python scripts/generate_image.py "Make the sky purple" --input photo.jpg

This generates/edits an image and saves it as generated_image.png in the current directory.

API Key Setup

Details

Repository
github.com/davila7/claude-code-templates
Categories
AI Image, Video & Voice, Design & UI/UX

More from davila7/claude-code-templates

All 398

Similar to Generate Image

More AI Image, Video & Voice