Check Status
Check the status of a task submitted to the API.
Last updated
Was this helpful?
Check the status of a task submitted to the API.
Last updated
Was this helpful?
The Generation APIs are time and resource consuming, so we designed them to be asynchronous. This means that you submit a task without getting the result immediately.
Please refrain from calling this API too frequently as it may incur some addtional stress to our servers. We may throttle some requests that are sent too frequently.
Instead, your program can then periodically check the status of the task you submitted by supplying the API endpoint the task subscription key you got from your Generation API call. Once this API tell you that your task has finished, you can safely use the Download API to get a list of URLs from where you can download the result models of your task submitted.
The following table lists the possible values from the API call in the status
field and the semantics of them.
Waiting
Your task has entered our task queue waiting to be scheduled for execution.
Generating
Our worker is working on generating models for your task.
Done
Failed
The task has failed during execution. In this case, you may need to contact our support for details.
We do not charge any addtional credits for calling this API to check the status of your task.
This API uses bearer key for authentication. You need to include a valid token in the Authorization
header for all requests. Refer to the Quickstart section for how to generate an API key for your account.
The API takes one parameter in the POST
request body.
subscription_key
string
The JSON response has the following fields.
error
string
Optional. Error message, if any.
jobs
array of objects
The jobs of the task, containing details of individual jobs executed as part of the generation process.
jobs.uuid
string
The uuid of the job.
jobs.status
string
The task is done. In this case, you can head to the to download the result.
Required. The subscription key of the task you want to query the status of. Typically you will get it in the response from the .
The status of the job. The possible values are summarized