Objects
Every object the API returns or accepts. Response objects list every field that is returned; nothing else is.
Account
| Field | Type | Description |
|---|---|---|
id required | string | |
object required | string: account | |
balance_usd required | number | US dollars. |
held_usd required | number | Reserved for jobs that are running. |
available_usd required | number | What a new job can use: balance minus held. |
data_region required | string or null | Where this account's files and outputs are stored. |
data_region_locked required | boolean | True once a region is set. It cannot be changed afterwards. |
retention required | string: 7d, 14d, 28d, zdr | |
in_flight_jobs required | integer | |
limits required | object |
AccountSettings
| Field | Type | Description |
|---|---|---|
data_region | string: us, eu, uk, in or null | Where to store the output. Only valid if it matches the account's region. |
retention | string: 7d, 14d, 28d, zdr or null | How long to keep the output. Defaults to the account's setting. |
Batch
Many requests sent in one call at the batch price.
| Field | Type | Description |
|---|---|---|
id required | string | batch_... |
object required | string: batch | |
status required | string: in_progress, completed, cancelled, expired | |
created_at required | integer | Unix time in seconds. |
expires_at required | integer | End of the completion window. Unix time in seconds. |
cancelled_at required | integer or null | Unix time in seconds. |
completion_window required | string | |
retention required | string: 7d, 14d, 28d, zdr | |
price_multiplier required | number | |
request_counts required | object | |
max_cost_usd required | number | Held for the whole batch. |
usage required | object | |
polling_url required | string | |
requests_url required | string | |
poll_after_ms required | integer or null | |
data | array of BatchItemRef | Only in the answer to POST /v1/batches: the job created for each request. |
BatchCreate
| Field | Type | Description |
|---|---|---|
requests required | array of BatchItem | 1 to 1000 requests. min items 1 |
completion_window | string or null | 1h to 24h. Requests not started by then are cancelled and not charged. Default 24h.max length 4 |
retention | string: 7d, 14d, 28d, zdr or null | How long to keep the output. Defaults to the account's setting. |
data_region | string: us, eu, uk, in or null | Where to store the output. Only valid if it matches the account's region. |
BatchItem
| Field | Type | Description |
|---|---|---|
custom_id required | string | Your id for this request, unique within the batch. min length 1; max length 64; pattern ^[A-Za-z0-9_.:\-]+$ |
url required | string: /v1/videos, /v1/images/generations, /v1/images/edits | The endpoint this request is for. |
body required | object | The JSON body that endpoint takes. |
BatchItemRef
| Field | Type | Description |
|---|---|---|
custom_id required | string | |
id required | string | |
object required | string: video, image | |
status required | string | |
polling_url required | string |
BatchList
One page of batches, newest first.
| Field | Type | Description |
|---|---|---|
object required | string: list | |
data required | array of Batch | |
has_more required | boolean | True when more exist after this page. |
last_id required | string or null | Pass as after to get the next page. |
Checkout
One top-up of the wallet.
| Field | Type | Description |
|---|---|---|
id required | string | top_... |
object required | string: credit.checkout | |
status required | string: pending, succeeded, failed, refunded, partially_refunded, in_review | pending until the payment provider confirms. in_review means the payment needs a manual check before credit is added. |
amount_usd required | number | What you asked to add. |
credited_usd required | number | What was added to the wallet. Tax is not credited. |
refunded_usd required | number | |
created_at required | integer | Unix time in seconds. |
paid_at required | integer or null | Unix time in seconds. |
checkout_url | string | The payment page. Present while the checkout is pending. |
CheckoutCreate
| Field | Type | Description |
|---|---|---|
amount_usd required | any | Amount to add, a number or a string like "25.00", two decimals at most. See GET /v1/credits for the smallest and largest amount. |
CheckoutList
One page of top-ups, newest first.
| Field | Type | Description |
|---|---|---|
object required | string: list | |
data required | array of Checkout | |
has_more required | boolean | True when more exist after this page. |
last_id required | string or null | Pass as after to get the next page. |
Credits
The prepaid wallet.
| Field | Type | Description |
|---|---|---|
object required | string: credits | |
balance_usd required | number | |
held_usd required | number | |
available_usd required | number | |
currency required | string | |
topups required | object |
Error
Every error has this shape.
| Field | Type | Description |
|---|---|---|
error required | object |
ExpiresAfter
| Field | Type | Description |
|---|---|---|
anchor | string | Only created_at.default created_at |
seconds required | integer | Length of the video, within the model's min_seconds and max_seconds.min 1 |
File
An input file: a first frame, a reference image, video or audio.
| Field | Type | Description |
|---|---|---|
id required | string | file_... |
object required | string: file | |
bytes required | integer | |
filename required | string or null | |
content_type required | string: audio/mp4, audio/mpeg, audio/wav, image/jpeg, image/png, image/webp, video/mp4, video/quicktime, video/webm | |
kind required | string: image, video, audio | |
purpose required | string: input | |
status required | string: pending, processed | pending until the bytes have arrived and passed the checks. |
data_region required | string | |
created_at required | integer | Unix time in seconds. |
expires_at required | integer or null | Unix time in seconds. |
FileDeleted
| Field | Type | Description |
|---|---|---|
id required | string | |
object required | string: file | |
deleted required | boolean |
FileList
One page of files, newest first.
| Field | Type | Description |
|---|---|---|
object required | string: list | |
data required | array of File | |
has_more required | boolean | True when more exist after this page. |
last_id required | string or null | Pass as after to get the next page. |
ImageCreate
| Field | Type | Description |
|---|---|---|
model required | string | Model id from GET /v1/models. min length 1; max length 64 |
prompt required | string | What to generate. min length 1 |
size | string or null | WIDTHxHEIGHT, for example 832x480. Or use resolution with aspect_ratio.max length 16 |
resolution | string or null | For example 480p, 720p. See the model's resolutions.max length 8 |
aspect_ratio | string or null | For example 16:9. See the model's aspect_ratios.max length 8 |
n | integer | Number of images. Only 1 for now. min 1; max 1; default 1 |
seed | integer or null | The same seed and request give the same result. min 0; max 4294967295 |
negative_prompt | string or null | What to avoid. |
image_url | string or null | Older name of first_frame (an https URL or a file id). Required by /v1/images/edits. |
response_format | string or null | Only url: results are links, never base64. |
speed | string: fast, standard or null | fast has priority in the queue: it goes ahead of standard jobs when GPUs are busy. It is not a promised start time. It costs fast_multiplier times the price. |
max_wait_s | number or null | Longest wait, in seconds, for a GPU to START this job. If it cannot start that soon the answer is 503 with Retry-After at once; nothing is queued or charged. min 5; max 1800 |
retention | string: 7d, 14d, 28d, zdr or null | How long to keep the output. Defaults to the account's setting. |
data_region | string: us, eu, uk, in or null | Where to store the output. Only valid if it matches the account's region. |
extra_body | object or null | Model-specific options that have no field of their own. |
Job
A video or image generation. Videos and images share this shape.
| Field | Type | Description |
|---|---|---|
id required | string | vid_... or img_.... |
object required | string: video, image | |
status required | string: queued, in_progress, completed, failed, cancelled, expired | queued waiting for a GPU, in_progress rendering, then one of the final states. expired is a completed job whose media has been removed. If a render does not finish on one GPU the job is given to another one: it goes back to queued with a new eta_seconds and is charged once, when it completes. |
stage required | string | Finer than status while the job runs, for example waiting_for_gpu, loading_model, sampling, decoding, encoding_video. Equals the status once final. |
progress required | integer | 0 to 100. 100 only when completed. min 0; max 100 |
queue_position required | integer or null | Place in the queue while queued, when known. |
eta_seconds required | integer or null | Estimated seconds until the job is done, when known. |
start_by required | integer or null | While the job waits for a GPU: the time it is expected to start by, set once when the job was accepted. Unix time in seconds. Null once it has started, or when not known. |
busy required | boolean or null | While the job waits: true when it was accepted with a longer wait than usual because the GPUs were busy. Null once it has started, or when not known. |
cold_start required | boolean or null | True when a GPU had to be started for this job. |
model required | string | |
mode required | string | What the job does: t2v, i2v, flf2v, r2v for video; t2i, edit for images. |
size required | string | Output size asked for, WIDTHxHEIGHT. |
speed required | string: standard, fast, batch | fast has priority in the queue (not a promised start time) and is priced higher; batch is the batch price. |
runs_as required | string: standard, fast, batch | The speed the job runs and is billed at. The same as speed, except for a fast job accepted while the fast lane was full: it is standard and is charged the standard price. |
retention required | string: 7d, 14d, 28d, zdr | How long the output is kept. zdr removes it shortly after delivery. |
created_at required | integer | Unix time in seconds. |
started_at required | integer or null | Unix time in seconds. |
completed_at required | integer or null | Unix time in seconds. |
poll_after_ms required | integer or null | Wait this long before asking again. Null once the job is final. |
polling_url required | string | GET this to read the job. |
output required | Output or null | Set when status is completed. |
error required | JobError or null | Set when status is failed. |
attribution required | string or null | Text the model's licence asks you to show next to the output. |
max_cost_usd required | number | The amount held for this job. The final cost is never higher. |
batch_id required | string or null | |
custom_id required | string or null | Your own id, for jobs created through a batch. |
seconds | number or null | Video only: the length asked for. |
usage required | Usage |
JobError
Why a job failed. A failed job costs nothing unless the message says otherwise.
| Field | Type | Description |
|---|---|---|
code required | string: cancelled_by_deadline, content_rejected, generation_failed, input_fetch_failed, invalid_input, queue_full, queue_timeout, too_large | |
message required | string |
JobList
One page of jobs, newest first.
| Field | Type | Description |
|---|---|---|
object required | string: list | |
data required | array of Job | |
has_more required | boolean | True when more exist after this page. |
last_id required | string or null | Pass as after to get the next page. |
Model
A model this key may use.
| Field | Type | Description |
|---|---|---|
id required | string | |
object required | string: model | |
name required | string | |
type required | string: video, image | |
modes required | array of string | |
resolutions required | array of string | Accepted resolution values. |
aspect_ratios required | array of string | |
default_size required | string | |
max_side required | integer | Longest side in pixels. |
size_multiple required | integer | Width and height must be multiples of this. |
negative_prompt required | boolean | False when the model does not take a negative_prompt; sending one is refused. |
pricing required | object | |
is_ready required | boolean | False when the model cannot take jobs right now. |
licence required | object or null | |
attribution required | string or null | |
fps | number | Video only. |
min_seconds | number | Video only. |
max_seconds | number | Video only. |
has_audio | boolean | Video only. |
ModelList
| Field | Type | Description |
|---|---|---|
object required | string: list | |
data required | array of Model |
Output
The finished media. It stays in supervide's storage; you download it.
| Field | Type | Description |
|---|---|---|
url required | string or null | Signed download link. Present when you read one job; null in lists. It stops working at url_expires_at; read the job again for a new one. |
url_expires_at required | integer or null | Unix time in seconds. |
content_url required | string | Stable address that redirects to a fresh signed link. Needs your API key. |
thumbnail_url required | string or null | |
width required | integer or null | |
height required | integer or null | |
expires_at required | integer or null | When the media is removed. Unix time in seconds. |
seconds | number or null | Video only. |
fps | number or null | Video only. |
has_audio | boolean | Video only. |
Queue
The waiting time for one model, right now, for a job of the model's usual size.
| Field | Type | Description |
|---|---|---|
object required | string: queue | |
model required | string | |
state required | string: cold, starting, warm, busy, unavailable | cold: no GPU is on for this model, the first job waits for one to start. starting: a GPU is starting. warm: a GPU is on and free. busy: GPUs are on and working. unavailable: the model cannot take jobs right now. |
speeds required | object or null | One estimate per speed; a single speed is null when there is no estimate for it right now. The whole object is null when no estimate is available for this model. |
QueueList
| Field | Type | Description |
|---|---|---|
object required | string: list | |
data required | array of Queue |
QueueSpeed
What a job created now with this speed would be told.
| Field | Type | Description |
|---|---|---|
accepting required | boolean | False only when every GPU that may start is counted and the queue is still too long. A create sent now would be refused; see retry_after_seconds. |
estimated_start_seconds required | integer or null | Estimated seconds until a job created now starts rendering, GPU start-up included. An estimate, not a promise. Null when not accepting, and always null for batch: a batch job runs when GPUs are idle and has a completion window, not a start time. |
busy required | boolean | True when the estimate is longer than the normal start time because the fleet is busy. |
runs_as required | string: standard, fast, batch | The speed a job created now with this speed would run and be billed as. A fast job runs as standard when going first would delay a job that was already accepted. |
retry_after_seconds required | integer or null | When not accepting: come back after this many seconds. Otherwise null. |
Quote
The price of a request before you send it. Nothing was created or held.
| Field | Type | Description |
|---|---|---|
object required | string: quote | |
url required | string | The endpoint you asked about. |
data_region required | string | The data region the request would use. |
currency required | string: usd | |
speed required | string: standard, fast, batch | batch for a batch. |
completion_window required | string or null | For a batch, its completion window. Otherwise null. |
max_cost_usd required | number | What a create of this request (or batch) would hold, to the micro-dollar. |
requests required | array of QuoteLine | One line per request: one for a single request, one per batch request in order. |
QuoteCreate
POST /v1/quote: the request you would send, and where you would send it.
| Field | Type | Description |
|---|---|---|
url required | string: /v1/videos, /v1/images/generations, /v1/images/edits, /v1/batches | The endpoint this request is for. |
body required | object | The JSON body that endpoint takes. |
QuoteLine
One priced request.
| Field | Type | Description |
|---|---|---|
custom_id required | string or null | The request's custom_id in a batch, else null. |
url required | string | The endpoint the request is for. |
model required | string | |
mode required | string | What the request would be run as, worked out from its inputs. |
speed required | string: standard, fast, batch | |
size required | string | WIDTHxHEIGHT the request would render at. |
price_tier required | string | The price tier it would be billed at, for example 480p. |
seconds required | number or null | Video length asked for. Null for an image. |
unit required | string: second, image | |
unit_price_usd required | number | Price per unit at this tier and speed, the fast or batch multiplier included. |
max_cost_usd required | number | What a create of this request would hold: the most it can cost. |
Transaction
One line that changed the balance.
| Field | Type | Description |
|---|---|---|
id required | string | |
object required | string: credit.transaction | |
type required | string: topup, usage, refund, dispute, adjustment | |
amount_usd required | number | Positive adds to the balance, negative takes from it. |
reference required | string or null | The job or top-up this line belongs to. |
created_at required | integer | Unix time in seconds. |
TransactionList
One page of balance changes, newest first.
| Field | Type | Description |
|---|---|---|
object required | string: list | |
data required | array of Transaction | |
has_more required | boolean | True when more exist after this page. |
last_id required | string or null | Pass as after to get the next page. |
Upload
A place to send a file directly to storage.
| Field | Type | Description |
|---|---|---|
id required | string | upl_... |
object required | string: upload | |
file_id required | string | The file this upload becomes. |
upload_url required | string | PUT the bytes here, with exactly the headers below. |
method required | string: PUT | |
headers required | object | |
expires_at required | integer | When upload_url stops working. Unix time in seconds. |
file_expires_at required | integer or null | Unix time in seconds. |
url required | string | upload://upl_...: usable as an input reference once the upload is complete. |
UploadCreate
| Field | Type | Description |
|---|---|---|
filename | string or null | Shown in file listings. min length 1; max length 255 |
content_type required | string | One of: audio/mp4, audio/mpeg, audio/wav, image/jpeg, image/png, image/webp, video/mp4, video/quicktime, video/webm.min length 1; max length 64 |
bytes | integer or null | Exact size of the file. The upload link accepts no more. min 1 |
size_bytes | integer or null | Older name of bytes.min 1 |
expires_after | ExpiresAfter or null | Remove the file this long after it was created. |
data_region | string: us, eu, uk, in or null | Where to store the output. Only valid if it matches the account's region. |
Usage
What was delivered and what it cost.
| Field | Type | Description |
|---|---|---|
seconds | number | Video: seconds of video delivered. |
images | integer | Image: images delivered. |
cost_usd required | number | What the job cost. 0 until it completes. |
VideoCreate
| Field | Type | Description |
|---|---|---|
model required | string | Model id from GET /v1/models. min length 1; max length 64 |
prompt required | string | What to generate. min length 1 |
mode | string: t2v, i2v, flf2v, r2v or null | Normally left out: it is worked out from the input files you send. |
size | string or null | WIDTHxHEIGHT, for example 832x480. Or use resolution with aspect_ratio.max length 16 |
resolution | string or null | For example 480p, 720p. See the model's resolutions.max length 8 |
aspect_ratio | string or null | For example 16:9. See the model's aspect_ratios.max length 8 |
seconds | integer or number or string or null | Length of the video, within the model's min_seconds and max_seconds. |
seed | integer or null | The same seed and request give the same result. min 0; max 4294967295 |
negative_prompt | string or null | What to avoid. |
first_frame | any or null | Start image: a file id (file_...), {"file_id": ...}, {"url": "https://..."} or an https URL. |
last_frame | any or null | End image, same forms as first_frame. |
reference_images | array of any or null | Up to 9 images to guide the result, same forms as first_frame.min items 1; max items 9 |
reference_video | array of any or null | Up to 3 videos to guide the result. min items 1; max items 3 |
reference_audio | array of any or null | Up to 3 audio files to guide the result. min items 1; max items 3 |
image_url | string or null | Older name of first_frame (an https URL or a file id). Required by /v1/images/edits. |
last_image_url | string or null | Older name of last_frame. |
reference_image_urls | array of string or null | Older name of reference_images.min items 1; max items 9 |
quality | string: fast, standard or null | Model-specific quality preset. |
output_format | string: mp4, webm, mov or null | Container of the result. |
speed | string: fast, standard or null | fast has priority in the queue: it goes ahead of standard jobs when GPUs are busy. It is not a promised start time. It costs fast_multiplier times the price. |
max_wait_s | number or null | Longest wait, in seconds, for a GPU to START this job. If it cannot start that soon the answer is 503 with Retry-After at once; nothing is queued or charged. min 5; max 1800 |
retention | string: 7d, 14d, 28d, zdr or null | How long to keep the output. Defaults to the account's setting. |
data_region | string: us, eu, uk, in or null | Where to store the output. Only valid if it matches the account's region. |
extra_body | object or null | Model-specific options that have no field of their own. |