Supervideo API docs

Objects

Every object the API returns or accepts. Response objects list every field that is returned; nothing else is.

Account

FieldTypeDescription
id requiredstring
object requiredstring: account
balance_usd requirednumberUS dollars.
held_usd requirednumberReserved for jobs that are running.
available_usd requirednumberWhat a new job can use: balance minus held.
data_region requiredstring or nullWhere this account's files and outputs are stored.
data_region_locked requiredbooleanTrue once a region is set. It cannot be changed afterwards.
retention requiredstring: 7d, 14d, 28d, zdr
in_flight_jobs requiredinteger
limits requiredobject

AccountSettings

FieldTypeDescription
data_regionstring: us, eu, uk, in or nullWhere to store the output. Only valid if it matches the account's region.
retentionstring: 7d, 14d, 28d, zdr or nullHow long to keep the output. Defaults to the account's setting.

Batch

Many requests sent in one call at the batch price.

FieldTypeDescription
id requiredstringbatch_...
object requiredstring: batch
status requiredstring: in_progress, completed, cancelled, expired
created_at requiredintegerUnix time in seconds.
expires_at requiredintegerEnd of the completion window. Unix time in seconds.
cancelled_at requiredinteger or nullUnix time in seconds.
completion_window requiredstring
retention requiredstring: 7d, 14d, 28d, zdr
price_multiplier requirednumber
request_counts requiredobject
max_cost_usd requirednumberHeld for the whole batch.
usage requiredobject
polling_url requiredstring
requests_url requiredstring
poll_after_ms requiredinteger or null
dataarray of BatchItemRefOnly in the answer to POST /v1/batches: the job created for each request.

BatchCreate

FieldTypeDescription
requests requiredarray of BatchItem1 to 1000 requests.
min items 1
completion_windowstring or null1h to 24h. Requests not started by then are cancelled and not charged. Default 24h.
max length 4
retentionstring: 7d, 14d, 28d, zdr or nullHow long to keep the output. Defaults to the account's setting.
data_regionstring: us, eu, uk, in or nullWhere to store the output. Only valid if it matches the account's region.

BatchItem

FieldTypeDescription
custom_id requiredstringYour id for this request, unique within the batch.
min length 1; max length 64; pattern ^[A-Za-z0-9_.:\-]+$
url requiredstring: /v1/videos, /v1/images/generations, /v1/images/editsThe endpoint this request is for.
body requiredobjectThe JSON body that endpoint takes.

BatchItemRef

FieldTypeDescription
custom_id requiredstring
id requiredstring
object requiredstring: video, image
status requiredstring
polling_url requiredstring

BatchList

One page of batches, newest first.

FieldTypeDescription
object requiredstring: list
data requiredarray of Batch
has_more requiredbooleanTrue when more exist after this page.
last_id requiredstring or nullPass as after to get the next page.

Checkout

One top-up of the wallet.

FieldTypeDescription
id requiredstringtop_...
object requiredstring: credit.checkout
status requiredstring: pending, succeeded, failed, refunded, partially_refunded, in_reviewpending until the payment provider confirms. in_review means the payment needs a manual check before credit is added.
amount_usd requirednumberWhat you asked to add.
credited_usd requirednumberWhat was added to the wallet. Tax is not credited.
refunded_usd requirednumber
created_at requiredintegerUnix time in seconds.
paid_at requiredinteger or nullUnix time in seconds.
checkout_urlstringThe payment page. Present while the checkout is pending.

CheckoutCreate

FieldTypeDescription
amount_usd requiredanyAmount 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.

FieldTypeDescription
object requiredstring: list
data requiredarray of Checkout
has_more requiredbooleanTrue when more exist after this page.
last_id requiredstring or nullPass as after to get the next page.

Credits

The prepaid wallet.

FieldTypeDescription
object requiredstring: credits
balance_usd requirednumber
held_usd requirednumber
available_usd requirednumber
currency requiredstring
topups requiredobject

Error

Every error has this shape.

