Agent skill · design visual · k-dense-ai

generate-image

Generate or edit images with AI models through the OpenRouter Image API (Gemini, Seedream, Recraft, GPT-Image, Riverflow). Use for photos, illustrations, artwork, concept art, visual assets, logos, and image editing or compositing from reference images. For flowcharts, circuits, pathways, and other technical diagrams, use the scientific-schematics skill instead.

Why this skill is useful

Provides specific commands and model options for generating and editing images using the OpenRouter Image API that the AI wouldn't reliably generate on its own.

What it needs

Requires python installed locally. Requires openrouter account access. About 9k tokens when loaded. Last updated 2026-08-03. 32,849 stars on the source repository.

What this skill does

Generate Image Generate and edit images through OpenRouter's Image API, which reaches Gemini, Seedream, Recraft, GPT-Image, Riverflow, and roughly thirty other models behind one request shape. When to use Use this skill for: photos and photorealistic images, illustrations and artwork, concept art, presentation and poster visuals, logos and vector marks, image editing, and compositing from reference images. Use scientific-schematics instead for: flowcharts, circuit diagrams, biological pathways, system architecture diagrams, CONSORT diagrams, and other technical schematics. API key Generation requires an OpenRouter key. The script resolves it in this order: 1. --api-key 2. the OPENROUTERAPIKEY environment variable 3. OPENROUTERAPIKEY= in a .env file, searching the working directory upward, then the script's own directory If none is present the script exits with setup instructions. Keys: https://openrouter.ai/keys --list-models, --model-info, and --dry-run need no key. Quick start Paths are relative to this skill's directory. Output defaults to generatedimage.<ext>, where the extension follows the media type the model returned. The per-request cost is printed after the run. Then look at the image. Read the file back and check it before using it anywhere: composition, aspect ratio, and any text are all things models get wrong silently. Choosing a model Default: google/gemini-3.1-flash-image. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills k-dense-ai/generate-image

View the source on GitHub

Browse the @skills marketplace