Skip to main content
GET
Get task data or status

Headers

x-apikey
any
required

API Key for authentication

Path Parameters

task_id
string
required

The unique identifier of the task whose status you are querying.

Response

The task status along with any associated data or errors.

task_id
string
required

Unique identifier of the task.

status
string
required

Current status of the request. Can be 'processing', 'completed', or 'failed'.

request_id
string | null
deprecated

Deprecated: use task_id instead. Same value as task_id.

data

Resulting data once completed. For bulk runs this is an array aligned to the inputs: one element per input, in the same order they were submitted, with null for inputs that returned no data (len(data) equals the number of inputs, and data[i] is the result for input i). A single (non-bulk) run returns the result object directly.

error

Error message if the request has failed.

credits_spent
number
default:0

Total credits spent for this request.