FieldTypeDescription
error requiredobject

ExpiresAfter

FieldTypeDescription
anchorstringOnly created_at.
default created_at
seconds requiredintegerLength 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.

FieldTypeDescription
id requiredstringfile_...
object requiredstring: file
bytes requiredinteger
filename requiredstring or null
content_type requiredstring: audio/mp4, audio/mpeg, audio/wav, image/jpeg, image/png, image/webp, video/mp4, video/quicktime, video/webm
kind requiredstring: image, video, audio
purpose requiredstring: input
status requiredstring: pending, processedpending until the bytes have arrived and passed the checks.
data_region requiredstring
created_at requiredintegerUnix time in seconds.
expires_at requiredinteger or nullUnix time in seconds.

FileDeleted

FieldTypeDescription
id requiredstring
object requiredstring: file
deleted requiredboolean

FileList

One page of files, newest first.

FieldTypeDescription
object requiredstring: list
data requiredarray of File
has_more requiredbooleanTrue when more exist after this page.
last_id requiredstring or nullPass as after to get the next page.

ImageCreate

FieldTypeDescription
model requiredstringModel id from GET /v1/models.
min length 1; max length 64
prompt requiredstringWhat to generate.
min length 1
sizestring or nullWIDTHxHEIGHT, for example 832x480. Or use resolution with aspect_ratio.
max length 16
resolutionstring or nullFor example 480p, 720p. See the model's resolutions.
max length 8
aspect_ratiostring or nullFor example 16:9. See the model's aspect_ratios.
max length 8
nintegerNumber of images. Only 1 for now.
min 1; max 1; default 1
seedinteger or nullThe same seed and request give the same result.
min 0; max 4294967295
negative_promptstring or nullWhat to avoid.
image_urlstring or nullOlder name of first_frame (an https URL or a file id). Required by /v1/images/edits.
response_formatstring or nullOnly url: results are links, never base64.
speedstring: fast, standard or nullfast 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_snumber or nullLongest 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
retentionstring: 7d, 14d, 28d, zdr or nullHow long to keep the output. Defaults to the account's setting.
data_regionstring: us, eu, uk, in or nullWhere to store the output. Only valid if it matches the account's region.
extra_bodyobject or nullModel-specific options that have no field of their own.

Job

A video or image generation. Videos and images share this shape.

FieldTypeDescription
id requiredstringvid_... or img_....
object requiredstring: video, image
status requiredstring: queued, in_progress, completed, failed, cancelled, expiredqueued 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 requiredstringFiner than status while the job runs, for example waiting_for_gpu, loading_model, sampling, decoding, encoding_video. Equals the status once final.
progress requiredinteger0 to 100. 100 only when completed.
min 0; max 100
queue_position requiredinteger or nullPlace in the queue while queued, when known.
eta_seconds requiredinteger or nullEstimated seconds until the job is done, when known.
start_by requiredinteger or nullWhile 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 requiredboolean or nullWhile 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 requiredboolean or nullTrue when a GPU had to be started for this job.
model requiredstring
mode requiredstringWhat the job does: t2v, i2v, flf2v, r2v for video; t2i, edit for images.
size requiredstringOutput size asked for, WIDTHxHEIGHT.
speed requiredstring: standard, fast, batchfast has priority in the queue (not a promised start time) and is priced higher; batch is the batch price.
runs_as requiredstring: standard, fast, batchThe 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 requiredstring: 7d, 14d, 28d, zdrHow long the output is kept. zdr removes it shortly after delivery.
created_at requiredintegerUnix time in seconds.
started_at requiredinteger or nullUnix time in seconds.
completed_at requiredinteger or nullUnix time in seconds.
poll_after_ms requiredinteger or nullWait this long before asking again. Null once the job is final.
polling_url requiredstringGET this to read the job.
output requiredOutput or nullSet when status is completed.
error requiredJobError or nullSet when status is failed.
attribution requiredstring or nullText the model's licence asks you to show next to the output.
max_cost_usd requirednumberThe amount held for this job. The final cost is never higher.
batch_id requiredstring or null
custom_id requiredstring or nullYour own id, for jobs created through a batch.
secondsnumber or nullVideo only: the length asked for.
usage requiredUsage

