Retrieve a task
Look up a task by ID. Always returns 200, finished or not — the state lives in status, so polling reads one field instead of handling two status codes.
Once status reaches succeeded / failed / expired / canceled it will not change again; stop polling. Poll every 2-5 seconds; images usually finish in 15-120 seconds.
get/v1/tasks/{id}
Request
- Base URL: https://gateway.amux.ai
- URL: https://gateway.amux.ai/v1/tasks/{id}
- Auth: HTTP bearer
Path parameters
idstring required
The task ID returned at submit time.
Response
The task as it stands. Terminal states carry output.
Example response
{
"id": "task_01M1CG35C16CJ790D00BV1RBVM",
"model": "openai/gpt-image-2",
"cost": "0.2108",
"notes": [
"dropped audio: this model decides the soundtrack itself"
]
}Changes
No recorded changes to this operation across all 1 revision of this API.