Generate Images
generate_imagesGenerates or edits 1–20 product or marketing images synchronously, waiting for all tasks to complete and successful files to save before returning results.
Instructions
同步生成/编辑1–20项(会收费):等待本组全部终态且成功图片落盘后返回。
任务参数与submit_image_tasks相同,支持同样的模型、比例和本机/URL参考图。 与异步入口共用三元组、防重、队列和并发限额;相同任务不重复提交。 wait_timeout_seconds默认600,严格整数1–1200,包含排队时间。 全部成功才isError=false;失败保留所有结果。等待到期返回isError=true、 wait_timed_out=true及当前状态,不取消后台任务。Host超时/取消也不保证停止上游。 请保留原三元组,用get_image_tasks查询或wait_image_tasks继续等,不换编号重交。
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": {
"checkpointer": "<checkpointer>",
"thread_id": "<thread_id>",
"tasks": "<tasks>"
},
"name": "generate_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | Yes | ||
| thread_id | Yes | ||
| checkpointer | Yes | ||
| wait_timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | Yes | ||
| thread_id | Yes | ||
| next_cursor | No | ||
| checkpointer | Yes | ||
| wait_timed_out | No |