Supervideo API docs

Videos

Create videos and follow them to the result.

Video generation is coming soon. The video endpoints are described here so you can plan for them; until a video model is listed by GET /v1/models, a video request is refused with model_not_found.

POST /v1/videos

Create a video

Coming soon. Starts a generation and answers at once with a job to follow. The most the job can cost is held from the wallet (max_cost_usd); when it finishes you pay for what was delivered and the rest is released. A failed job costs nothing.

Parameters

ParameterInTypeDescription
Idempotency-Key requiredheaderstringRequired. A new key for each new request, for example a UUID. Send the same key to retry safely: the first result is returned again (200 with Idempotent-Replayed: true) and nothing is created or charged twice. Without it the answer is 400 idempotency_key_required.
min length 1; max length 255
X-Data-Regionheaderstring: us, eu, uk, inSame as data_region in the body.

Request body

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.

Responses

GET /v1/videos

List videos

Coming soon.

Parameters

ParameterInTypeDescription
limitqueryinteger
min 1; max 100; default 20
afterquerystringReturn what comes after this id (last_id of the previous page).

Example

curl -X GET https://api.superveo.io/v1/videos \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY"

Responses

GET /v1/videos/{job_id}

Get one video

Coming soon. Read the job until status is final. Three ways to wait: sleep poll_after_ms between reads, long-poll with ?wait=25, or use the /events stream.

Parameters

ParameterInTypeDescription
job_id requiredpathstringThe video's id.
waitqueryintegerLong-poll: hold the request up to this many seconds until the job changes.
min 0; max 25; default 0
If-None-MatchheaderstringThe ETag of your last read. Answers 304 when the job has not changed.

Example

curl -X GET https://api.superveo.io/v1/videos/vid_... \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY"

Responses

StatusBodyWhen
200JobOK
304Not changed since the ETag you sent.
400Errorinvalid_request
401Errorunauthorized
404Errornot_found
429Errorrate_limited
503Errorcapacity_unavailable

DELETE /v1/videos/{job_id}

Delete a finished video

Coming soon. Removes the media now and hides the job. No refund. Only for a finished job.

Parameters

ParameterInTypeDescription
job_id requiredpathstringThe video's id.

Example

curl -X DELETE https://api.superveo.io/v1/videos/vid_... \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY"

Responses

GET /v1/videos/{job_id}/events

Stream a video's progress

Coming soon. Server-sent events: status, stage and progress as they change, then one job event with the final job, and the stream ends. A comment line is sent every 15 seconds to keep it open.

Parameters

ParameterInTypeDescription
job_id requiredpathstringThe video's id.

Example

curl -X GET https://api.superveo.io/v1/videos/vid_.../events \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY"

Responses

StatusBodyWhen
200text/event-streamAn event stream.
401Errorunauthorized
404Errornot_found
429Errorrate_limited, too_many_streams
503Errorcapacity_unavailable

GET /v1/videos/{job_id}/content

Download the video

Coming soon. Redirects to a signed link that works for 1 hour (15 minutes for a zdr account). X-Signed-Url-Expires-At says when it stops.

Parameters

ParameterInTypeDescription
job_id requiredpathstringThe video's id.
variantquerystring: video, image, thumbnailthumbnail for the preview image.

Example

curl -X GET https://api.superveo.io/v1/videos/vid_.../content \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY"

Responses

POST /v1/videos/{job_id}/cancel

Cancel a queued video

Coming soon. Works only while the job is queued: the hold is released and it costs nothing. Once it is generating the answer is 409 and the job runs to the end and is billed. A finished job is returned as it is.

Parameters

ParameterInTypeDescription
job_id requiredpathstringThe video's id.

Example

curl -X POST https://api.superveo.io/v1/videos/vid_.../cancel \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY"

Responses