Developer API
One API for the latest AI image, video and audio models. Call shuut from your code with an API key: auth, generations, estimates, uploads, webhooks, errors.
Call shuut image, video and sound generation from your code with an API key. Prices, limits and safety rules are the same as on the web.
Base URL https://shuut.ai/v1
Quick start
Create a key
Create a key in My account under “API keys”. Keys starting with shuut_sk_ are shown only once, when created.
Send a create request
Send the model and input to /v1/generations. A 202 and a generation id come back right away.
curl https://shuut.ai/v1/generations \
-H "Authorization: Bearer $SHUUT_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "bytedance/seedance-2.5-flash",
"input": {
"prompt": "A paper boat drifting down a rainy street",
"duration": 8,
"aspect_ratio": "9:16"
},
"webhook_url": "https://example.com/hooks/shuut"
}'Wait until it's done
Ask for status with ?wait=1~20 and it replies when done or when that many seconds pass. With a webhook, there's no need to ask.
Get the result
The URL in outputs stays open for 24 hours. Ask again to get a new URL.
Authentication
Send the key in the Authorization: Bearer header or the x-api-key header. Cookies aren't read.
Keep the key on your server only, like a password. Never put it in browser or app code. If it leaks, revoke it right away in My account.
The model list, model details, and OpenAPI can be read without a key.
Generate
POST /v1/generations
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Required | Model id. Find it in the model reference. |
input | object | Optional | Input for that model. Fields follow the table in the model reference. |
webhook_url | string | Optional | Public https URL to notify when it's done. |
max_cost_credits | integer | Optional | Nothing is generated if the cost is higher than this. |
Status
| Status | Meaning |
|---|---|
queued | Waiting in line. |
processing | Generating. |
completed | Done. The result is in outputs. |
failed | Failed. Credits are refunded. |
canceled | Canceled. Credits are returned. |
If unconfirmed: true is present, the result is still being confirmed. Ask again after the number of seconds in poll_after_seconds, and don't create a new one. Creating a new one deducts credits twice.
GET /v1/generations/{id}— Get the status and result.GET /v1/generations— Generations made through the API. They also show in Assets on the web.POST /v1/generations/{id}/cancel— Can be canceled only before it starts. All credits are refunded.
Idempotency key
Send Idempotency-Key (up to 100 characters) so that a retry after a dropped connection creates and charges only once. When the same generation is returned, you get a 200 and idempotent-replayed: true.
Using the same key with a different body returns 409. Keys from failed or canceled generations can't be reused.
Estimates and cost limit
POST /v1/generations/estimate
/v1/generations/estimate takes the same body and returns only the cost, without deducting credits. If you set max_cost_credits on a create request, it stops with a 409 instead of deducting when the estimate is higher.
For inputs with an unknown length, the estimate is the maximum amount calculated for quote_seconds seconds, with quote_is_upper_bound: true added. The actual amount may be lower.
Files
POST /v1/files
Upload to /v1/files as a raw body, or as multipart/form-data with the file in the file field. Images and audio can be up to 20 MB, and video up to 100 MB. Put the returned id in the media field of input.
A public https URL can also go in a media field. The server fetches it and makes a file.
To use files, consent to media upload once on the web. Without it, a 403 and consent_url are returned. The API doesn't consent on your behalf.
Webhooks
If webhook_url is given when creating, a POST is sent when it's done. Notifications go out within about 1 minute after it finishes. Please respond with 2xx within 5 seconds.
generation.completed · generation.failed · generation.canceled
If it fails, it's sent again after ~1m · 2m · 10m · 30m · 1h · 3h · 6h (up to 8 times). Other 4xx responses stop it. The same notification keeps the same webhook-id, so use it to filter out duplicates.
Verify signature
webhook-id · webhook-timestamp · webhook-signature
Find the signing secret in My account under “API keys”. Verify the signature against the body exactly as received, and discard any request whose timestamp is off by more than 5 minutes.
Errors
All errors share the same format. Use code to tell them apart; message is human-readable English.
| code | HTTP | Meaning |
|---|---|---|
missing_api_key | 401 | No key was sent. |
invalid_api_key | 401 | The key is wrong, revoked, or expired. Sending different keys in both headers also gives this error. |
invalid_input | 400 | The body or a field value is invalid. param shows which field. |
prompt_too_long | 400 | The prompt is longer than the model's limit. |
invalid_url | 400 | The reference URL isn't a public https URL. |
insufficient_balance | 402 | Not enough balance. No credits were deducted. |
media_consent_required | 403 | Media upload consent is missing. Please give consent at consent_url. |
model_not_found | 404 | That model doesn't exist. |
model_retired | 410 | This model is retired. Resend using the model in successor. |
generation_not_found | 404 | This generation doesn't exist or isn't yours. |
file_not_found | 404 | The file id in input is missing or isn't yours. |
idempotency_conflict | 409 | The same idempotency key was used with a different body. |
idempotency_key_reused | 409 | That idempotency key's generation failed or was canceled. Please send a new key. |
max_cost_exceeded | 409 | Not generated because the estimate is higher than max_cost_credits. |
quote_changed | 409 | The estimate changed after it was received. Get the estimate again. |
job_started | 409 | Already started, so it can't be canceled. |
too_large | 413 | The file is too large. |
unsupported_type | 415 | This file type isn't accepted. |
url_unavailable | 422 | Couldn't download the file from that URL. |
rate_limited | 429 | Per-minute request limit exceeded. Send again after the number of seconds in retry-after. |
concurrency_limit | 429 | Concurrent generation limit reached. Please send again once a running job finishes. |
upload_daily_cap | 429 | Today's upload quota is used up. |
webhook_backlog | 429 | Too many webhooks are waiting for delivery. Send again once the backlog shrinks. |
country_blocked | 451 | Not available in this region. |
internal_error | 500 · 503 | Server error. For 503 (regional relay failed), send again shortly. If it continues, contact Support with request_id. |
import_timeout | 504 | Downloading the file from the URL took too long. |
A code not in the table means the same as on the web. Handle unknown codes by HTTP status.
Limits and concurrency
- Create, estimate, cancel, files: 120 per minute
- Read: 4,800 per minute
- Requests without a key: 1,200 per minute for each IP address
Responses include ratelimit-limit · ratelimit-reset. Generate, estimate, cancel and file responses also include ratelimit-remaining. On a 429, send the request again after retry-after seconds.
Concurrent generations follow the same plan limit as on the web. Going over returns 429 concurrency_limit with no waiting queue.
See your limit and the number of jobs running now in the concurrency field of GET /v1/account.
OpenAPI
Download the endpoints and response shapes as an OpenAPI 3.1 file to build an SDK. Input fields for each model are on its model page.
GET /v1/modelsGET /v1/models/{id}POST /v1/generationsPOST /v1/generations/estimateGET /v1/generations/{id}GET /v1/generationsPOST /v1/generations/{id}/cancelPOST /v1/filesGET /v1/accountGET /v1/openapi.json
https://shuut.ai/v1/openapi.json
Updated December 1, 2026
Tools
- Image — Draw with words
- Video — Make videos from text or photos
- Edit video — Polish your videos
- Reverse Video — Recreate videos for editing
- Audio — Make voices and music
- AI Avatar — The person in the photo talks
- Captions — Add captions to a video
- SWAP — Swap people and objects in a video
- Resize — Resize to 4 ratios at once
- Photo edit — Edit and expand photos
- Try-on shot — Dress a model
- Scene sequence — Create several shots with the same character
- Cinema Studio — Turn several scenes into a film
- UGC Research — Find short-form videos that did well
- Copy — Write posts and hashtags
- Translate — Translate into 6 languages
- Ad check — Check ad wording
- Product shot — Turn item photos into studio shots
- 3D — Make 3D models from photos or text
Explore · SWAP · Effects · Pricing · Support · Connect with MCP · Developer API · AI Video Cost Calculator · AI Video Model Picker for Ads