Seedance 2.5 API: How to Call It

By Kerox · Published Nov 29, 2026 · Updated Nov 29, 2026

Made with Seedance 2.5

Seedance 2.5 is ByteDance's video model for clips of 4 to 30 seconds with sound, at 480p, 720p or 1080p. On Kerox it is a normal task: create an API key, POST /v1/tasks with model ID bytedance/seedance-2.5, then poll or receive a webhook. A 5-second 720p clip is about approx. $1.0978. This page is the call itself. For the release notes, see What is Seedance 2.5?. For every Seedance rate, see Seedance pricing.

The behavior below is what the Kerox catalog accepts today. ByteDance's own description of the model is on the Seedance 2.5 page and the launch note, both read on 29 November 2026. Where those pages and this API disagree, follow this page and the Seedance 2.5 API docs.

What you can generate

One request is one clip. The ways in:

  • Text to video. A prompt alone. The default shape is 16:9 if you set it, or adaptive if you leave aspect_ratio out.
  • First frame, or first and last frame. Pass first_frame, and optionally last_frame. The clip keeps the frame's shape, so aspect_ratio must be auto (or omitted). last_frame without first_frame is rejected.
  • References. Up to 30 images, 10 video clips and 10 audio clips. In the prompt, name them @Image 1, @Video 1, @Audio 1, in the order you sent them. Frames and references cannot be in the same request.
  • Edit or extend. Set omni_reference_task_type to edit or extend and include a reference video. Edit requires duration of -1 and aspect_ratio of auto. Extend requires aspect_ratio of auto.

Audio can be the only input: Seedance 2.5 allows a request that is just reference audio plus a prompt. generate_audio defaults to true. output_format is mp4 or mov (default mp4). return_last_frame adds a still of the last frame. watermark defaults to false.

ByteDance describes 2.5 as a 30-second story model: several connected shots in one generation, with picture and sound together, and more reference slots than Seedance 2.0 (9 images, 3 videos, 3 audio clips, 15 seconds). Those limits are the maker's account of the release, from the pages linked above.

Create a key

  1. Sign in to the console. The first sign-in creates the account. The code arrives by email.
  2. Create an API key. The full secret is shown once.
  3. Open the wallet and add funds if the balance cannot cover the estimate. The minimum top-up is $5. There is no subscription.

Export the key as KEROX_API_KEY. Send it as Authorization: Bearer <your-api-key> from your server, not from a browser. Key rotation and spend limits are in Authentication. The short path from zero to a file is the quickstart.

Submit, poll, and save the file

POST https://api.kerox.ai/v1/tasks returns HTTP 201 with id and status: "processing". The scripts below poll GET /v1/tasks/{id} every 3 seconds for up to 10 minutes, then save outputs[0].url. A task that is still processing at the deadline is not a failure: keep the ID and poll again. A failed task is refunded. Generated files stop working 7 days after the task finishes (expires_at). Copy anything you need into your own storage. Details: Tasks.

# Needs curl and jq. KEROX_API_KEY is your key.
set -euo pipefail
API=https://api.kerox.ai/v1
AUTH="Authorization: Bearer $KEROX_API_KEY"
BODY='{
  "model": "bytedance/seedance-2.5",
  "input": {
    "prompt": "A paper sailboat drifts across a still pool at dusk. The camera holds low as a warm light switches on under the water.",
    "duration": 5,
    "resolution": "720p",
    "aspect_ratio": "16:9"
  }
}'

TASK_ID=$(curl -sS --fail-with-body -X POST "$API/tasks" \
  -H "$AUTH" -H "Content-Type: application/json" -d "$BODY" | jq -r .id)
echo "Submitted $TASK_ID"

DEADLINE=$(( $(date +%s) + 600 ))
STATUS=processing
while [ "$STATUS" = "processing" ] && [ "$(date +%s)" -lt "$DEADLINE" ]; do
  sleep 3
  TASK=$(curl -sS --fail-with-body "$API/tasks/$TASK_ID" -H "$AUTH")
  STATUS=$(echo "$TASK" | jq -r .status)
done

if [ "$STATUS" != "succeeded" ]; then
  echo "Task $TASK_ID is $STATUS: $(echo "$TASK" | jq -c .error)"
  exit 1
fi
curl -sS --fail-with-body -o result.mp4 "$(echo "$TASK" | jq -r '.outputs[0].url')"
echo "Saved result.mp4"
# pip install requests
import os
import time
import requests

API = "https://api.kerox.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['KEROX_API_KEY']}"}

