Jobs
Get a job
A job's status, output and billing.
GET
/v1/jobs/{job_id}Authorization
AuthorizationstringheaderrequiredBearer ast_gw_.... The key needs thejobs:readscope.
Reads a job's latest status, output and billing. Poll this until status is succeeded, failed or canceled.
Path parameters
job_idstringrequired- The job ID.
Response
idstring- Job ID, starting with
job_. objectstring- Always
job. modelstring- The model ID you ran.
statusstringqueued,running,cancel_requested,succeeded,failedorcanceled.versioninteger- Goes up with every change. Ignore a response with a lower version than one you have.
wait_reasonstring | null- While queued:
account_capacity,provider_capacityorrecovery. waiting_expires_atstring | null- When a job waiting for account capacity gives up.
client_reference_idstring | null- Your own reference, as you sent it.
outputobjectavailability(not_ready,available,expired,deleted) andassets, a list of{ id, type, mime_type, url }. See Results.errorobject | null- Set when the job failed:
code,message,retryable,details. billingobjectstate,accepted_max_charge_amount,reserved_amount,charged_amount,released_amount,quote_id. See Wallet.created_atstring- RFC 3339 UTC.
updated_atstring- RFC 3339 UTC.