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:
| Model | Type | Modes | Resolutions | Default size | Seconds | FPS | Audio | Access |
|---|---|---|---|---|---|---|---|---|
qwen-image Qwen-Image | image | t2i | 720p, 1080p, 1440p | 1024x1024 | – | – | – | general |
flux2-klein FLUX.2 klein | image | t2i | 720p, 1080p, 1440p | 1024x1024 | – | – | – | general |
z-image Z-Image Turbo | image | t2i | 720p, 1080p, 1440p | 1024x1024 | – | – | – | general |
qwen-image-edit Qwen-Image Edit | image | edit_image | 720p, 1080p | 1024x1024 | – | – | – | 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.
| Mode | What it does | What to send |
|---|---|---|
t2v | Text to video | prompt only. |
i2v | Image to video | prompt and first_frame. |
flf2v | First and last frame to video | prompt, first_frame and last_frame. |
r2v | Reference to video | prompt and one or more of reference_images, reference_video, reference_audio. |
t2i | Text to image | POST /v1/images/generations with prompt. |
edit_image | Image edit | POST /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:
resolutionwithaspect_ratio, for example"resolution": "720p", "aspect_ratio": "9:16". The size is worked out for the model.sizeas"WIDTHxHEIGHT", for example"832x480". Not together withresolutionoraspect_ratio.
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:
| Model | Width and height are multiples of | Longest side | Negative prompt |
|---|---|---|---|
qwen-image | 16 | 2048 | yes |
flux2-klein | 16 | 2048 | yes |
z-image | 16 | 2048 | not accepted |
qwen-image-edit | 16 | 2048 | yes |
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.