resp = requests.post(
    f"{API}/tasks",
    headers=HEADERS,
    json={
        "model": "bytedance/seedance-2.5",
        "input": {
            "prompt": "A paper sailboat drifts across a still pool at dusk. The camera holds low as a warm light switches on under the water.",
            "duration": 5,
            "resolution": "720p",
            "aspect_ratio": "16:9",
        },
    },
    timeout=60,
)
if resp.status_code != 201:
    raise SystemExit(f"HTTP {resp.status_code}: {resp.json()['error']}")
task = resp.json()
print("Submitted", task["id"])

deadline = time.time() + 600
while task["status"] == "processing" and time.time() < deadline:
    time.sleep(3)
    task = requests.get(
        f"{API}/tasks/{task['id']}", headers=HEADERS, timeout=30
    ).json()

if task["status"] != "succeeded":
    raise SystemExit(f"Task {task['id']} is {task['status']}: {task.get('error')}")
file = requests.get(task["outputs"][0]["url"], timeout=120)
file.raise_for_status()
open("result.mp4", "wb").write(file.content)
print("Saved result.mp4")
// Node.js 18 or later. Save as generate.mjs and run: node generate.mjs
import fs from 'node:fs/promises';

const API = 'https://api.kerox.ai/v1';
const headers = { Authorization: `Bearer ${process.env.KEROX_API_KEY}` };

const res = await fetch(`${API}/tasks`, {
  method: 'POST',
  headers: { ...headers, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    model: 'bytedance/seedance-2.5',
    input: {
      prompt:
        'A paper sailboat drifts across a still pool at dusk. The camera holds low as a warm light switches on under the water.',
      duration: 5,
      resolution: '720p',
      aspect_ratio: '16:9',
    },
  }),
});
let task = await res.json();
if (res.status !== 201)
  throw new Error(`HTTP ${res.status}: ${task.error.message}`);
console.log('Submitted', task.id);

const deadline = Date.now() + 10 * 60 * 1000;
while (task.status === 'processing' && Date.now() < deadline) {
  await new Promise((resolve) => setTimeout(resolve, 3000));
  const poll = await fetch(`${API}/tasks/${task.id}`, { headers });
  if (!poll.ok) throw new Error(`HTTP ${poll.status}`);
  task = await poll.json();
}
if (task.status !== 'succeeded') {
  throw new Error(
    `Task ${task.id} is ${task.status}: ${JSON.stringify(task.error)}`
  );
}
const file = await fetch(task.outputs[0].url);
if (!file.ok) throw new Error(`Download failed: HTTP ${file.status}`);
await fs.writeFile('result.mp4', Buffer.from(await file.arrayBuffer()));
console.log('Saved result.mp4');

Add Idempotency-Key when a retry must not create a second task. The same key and the same body within 24 hours return the original task (HTTP 200 on the repeat) and charge once. A new body needs a new key. See Idempotency.

Webhook instead of polling

Set webhook_url to a public https:// address. When the task reaches succeeded or failed, Kerox creates one notification and delivers it to that URL. A failed delivery is retried, up to 12 attempts. Deduplicate on the webhook-id header. There is no webhook URL field in the console; the URL is per request. Keep the task ID and poll if the callback is late. The signing secret is in the console, not the URL. Webhooks.

{
  "model": "bytedance/seedance-2.5",
  "input": {
    "prompt": "A paper sailboat drifts across a still pool at dusk.",
    "duration": 5,
    "resolution": "720p",
    "aspect_ratio": "16:9"
  },
  "webhook_url": "https://example.com/webhooks/kerox",
  "metadata": { "order_id": "A1001" }
}

Reference files must be https URLs the API can fetch, or file IDs you uploaded first. Files covers the upload. Do not put a private LAN address in first_frame or images.

Parameters that change the result

FieldWhat to send
promptText. With references, point at @Image 1, @Video 1, @Audio 1.
durationInteger 4–30, or -1 to let the model choose. Default 5. Edit mode allows only -1.
resolution480p, 720p, or 1080p. Default 720p. This is the main price lever.
aspect_ratioauto, 16:9, 9:16, 1:1, 4:3, 3:4, 21:9. Default auto. Must be auto with a first frame, and with edit or extend.
first_frame, last_frameImage URLs. Not together with images, videos, or audios.
images, videos, audiosOne URL or an array. Caps: 30, 10, and 10.
generate_audioBoolean, default true. Does not change the price.
omni_reference_task_typeauto, reference, edit, or extend. Only with reference media, not with a bare prompt or a first frame.
output_formatmp4 (default) or mov.
return_last_frameBoolean, default false.
watermarkBoolean, default false.

