generate-image

Generate or edit images via OpenRouter's chat completions API with a Python CLI.

321|26|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/mkurman/tamux --skill generate-image-mkurman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-image
Source: https://github.com/mkurman/tamux/tree/main/skills/scientific-skills/generate-image
Command: npx skills add https://github.com/mkurman/tamux --skill generate-image-mkurman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

Generate high-quality AI images and perform edits using OpenRouter models, reducing manual artwork time and enabling rapid visual asset creation.

Core Features & Use Cases

  • Generate: create new visuals from prompts using multiple models (e.g., Gemini-3.1 Flash Image Preview, Flux series).
  • Edit: modify existing images by providing an input image and editing prompts.
  • Use Case: produce marketing visuals, scientific illustrations, and concept art with flexible outputs.

Quick Start

Provide a prompt to generate or edit an image using the OpenRouter-powered script.

Frequently Asked Questions about generate-image

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate AI images from text prompts using OpenRouter?

To generate AI images from text prompts using OpenRouter, you provide a text prompt to the Python CLI, which calls OpenRouter's chat completions API and saves the resulting image directly to disk.

Can I edit an existing photo with AI using an input image and a prompt?

Yes, you can edit an existing photo with AI by passing an optional input image parameter alongside your editing prompt to the CLI, allowing the OpenRouter models to modify the original visual asset.

What AI models are available for image generation and editing via OpenRouter?

Available AI models for image generation and editing via OpenRouter include Gemini-3.1 Flash Image Preview and the Flux series, supporting diverse outputs like marketing visuals, scientific illustrations, and concept art.

Do I need an API key to generate images with OpenRouter models?

Yes, you need an OpenRouter API key to generate images. The Python CLI script automatically handles loading your API key from a local .env file to authenticate chat completions API requests.

What is the best way to automate creating marketing visuals and concept art?

The best way to automate creating marketing visuals and concept art is using a Python CLI with OpenRouter, enabling rapid visual asset generation directly from text prompts without manual artwork time.

Does the OpenRouter image generation script require external Python dependencies?

Yes, the OpenRouter image generation script requires the Python requests library to handle API calls, serving as the sole external dependency for executing chat completions and saving image files.