Skip to main content
POST
Submit a job

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

The same key with the same body returns the original job; a different body is 409 idempotency_conflict.

Required string length: 1 - 255

Body

application/json
model
string
required
Minimum string length: 1
input
object
required
webhook_url
string
metadata
object
workspace_id
string
Minimum string length: 1

Response

An idempotent replay, or a job that finished within the request.

id
string
required
object
string
required
Allowed value: "job"
model
string
required
status
enum<string>
required
Available options:
queued,
processing,
completed,
failed,
canceled
provider_status
string | null
required

The upstream provider's own status, verbatim.

queue_position
number | null
required
cancelable
boolean
required
next_poll_after_seconds
number | null
required
urls
object
required
input
object
required
metadata
object | null
required
cost
object
required
usage
object[] | null
required
artifacts
object[] | null
required
expires_at
string | null
required
error
object | null
required
webhook
object | null
required
idempotency_hit
boolean
required
request_id
string
required
created_at
string
required
started_at
string | null
required
completed_at
string | null
required
updated_at
string
required