A few adjustments that avoid a rejected body:

  • Match the mode to the files. A first frame plus an images array is invalid. Pick frames or references.
  • Name references in order. The first image URL is @Image 1, even if the prompt mentions the subject without the token. The model follows the tokens.
  • Do not send seed. Seedance 2.5 rejects it. Re-run with a new prompt or a new reference if you need another take.
  • duration is whole seconds. 5.5 is an invalid parameter, not a rounded 6.
  • Native body shape. ByteDance's own content array still works if you set "format": "native". The default format is unified, which is what the samples above use. The field map is in Migrate from ByteDance.

POST /v1/estimate with the same model and input returns the hold before you spend it. Studio shows the same number next to the controls.

What it costs

Seedance is billed in tokens, not as a flat fee per clip. The practical result is a price per second that depends on the model and the resolution. The figures on this page are 16:9 estimates with no reference video, the same estimate the model page uses. A reference video uses a different token rate, and its length is added to the output length. The tables below do not cover that request. POST /v1/estimate with the same body returns the hold before you submit. Aspect ratio, at the same resolution, moves the price by less than 5%. Reference images and reference audio do not add tokens. Sound on or off does not change the price.

Two baselines apply, and they are not the same rate. The official column, the savings percentage, the table below, and POST /v1/estimate are all computed from the Kerox catalog rate for this model. That is the catalog baseline. The Seedance API price table, read on 30 November 2026, is ByteDance's public card and uses a different per-million-token baseline for the same no-reference-video tier. At 720p with no reference video, the rate on that page is about one fifth higher than the catalog rate. Kerox applies the model's public discount on top of the catalog baseline, not on top of the linked card. The product pages linked above were read on 29 November 2026. The amount is held when the task starts and settled on the finished video. A failed or timed-out task is refunded in full. If you pass duration: -1, the hold covers the longest clip, and unused time goes back.

OutputOfficial priceKeroxYou save
5 s · 480p$0.5140$0.48835%
5 s · 720p$1.1556$1.09785%
5 s · 1080p$2.8431$2.70095%
10 s · 1080p$5.6862$5.40195%

Token-billed models are estimated at 16:9 without a reference video. Billing is by tokens.

One second at 480p is approx. $0.0977. The full rate card, including Seedance 2.0 and the Flash variant, is Seedance pricing. Billing rules: Pricing and billing.

Which Seedance ID to send

The endpoint does not change. The model ID does.

  • bytedance/seedance-2.5 when you want 1080p or the larger reference caps (30 / 10 / 10) and clips up to 30 seconds.
  • bytedance/seedance-2.5-flash for the same 4 to 30 second range at 480p or 720p, at a lower rate. It has no 1080p tier. A 5-second 720p Flash clip is approx. $0.7182.
  • bytedance/seedance-2.0 when you are matching an older integration. It stops at 15 seconds and takes fewer references. Its prompt names files as [Image 1], not @Image 1.

Other video models on the same key, if 2.5 is the wrong tool for the shot: Kling 4.0 for 4K, Magi-2 for 1080p with a flat per-second rate. Read each model's parameter list before you reuse a body. A 4K field from Kling is rejected here.

Errors you will actually see

Branch on HTTP status and error.code. The message text can change. The catalog is in Errors.

You gotWhat to do
HTTP 400, invalid_request, param setFix that field. input.duration outside 4–30 or -1, a bad resolution, two text prompts, or frames mixed with references, all land here. Send a new request.
HTTP 401The API key is missing, mistyped, revoked, or expired.
HTTP 402The balance does not cover the estimate, or the key's spend limit would be passed. Top up, or raise the limit.
HTTP 429 with retry-afterWait that many seconds and send the same request again.
HTTP 429 without retry-afterToo many tasks are in progress. Wait for one to finish.
HTTP 500 or 503Retry with the same Idempotency-Key.
status: "failed" after 201The hold was refunded. Submit a new task. Do not poll a failed ID hoping it flips.

invalid_parameter on input.seed means the field is not accepted. Drop it. unknown_parameter means the name is not on this model at all.

Seedance 2.5 API, in one pass

Create the key, put funds in the wallet, and submit bytedance/seedance-2.5 with a prompt, a duration, and a resolution. Poll the task or set webhook_url, then download the file within 7 days. Check the estimate before a 1080p batch: resolution, not the prompt, is what moves the price. The model page has samples, and the API docs list every field with an example body.