generate_image
Generates one or more images from a text prompt, blocking until completion or timeout, and returns image URLs valid for 24 hours.
Instructions
Generate image(s) from a text prompt and wait for the result.
Blocks until the task finishes or timeout (seconds) elapses. Returns image URLs valid for 24 hours. If the host tool call may time out, use submit_image_task + get_image_task instead.
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 |
|---|---|---|---|
| n | No | ||
| size | No | 1024*1024 | |
| model | No | wan2.2-t2i-flash | |
| prompt | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |