Fetch one job you started through the API or MCP. Statuses: queued, running (both non-terminal - the response carries poll_after_ms, wait at least that long before asking again), then succeeded (read result), failed (read error: {code, subcode, message, retriable}; the held credits are refunded) or canceled. Generations typically finish within a few minutes; a job still queued after 15 minutes can be cancelled and resubmitted. Better still, pass wait=<seconds> (up to 60) to long-poll: the request is held until the job reaches a terminal state, so one call replaces a polling loop. Once status is succeeded, result holds exactly what the synchronous form of the operation named by task_type would have returned. This is a free read-only lookup (no credits). Requires an API key (user scope).
Path parameters
The job id returned by a generation call (its id in the 202 response).
Query parameters
Seconds to long-poll for a terminal state (0-60). Defaults to 0 (return immediately).
Response
Success
Changes
Changed in 1 of the 17 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○