Read a media job
get_media_jobRead a generate_image or generate_video job with the key that started it. Waits up to about 45 seconds while it is processing. status completed: url (a download link valid for 1 hour from this call; call again for a fresh one), mime_type, usage, and file_id when the job stored its result. status failed: error. status processing: call again with the same id. The result is deleted 24 hours after the job ends (1 hour on a zero-retention project) unless store is true. Requires runtime:call.
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": {
"id": "<id>",
"job_id": "<job_id>",
"uuid": "<uuid>"
},
"name": "get_media_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Runtime API key ID in this project; its secret is never returned | |
| uuid | Yes | Project UUID in the authorized organization | |
| job_id | Yes | The id generate_image or generate_video returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | No | ||
| next | No | ||
| error | No | ||
| usage | No | ||
| status | Yes | ||
| file_id | No | ||
| mime_type | No | ||
| expires_at | No |