Supervideo API docs

Files

Input files: first frames, reference images, video and audio.

POST /v1/files

Upload a small file

multipart/form-data, up to 20 MB. The file is checked and stored in one call. For larger files use /v1/uploads.

Parameters

ParameterInTypeDescription
X-Data-Regionheaderstring: us, eu, uk, inSame as data_region in the body.

Request body

multipart/form-data

FieldTypeDescription
file requiredstringThe file.
purposestring: input
expires_after[seconds]integerRemove the file this long after upload.

Responses

GET /v1/files

List files

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/files \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY"

Responses

POST /v1/uploads

Start a direct upload

For files of any allowed size. You get a signed link; PUT the bytes to it within 15 minutes with the given headers, then call /complete.

Parameters

ParameterInTypeDescription
X-Data-Regionheaderstring: us, eu, uk, inSame as data_region in the body.

Request body

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.

Example

curl -X POST https://api.superveo.io/v1/uploads \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "filename": "first.png",
  "content_type": "image/png",
  "bytes": 482113
}'
import os, uuid, requests

r = requests.request(
    "POST", "https://api.superveo.io/v1/uploads",
    headers={
        "Authorization": f"Bearer {os.environ['SUPERVIDEO_API_KEY']}",
    },
    json={
        "filename": "first.png",
        "content_type": "image/png",
        "bytes": 482113
    },
)
print(r.status_code, r.json())
const r = await fetch("https://api.superveo.io/v1/uploads", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SUPERVIDEO_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "filename": "first.png",
    "content_type": "image/png",
    "bytes": 482113
  }),
});
console.log(r.status, await r.json());

Responses

POST /v1/uploads/{upload_id}/complete

Finish a direct upload

Checks the uploaded bytes and makes the file usable as an input.

Parameters

ParameterInTypeDescription
upload_id requiredpathstringupl_... or its file_... id.

Example

curl -X POST https://api.superveo.io/v1/uploads/upload_id/complete \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY"

Responses

GET /v1/files/{file_id}

Get one file

Parameters

ParameterInTypeDescription
file_id requiredpathstringFile id.

Example

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

Responses

DELETE /v1/files/{file_id}

Delete a file

Removes the file now. Refused while an unfinished job still needs it.

Parameters

ParameterInTypeDescription
file_id requiredpathstringFile id.

Example

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

Responses

GET /v1/files/{file_id}/content

Download a file

Redirects to a signed link that works for 1 hour (15 minutes for a zdr account).

Parameters

ParameterInTypeDescription
file_id requiredpathstringFile id.

Example

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

Responses