Models
What can be generated, and the price.
- GET
/v1/modelsList models - GET
/v1/models/{model_id}Get one model - GET
/v1/queueWaiting time before you create - POST
/v1/quotePrice a request before you send it
GET /v1/models
List models
Only the models this account and key may use, with prices.
Example
curl -X GET https://api.superveo.io/v1/models \
-H "Authorization: Bearer $SUPERVIDEO_API_KEY"
Responses
| Status | Body | When |
|---|---|---|
| 200 | ModelList | OK |
| 401 | Error | unauthorized |
| 429 | Error | rate_limited |
| 503 | Error | capacity_unavailable |
GET /v1/models/{model_id}
Get one model
Parameters
| Parameter | In | Type | Description |
|---|---|---|---|
model_id required | path | string | Model id. |
Example
curl -X GET https://api.superveo.io/v1/models/z-image \
-H "Authorization: Bearer $SUPERVIDEO_API_KEY"
Responses
| Status | Body | When |
|---|---|---|
| 200 | Model | OK |
| 401 | Error | unauthorized |
| 403 | Error | model_not_available_in_region |
| 404 | Error | model_not_found |
| 429 | Error | rate_limited |
| 503 | Error | capacity_unavailable |
GET /v1/queue
Waiting time before you create
How long a job created now would wait before it starts rendering, per model and per speed, and whether it would be accepted. Free to call and it creates nothing. The numbers come from the same code that decides at create, are refreshed every few seconds, and are estimates, not promises: fast is priority in the queue, not a start time. Compare standard with fast to see whether fast is worth its price right now. After a create, the job itself carries eta_seconds.
Parameters
| Parameter | In | Type | Description |
|---|---|---|---|
model | query | string | One model id. Without it: every model this key may use. |
Example
curl -X GET https://api.superveo.io/v1/queue \
-H "Authorization: Bearer $SUPERVIDEO_API_KEY"
Responses
POST /v1/quote
Price a request before you send it
Send the body you would send to url and get what it would hold from the wallet (max_cost_usd), worked out by the same code that holds it at create. Works for /v1/videos, /v1/images/generations, /v1/images/edits and /v1/batches. Nothing is created, held or charged. The request is checked as at create (model, size, seconds, mode, speed), but not your credit, your input files or whether a GPU is free: see GET /v1/account and GET /v1/queue. The same request costs the same at create unless the prices change in between.
Parameters
| Parameter | In | Type | Description |
|---|---|---|---|
X-Data-Region | header | string: us, eu, uk, in | Same as data_region in the body. |
Request body
| Field | Type | Description |
|---|---|---|
url required | string: /v1/videos, /v1/images/generations, /v1/images/edits, /v1/batches | The endpoint this request is for. |
body required | object | The JSON body that endpoint takes. |
Example
curl -X POST https://api.superveo.io/v1/quote \
-H "Authorization: Bearer $SUPERVIDEO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "/v1/images/generations",
"body": {
"model": "z-image",
"prompt": "a red kite over a beach",
"size": "1024x1024",
"speed": "fast"
}
}'import os, uuid, requests
r = requests.request(
"POST", "https://api.superveo.io/v1/quote",
headers={
"Authorization": f"Bearer {os.environ['SUPERVIDEO_API_KEY']}",
},
json={
"url": "/v1/images/generations",
"body": {
"model": "z-image",
"prompt": "a red kite over a beach",
"size": "1024x1024",
"speed": "fast"
}
},
)
print(r.status_code, r.json())const r = await fetch("https://api.superveo.io/v1/quote", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SUPERVIDEO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "/v1/images/generations",
"body": {
"model": "z-image",
"prompt": "a red kite over a beach",
"size": "1024x1024",
"speed": "fast"
}
}),
});
console.log(r.status, await r.json());