generate_image
Generate images from text prompts via OpenRouter using quality presets or explicit model IDs, with style, size, and aspect ratio options.
Instructions
Generate an image from a text prompt via OpenRouter. Supports quality presets (fast/balanced/quality) or explicit model IDs. For best results, expand brief prompts with details about composition, lighting, color palette, and mood before calling — unless the user explicitly asked for a simple/minimal prompt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of image variations to generate (1-4). Ask the user how many they want before generating. | |
| model | No | Explicit OpenRouter model ID — overrides quality preset | |
| style | No | Visual style preset to prepend to the prompt | |
| prompt | Yes | What to generate | |
| quality | No | Quality preset: fast (cheap/quick), balanced (default), quality (best output) | balanced |
| image_size | No | Output image size | |
| output_path | No | Optional path to save the PNG. Can be a full file path or a directory (auto-names the file) | |
| aspect_ratio | No | Output aspect ratio |