generate_image
Create custom images from text descriptions using AI. Specify your desired image with a text prompt and choose from multiple aspect ratios for optimal results.
Instructions
Generate a NEW image from text prompt using OpenRouter (Gemini 2.5 Flash Image). Use this ONLY when creating a completely new image, not when modifying an existing one.
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 |
|---|---|---|---|
| aspectRatio | No | Optional aspect ratio for the generated image. Default is 1:1 (1024×1024). Options: 1:1, 16:9, 9:16, 3:4, 4:3, etc. | |
| prompt | Yes | Text prompt describing the NEW image to create from scratch |