生成图像
generate_imageSubmit image generation or editing tasks. Wait for direct image URL or retrieve later using a task ID.
Instructions
提交图像生成/编辑任务。 先用 describe_model 确认该 model 的参数。默认等待 60s:短任务直接返回结果 URL;长任务超时返回 task_id,用 get_task 继续查询。
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": {
"model": "<model>",
"params": "<params>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | 模型 id | |
| params | Yes | 请求参数对象(不含 model),如 {prompt, aspect_ratio, ...},见 describe_model | |
| inline_image | No | 图像成功时是否内联回传图片(默认 true,仅 generate_image 生效;大图自动降级为纯 URL) | |
| wait_seconds | No | 最长等待秒数,默认 60,设 0 立即返回 task_id |