Supervideo API docs

Models and modes

Which models you can use

GET /v1/models lists the models your key can use right now, with their sizes and prices. It is the source of truth: a model may be switched on or off, or not offered in your country under its licence, and the list follows.

curl https://api.superveo.io/v1/models -H "Authorization: Bearer $SUPERVIDEO_API_KEY"

A model with is_ready: false exists but cannot take jobs right now. The catalogue:

ModelTypeModesResolutionsDefault sizeSecondsFPSAudioAccess
qwen-image Qwen-Imageimaget2i720p, 1080p, 1440p1024x1024–––general
flux2-klein FLUX.2 kleinimaget2i720p, 1080p, 1440p1024x1024–––general
z-image Z-Image Turboimaget2i720p, 1080p, 1440p1024x1024–––general
qwen-image-edit Qwen-Image Editimageedit_image720p, 1080p1024x1024–––general

"Limited" models are switched on gradually and may not be in your list yet. Video models are coming soon and will be listed here, and in GET /v1/models, when video opens.

Modes

A mode is what a job does. For video you normally leave mode out: it is worked out from the inputs you send. Sending an input the mode does not use is refused, so the request says exactly what will happen.

ModeWhat it doesWhat to send
t2vText to videoprompt only.
i2vImage to videoprompt and first_frame.
flf2vFirst and last frame to videoprompt, first_frame and last_frame.
r2vReference to videoprompt and one or more of reference_images, reference_video, reference_audio.
t2iText to imagePOST /v1/images/generations with prompt.
edit_imageImage editPOST /v1/images/edits with prompt and image_url. The job's mode is edit.

A model that cannot do the mode your inputs ask for answers 400 unsupported_mode, with the modes it can do in metadata.allowed.

Image edit

curl -X POST https://api.superveo.io/v1/images/edits \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Prefer: wait=30" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen-image-edit",
  "prompt": "make it snow",
  "image_url": "file_0123456789abcdef0123456789abcdef"
}'
import os, uuid, requests

r = requests.request(
    "POST", "https://api.superveo.io/v1/images/edits",
    headers={
        "Authorization": f"Bearer {os.environ['SUPERVIDEO_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),  # keep it to retry safely
        "Prefer": "wait=30",
    },
    json={
        "model": "qwen-image-edit",
        "prompt": "make it snow",
        "image_url": "file_0123456789abcdef0123456789abcdef"
    },
)
print(r.status_code, r.json())
const r = await fetch("https://api.superveo.io/v1/images/edits", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SUPERVIDEO_API_KEY}`,
    "Idempotency-Key": crypto.randomUUID(), // keep it to retry safely
    Prefer: "wait=30",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "qwen-image-edit",
    "prompt": "make it snow",
    "image_url": "file_0123456789abcdef0123456789abcdef"
  }),
});
console.log(r.status, await r.json());

Sizes

Give the size in one of two ways:

With neither, the model's default size is used. Aspect ratios:

16:9, 1:1, 3:4, 4:3, 9:16

An explicit size must fit the model's grid:

ModelWidth and height are multiples ofLongest sideNegative prompt
qwen-image162048yes
flux2-klein162048yes
z-image162048not accepted
qwen-image-edit162048yes

Every side must also be at least 256. A size that does not fit gets 400 invalid_size with the rules in metadata.

curl -X POST https://api.superveo.io/v1/images/generations \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Prefer: wait=30" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "flux2-klein",
  "prompt": "a lighthouse in a storm, oil painting",
  "size": "1024x1024",
  "seed": 42
}'
import os, uuid, requests

r = requests.request(
    "POST", "https://api.superveo.io/v1/images/generations",
    headers={
        "Authorization": f"Bearer {os.environ['SUPERVIDEO_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),  # keep it to retry safely
        "Prefer": "wait=30",
    },
    json={
        "model": "flux2-klein",
        "prompt": "a lighthouse in a storm, oil painting",
        "size": "1024x1024",
        "seed": 42
    },
)
print(r.status_code, r.json())
const r = await fetch("https://api.superveo.io/v1/images/generations", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SUPERVIDEO_API_KEY}`,
    "Idempotency-Key": crypto.randomUUID(), // keep it to retry safely
    Prefer: "wait=30",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "flux2-klein",
    "prompt": "a lighthouse in a storm, oil painting",
    "size": "1024x1024",
    "seed": 42
  }),
});
console.log(r.status, await r.json());

Some models have no use for negative_prompt and refuse it; the model's negative_prompt field says whether it is accepted.

Pricing tiers

You are billed by tier: the resolution you asked for, or, for an explicit size, the nearest tier by the short side. POST /v1/quote tells you the tier and the price before you create; see Pricing and credits.

Licences

Some models come with licence terms you must follow when you use their output:

The job carries the text to show in attribution.