Generate Image(s)
generate_imageGenerate image(s) from a text prompt.
Instructions
Generate image(s) from a text prompt. Prefer explicit provider+model; respect model capabilities.
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>",
"provider": "<provider>",
"model": "<model>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Count of images to generate; provider limits apply. | |
| size | No | Unified size class: 'S' | 'M' | 'L'. | |
| model | Yes | Model id (e.g., 'gpt-image-1', 'dall-e-3', 'imagen-4.0-generate-001'). | |
| prompt | Yes | Text description of the desired image. | |
| quality | No | Quality preference: 'draft' | 'standard' | 'high'. | |
| provider | Yes | Provider: 'openai' | 'openrouter' | 'azure' | 'vertex' | 'gemini'. | |
| directory | No | Optional directory path to save generated images. If not provided, images will be saved to a temporary directory. | |
| background | No | Optional background alpha for AR engines supporting transparency. | |
| orientation | No | Orientation preference: 'square' | 'portrait' | 'landscape'. | |
| negative_prompt | No | Optional negative prompt honored by supporting providers. |