get_generation
Get the current status/result of a generation without waiting. When COMPLETED, output.images[].url is the inline webp preview and output.images[].original_url is the full-quality PNG/JPG.
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": {
"request_id": "<request_id>"
},
"name": "get_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_id | Yes | ||
| include_preview | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| model | Yes | ||
| stage | Yes | ||
| output | Yes | ||
| status | Yes | ||
| version | Yes | ||
| progress | Yes | ||
| snapshot | Yes | ||
| terminal | Yes | ||
| warnings | No | Execution notices for this request. Absent when there are none. Example: code "audio_dropped" — the audio track did not pass the safety check of the model, so the video has no sound; the price is unchanged. Skip codes you do not know. | |
| next_step | No | ||
| created_at | Yes | ||
| media_kind | Yes | ||
| request_id | Yes | ||
| completed_at | Yes | ||
| cost_credits | No | ||
| next_poll_ms | Yes | ||
| schema_version | Yes |