JobError

Why a job failed. A failed job costs nothing unless the message says otherwise.

FieldTypeDescription
code requiredstring: cancelled_by_deadline, content_rejected, generation_failed, input_fetch_failed, invalid_input, queue_full, queue_timeout, too_large
message requiredstring

JobList

One page of jobs, newest first.

FieldTypeDescription
object requiredstring: list
data requiredarray of Job
has_more requiredbooleanTrue when more exist after this page.
last_id requiredstring or nullPass as after to get the next page.

Model

A model this key may use.

FieldTypeDescription
id requiredstring
object requiredstring: model
name requiredstring
type requiredstring: video, image
modes requiredarray of string
resolutions requiredarray of stringAccepted resolution values.
aspect_ratios requiredarray of string
default_size requiredstring
max_side requiredintegerLongest side in pixels.
size_multiple requiredintegerWidth and height must be multiples of this.
negative_prompt requiredbooleanFalse when the model does not take a negative_prompt; sending one is refused.
pricing requiredobject
is_ready requiredbooleanFalse when the model cannot take jobs right now.
licence requiredobject or null
attribution requiredstring or null
fpsnumberVideo only.
min_secondsnumberVideo only.
max_secondsnumberVideo only.
has_audiobooleanVideo only.

ModelList

FieldTypeDescription
object requiredstring: list
data requiredarray of Model

Output

The finished media. It stays in supervide's storage; you download it.

FieldTypeDescription
url requiredstring or nullSigned 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 requiredinteger or nullUnix time in seconds.
content_url requiredstringStable address that redirects to a fresh signed link. Needs your API key.
thumbnail_url requiredstring or null
width requiredinteger or null
height requiredinteger or null
expires_at requiredinteger or nullWhen the media is removed. Unix time in seconds.
secondsnumber or nullVideo only.
fpsnumber or nullVideo only.
has_audiobooleanVideo only.

Queue

The waiting time for one model, right now, for a job of the model's usual size.

FieldTypeDescription
object requiredstring: queue
model requiredstring
state requiredstring: cold, starting, warm, busy, unavailablecold: 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 requiredobject or nullOne 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

FieldTypeDescription
object requiredstring: list
data requiredarray of Queue

QueueSpeed

What a job created now with this speed would be told.

FieldTypeDescription
accepting requiredbooleanFalse 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 requiredinteger or nullEstimated 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 requiredbooleanTrue when the estimate is longer than the normal start time because the fleet is busy.
runs_as requiredstring: standard, fast, batchThe 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 requiredinteger or nullWhen 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.

FieldTypeDescription
object requiredstring: quote
url requiredstringThe endpoint you asked about.
data_region requiredstringThe data region the request would use.
currency requiredstring: usd
speed requiredstring: standard, fast, batchbatch for a batch.
completion_window requiredstring or nullFor a batch, its completion window. Otherwise null.
max_cost_usd requirednumberWhat a create of this request (or batch) would hold, to the micro-dollar.
requests requiredarray of QuoteLineOne 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.

FieldTypeDescription
url requiredstring: /v1/videos, /v1/images/generations, /v1/images/edits, /v1/batchesThe endpoint this request is for.
body requiredobjectThe JSON body that endpoint takes.

QuoteLine

One priced request.

FieldTypeDescription
custom_id requiredstring or nullThe request's custom_id in a batch, else null.
url requiredstringThe endpoint the request is for.
model requiredstring
mode requiredstringWhat the request would be run as, worked out from its inputs.
speed requiredstring: standard, fast, batch
size requiredstringWIDTHxHEIGHT the request would render at.
price_tier requiredstringThe price tier it would be billed at, for example 480p.
seconds requirednumber or nullVideo length asked for. Null for an image.
unit requiredstring: second, image
unit_price_usd requirednumberPrice per unit at this tier and speed, the fast or batch multiplier included.
max_cost_usd requirednumberWhat a create of this request would hold: the most it can cost.

