generate_image
Generate images from text prompts via OpenRouter using style and quality presets, with controls for aspect ratio, size, variation count, and optional PNG output paths.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_image"
}
}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 |