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

View models · API pricing

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

FieldTypeRequiredDescription
modelstringRequiredModel id. Find it in the model reference.
inputobjectOptionalInput for that model. Fields follow the table in the model reference.
webhook_urlstringOptionalPublic https URL to notify when it's done.
max_cost_creditsintegerOptionalNothing is generated if the cost is higher than this.

Status

StatusMeaning
queuedWaiting in line.
processingGenerating.
completedDone. The result is in outputs.
failedFailed. Credits are refunded.
canceledCanceled. 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.

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.

codeHTTPMeaning
missing_api_key401No key was sent.
invalid_api_key401The key is wrong, revoked, or expired. Sending different keys in both headers also gives this error.
invalid_input400The body or a field value is invalid. param shows which field.
prompt_too_long400The prompt is longer than the model's limit.
invalid_url400The reference URL isn't a public https URL.
insufficient_balance402Not enough balance. No credits were deducted.
media_consent_required403Media upload consent is missing. Please give consent at consent_url.
model_not_found404That model doesn't exist.
model_retired410This model is retired. Resend using the model in successor.
generation_not_found404This generation doesn't exist or isn't yours.
file_not_found404The file id in input is missing or isn't yours.
idempotency_conflict409The same idempotency key was used with a different body.
idempotency_key_reused409That idempotency key's generation failed or was canceled. Please send a new key.
max_cost_exceeded409Not generated because the estimate is higher than max_cost_credits.
quote_changed409The estimate changed after it was received. Get the estimate again.
job_started409Already started, so it can't be canceled.
too_large413The file is too large.
unsupported_type415This file type isn't accepted.
url_unavailable422Couldn't download the file from that URL.
rate_limited429Per-minute request limit exceeded. Send again after the number of seconds in retry-after.
concurrency_limit429Concurrent generation limit reached. Please send again once a running job finishes.
upload_daily_cap429Today's upload quota is used up.
webhook_backlog429Too many webhooks are waiting for delivery. Send again once the backlog shrinks.
country_blocked451Not available in this region.
internal_error500 · 503Server error. For 503 (regional relay failed), send again shortly. If it continues, contact Support with request_id.
import_timeout504Downloading 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

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.

https://shuut.ai/v1/openapi.json

Updated December 1, 2026

Tools

Explore · SWAP · Effects · Pricing · Support · Connect with MCP · Developer API · AI Video Cost Calculator · AI Video Model Picker for Ads

Legal notices