Transaction

One line that changed the balance.

FieldTypeDescription
id requiredstring
object requiredstring: credit.transaction
type requiredstring: topup, usage, refund, dispute, adjustment
amount_usd requirednumberPositive adds to the balance, negative takes from it.
reference requiredstring or nullThe job or top-up this line belongs to.
created_at requiredintegerUnix time in seconds.

TransactionList

One page of balance changes, newest first.

FieldTypeDescription
object requiredstring: list
data requiredarray of Transaction
has_more requiredbooleanTrue when more exist after this page.
last_id requiredstring or nullPass as after to get the next page.

Upload

A place to send a file directly to storage.

FieldTypeDescription
id requiredstringupl_...
object requiredstring: upload
file_id requiredstringThe file this upload becomes.
upload_url requiredstringPUT the bytes here, with exactly the headers below.
method requiredstring: PUT
headers requiredobject
expires_at requiredintegerWhen upload_url stops working. Unix time in seconds.
file_expires_at requiredinteger or nullUnix time in seconds.
url requiredstringupload://upl_...: usable as an input reference once the upload is complete.

UploadCreate

FieldTypeDescription
filenamestring or nullShown in file listings.
min length 1; max length 255
content_type requiredstringOne 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
bytesinteger or nullExact size of the file. The upload link accepts no more.
min 1
size_bytesinteger or nullOlder name of bytes.
min 1
expires_afterExpiresAfter or nullRemove the file this long after it was created.
data_regionstring: us, eu, uk, in or nullWhere to store the output. Only valid if it matches the account's region.

Usage

What was delivered and what it cost.

FieldTypeDescription
secondsnumberVideo: seconds of video delivered.
imagesintegerImage: images delivered.
cost_usd requirednumberWhat the job cost. 0 until it completes.

VideoCreate

FieldTypeDescription
model requiredstringModel id from GET /v1/models.
min length 1; max length 64
prompt requiredstringWhat to generate.
min length 1
modestring: t2v, i2v, flf2v, r2v or nullNormally left out: it is worked out from the input files you send.
sizestring or nullWIDTHxHEIGHT, for example 832x480. Or use resolution with aspect_ratio.
max length 16
resolutionstring or nullFor example 480p, 720p. See the model's resolutions.
max length 8
aspect_ratiostring or nullFor example 16:9. See the model's aspect_ratios.
max length 8
secondsinteger or number or string or nullLength of the video, within the model's min_seconds and max_seconds.
seedinteger or nullThe same seed and request give the same result.
min 0; max 4294967295
negative_promptstring or nullWhat to avoid.
first_frameany or nullStart image: a file id (file_...), {"file_id": ...}, {"url": "https://..."} or an https URL.
last_frameany or nullEnd image, same forms as first_frame.
reference_imagesarray of any or nullUp to 9 images to guide the result, same forms as first_frame.
min items 1; max items 9
reference_videoarray of any or nullUp to 3 videos to guide the result.
min items 1; max items 3
reference_audioarray of any or nullUp to 3 audio files to guide the result.
min items 1; max items 3
image_urlstring or nullOlder name of first_frame (an https URL or a file id). Required by /v1/images/edits.
last_image_urlstring or nullOlder name of last_frame.
reference_image_urlsarray of string or nullOlder name of reference_images.
min items 1; max items 9
qualitystring: fast, standard or nullModel-specific quality preset.
output_formatstring: mp4, webm, mov or nullContainer of the result.
speedstring: fast, standard or nullfast 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_snumber or nullLongest 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
retentionstring: 7d, 14d, 28d, zdr or nullHow long to keep the output. Defaults to the account's setting.
data_regionstring: us, eu, uk, in or nullWhere to store the output. Only valid if it matches the account's region.
extra_bodyobject or nullModel-specific options that have no field of their own.