# bytedance/seedance-2.5

Source: https://docs.sociaro.com/models/bytedance-seedance-2-5/

Seedance 2.5 supports up to 30 reference images, 10 reference clips and 10 audio tracks, audio-only input, and output up to 30 seconds.

|  |  |
| --- | --- |
| Slug | `bytedance/seedance-2.5` |
| Kind | video |
| Vendor | bytedance |
| Endpoint | `POST /v1/byteplus/contents/generations/tasks` |
| References | [`POST /v1/generations/refs`](https://docs.sociaro.com/reference-images/index.md) |

[View pricing and billing conditions](https://docs.sociaro.com/models/bytedance-seedance-2-5/#pricing)

## Example request

cURL

```bash
curl https://api.sociaro.com/v1/byteplus/contents/generations/tasks \
  -H "Authorization: Bearer $SOCIARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "model": "bytedance/seedance-2.5",
        "content": [{"type": "text", "text": "a paper boat drifts down a rain-soaked street"}],
        "resolution": "720p",
        "duration": 5
      }'

# then poll the job id it returns:
curl https://api.sociaro.com/v1/byteplus/contents/generations/tasks/JOB_ID \
  -H "Authorization: Bearer $SOCIARO_API_KEY"
```

Python

```python
# Requires Python 3 and requests (pip install requests).
import os
import time
import requests

payload = {'model': 'bytedance/seedance-2.5',
 'content': [{'type': 'text',
              'text': 'a paper boat drifts down a rain-soaked street'}],
 'resolution': '720p',
 'duration': 5}

response = requests.post(
    'https://api.sociaro.com/v1/byteplus/contents/generations/tasks',
    headers={
        'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
        'Content-Type': 'application/json',
    },
    json=payload,
    timeout=120,
)
response.raise_for_status()
submitted = response.json()
job_id = submitted['id']
print(submitted)

# then poll the job id it returns:
while True:
    response = requests.get(
        'https://api.sociaro.com/v1/byteplus/contents/generations/tasks/' + job_id,
        headers={
            'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
        },
        timeout=120,
    )
    response.raise_for_status()
    result = response.json()
    status = result['status']
    if status == 'succeeded':
        break
    if status not in ('queued', 'running'):
        raise RuntimeError(result)
    time.sleep(5)
print(result)
```

JavaScript

```javascript
// Run as an .mjs file with Node.js 22 or later.
let jobId;
let result;

{
  const payload = {
    "model": "bytedance/seedance-2.5",
    "content": [
      {
        "type": "text",
        "text": "a paper boat drifts down a rain-soaked street"
      }
    ],
    "resolution": "720p",
    "duration": 5
  };
  
  const response = await fetch("https://api.sociaro.com/v1/byteplus/contents/generations/tasks", {
    method: "POST",
    headers: {
      "Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
      "Content-Type": "application/json",
    },
    body: JSON.stringify(payload),
  });
  if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
  const submitted = await response.json();
  jobId = submitted.id;
  console.log(submitted);
}

// then poll the job id it returns:
{
  while (true) {
    const response = await fetch("https://api.sociaro.com/v1/byteplus/contents/generations/tasks/" + jobId, {
      headers: {
        "Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
      },
    });
    if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
    result = await response.json();
    const status = result.status;
    if (status === "succeeded") break;
    if (!["queued", "running"].includes(status)) throw new Error(JSON.stringify(result));
    await new Promise(resolve => setTimeout(resolve, 5000));
  }
  console.log(result);
}
```

## Parameters

Seedance 2.5 — the large-input, long-output tier

| Field | Type | Required | Default | Values | What it does |
| --- | --- | --- | --- | --- | --- |
| `content` | array | yes | — | parts, each with its own type and an optional role | This is the whole input. `{"type":"text","text":…}`, `{"type":"image_url","image_url":{"url":…},"role":"first_frame"\|"last_frame"\|"reference_image"}`, `{"type":"video_url",…,"role":"reference_video"}`, `{"type":"audio_url",…,"role":"reference_audio"}`. One more part type exists on this model alone: `{"type":"draft_task","draft_task":{"id":…}}`, which renders the final of an earlier draft — see `draft` below. |
| `resolution` | string | no | 720p | 480p · 720p · 1080p · 4k | A tier this model does not have is refused with a 400 naming the ones it does. The generator would ACCEPT it and silently render 720p, so the check is ours and it costs you nothing. |
| `duration` | integer | no | -1 | 4–30, or -1 | Seconds. `-1` lets the model pick the length that suits the inputs. |
| `ratio` | string | no | adaptive | 21:9 · 16:9 · 4:3 · 1:1 · 3:4 · 9:16 · adaptive |  |
| `output_format` | string | no | mp4 | mp4 · mov | `mov` carries 10-bit colour and PCM audio for editing work, and 2.5 is the only model here that offers it. |
| `generate_audio` | boolean | no | false | true · false | Sound is off unless you send `true`, on every route, except when you send your own audio (a `reference_audio` part) or set the field `omni_reference_task_type` to `edit` or `extend` (2.5 models only): then the generator's own default applies, and it is on. On the 2.0 models an edit or extension is asked for in the prompt, without that field, so it comes back silent unless you send `"generate_audio": true` or your own audio (`reference_audio`), with which sound is on by default. With `true` the clip gets generated sound synchronised with the picture, at the same price: these models are metered per token. A final rendered from a draft keeps the draft's sound, so send it on the draft. |
| `bitrate_mode` | string | no | the model's own | standard · high | Not in the vendor's public reference, but the generator honours it: `high` encodes at a higher bitrate than `standard` (in one 480p measurement about 4.6–6.9 Mbps against 1.2–1.9 Mbps), and the price is the same, because these models are metered per token. The default differs by model, so leave it out to take the model's own. On 2.5, leaving it out already gives a high bitrate (6.96 Mbps in the same measurement). |
| `return_last_frame` | boolean | no | false | true · false | Asks for the closing still beside the clip, at NO extra cost — useful as the `first_frame` of the next clip. The poll returns it as `content.last_frame_url`, the vendor's own link, with `last_frame_media_url` beside it: ours, on the same expiring terms as `media_url`. |
| `watermark` | boolean | no | false | true · false | No mark unless you send `true`, which puts an `AI Generated` mark in the lower right corner. `false` is the generator's own default: `/v1/byteplus` and `/v1/modelark` add no `watermark` to your body, so it applies there, and the other routes send `false` when you leave the field out. |
| `seed` | integer | no | random | — | Every Seedance model we serve accepts it. The same seed gives similar, not identical, results: the vendor says complete consistency is not guaranteed. |
| `execution_expires_after` | integer | no | 172800 | 3600–259200 | Seconds after submission at which the generator gives up on a task that has not finished and marks it `expired`. We charge only a finished clip, so an expired task costs you nothing, and the task stays pollable for its whole window. A value that is not a whole number in the range is refused before anything is created (`400`, `invalid_input` on `/v2/jobs`); `/v1/byteplus` and `/v1/modelark` forward it as sent and the generator refuses a bad one itself. On `/v2/jobs` the job still ends at its own `max_runtime_sec`. |
| `safety_identifier` | string | no | — | 1–64 characters | A fixed id for YOUR end user, one per user, which the generator uses to spot an end user who breaks its usage policy. We never send your value itself: we send a per-organisation pseudonym of your value (64 hex characters, the same for the same value on all your organisation's keys and routes), and the task reports that pseudonym back. A blank or longer value is refused before anything is created (`400`, `invalid_input` on `/v2/jobs`), on every route. |
| `omni_reference_task_type` | string | no | auto | auto · reference · edit · extend | What the references in `content` are FOR — generate from them, edit the source, or extend it; `auto` lets the model infer it from the prompt. Needs REFERENCE media in `content`: the generator refuses it on text-to-video and on first-frame jobs. Under `extend` we read `duration` as the length of the ADDITION rather than of the finished clip, but BytePlus does not state this. THIS MODEL ONLY — the 2.0 rows accept the field and silently ignore it. |
| `draft` | boolean | no | false | true · false | Renders a cheap 480p DRAFT instead of the finished clip, so you can judge the shot before paying for it. Send `resolution` as `480p` or leave it out — any other tier is a 400, because the generator renders 480p regardless and you would be charged for the tier you asked for. Keep the `job_id`: for the next SEVEN DAYS you can render the 1080p or 4K final from it by sending `{"type":"draft_task","draft_task":{"id":"<that job_id>"}}` as a `content` part, with `resolution` set to `1080p` or `4k` — the generator REQUIRES the field on a final and refuses a request without it, in its own words (measured 2026-10-01) — and no `draft` flag. The final reuses the draft's prompt, references, duration, ratio, seed and audio settings automatically — you do not resend them. The two calls are billed separately, each as an ordinary video at its own resolution; there is no draft surcharge and no draft discount. A final can only be rendered while we still hold the draft's billing record, which is a shorter window than the generator's seven days — past it the request is refused and you start from a new draft. THIS MODEL ONLY: the 2.0 rows do not support draft mode (the generator refuses `draft: true` there by name, measured 2026-10-05), and we refuse it too. ON `/v2/jobs` draft mode works too, under the official `bytedance/seedance-2.5` id. Through that id the steps above change in two ways. You name OUR id, not the generator's: send `draft: true` in `input` for the draft, keep the `job_...` that `POST /v2/jobs` returns, and once that job has `succeeded` render the final with a second job whose `input.content` is `[{"type":"draft_task","draft_task":{"id":"<that job_...>"}}]`. And `/v2` sets the resolution itself, `480p` on the draft and `1080p` on the final unless you send `4k` for it (any other value is a 400). The final is billed at the rate the DRAFT's inputs earn: a final whose draft had an input video is charged the with-video rate, though the final's own body carries no video. A draft that has not finished, or a job that is not a draft, is refused; a job that belongs to someone else reads exactly like an id that does not exist. |

### Worked example

cURL

```bash
# extend an existing clip (whether duration is the length of the addition or of the whole clip is not stated by BytePlus)
curl https://api.sociaro.com/v1/byteplus/contents/generations/tasks \
  -H "Authorization: Bearer $SOCIARO_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "bytedance/seedance-2.5",
        "content": [
          { "type": "text", "text": "the camera drifts on past the lantern" },
          { "type": "video_url", "video_url": {"url": "https://your-cdn.example.com/clip.mp4"},
            "role": "reference_video" }
        ],
        "omni_reference_task_type": "extend",
        "resolution": "1080p", "duration": 6 }'
```

Python

```python
# Requires Python 3 and requests (pip install requests).
import os
import requests

# extend an existing clip (whether duration is the length of the addition or of the whole clip is not stated by BytePlus)
payload = {'model': 'bytedance/seedance-2.5',
 'content': [{'type': 'text',
              'text': 'the camera drifts on past the lantern'},
             {'type': 'video_url',
              'video_url': {'url': 'https://your-cdn.example.com/clip.mp4'},
              'role': 'reference_video'}],
 'omni_reference_task_type': 'extend',
 'resolution': '1080p',
 'duration': 6}

response = requests.post(
    'https://api.sociaro.com/v1/byteplus/contents/generations/tasks',
    headers={
        'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
        'Content-Type': 'application/json',
    },
    json=payload,
    timeout=120,
)
response.raise_for_status()
print(response.text)
```

JavaScript

```javascript
// Run as an .mjs file with Node.js 22 or later.

// extend an existing clip (whether duration is the length of the addition or of the whole clip is not stated by BytePlus)
const payload = {
  "model": "bytedance/seedance-2.5",
  "content": [
    {
      "type": "text",
      "text": "the camera drifts on past the lantern"
    },
    {
      "type": "video_url",
      "video_url": {
        "url": "https://your-cdn.example.com/clip.mp4"
      },
      "role": "reference_video"
    }
  ],
  "omni_reference_task_type": "extend",
  "resolution": "1080p",
  "duration": 6
};

const response = await fetch("https://api.sociaro.com/v1/byteplus/contents/generations/tasks", {
  method: "POST",
  headers: {
    "Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(payload),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());
```

**Reference and output limits.**

|  | 2.0 | 2.5 |
| --- | --- | --- |
| reference images | up to 9 | **up to 30** |
| reference videos | up to 3, each 2–15 s | **up to 10, each 2–30 s** |
| reference audio | up to 3 | **up to 10** |
| audio-only input | not allowed | **allowed** |
| output length | 4–15 s | **up to 30 s** |
| resolution | up to 4K | **up to 4K** |

Metered per token, with the same minimum cost on video-input jobs as the rest of the family.

**1080p arrived on 2026-08-14 and 4K on 2026-11-16.** At 4K the clip is 10-bit H.265 at 24 fps.
If 4K is temporarily busy, `/v1/byteplus` can return HTTP `429` at submission. On `/v1/modelark`, poll the
accepted task for `failed` and the generator's `error.code`. On `/v2/jobs`, the job can end with
`provider_failed`. For a busy response, retry later. The tier list on this page is read from what BytePlus prices,
so it changes when they publish one.

`omni_reference_task_type` exists on this model alone. The 2.0 rows accept it and ignore it, which
buys you a clip that never used the setting and no error saying so.

## How a job runs

These routes are a **pass-through**: you send BytePlus's own body and get their own response back,
with our additions beside it. Generation takes longer than a request should wait, so it goes in
three moves — submit, poll, collect.

cURL

```bash
# 1. submit — the id comes back as `id`. There is NO `job_id` on THIS response
curl -sS https://api.sociaro.com/v1/byteplus/contents/generations/tasks \
  -H "Authorization: Bearer $SOCIARO_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "…", "content": [ … ] }'
# -> { "id": "cgt-…" }

# 2. poll every 5-10 s
curl -sS https://api.sociaro.com/v1/byteplus/contents/generations/tasks/cgt-… \
  -H "Authorization: Bearer $SOCIARO_API_KEY"
# -> { "status": "running", … }
# -> { "status": "succeeded", "content": { "video_url": "<the vendor's own link>" },
#      "media_url": "https://api.sociaro.com/v1/media/<media_id>" }

# 3. collect — the opaque id IS the credential, no header needed
curl -sSL "https://api.sociaro.com/v1/media/<media_id>" -o out.mp4
```

Python

```python
# Requires Python 3 and requests (pip install requests).
from pathlib import Path
import os
import time
import requests

# 1. submit — the id comes back as `id`. There is NO `job_id` on THIS response
# Save the complete request body in request.json.
response = requests.post(
    'https://api.sociaro.com/v1/byteplus/contents/generations/tasks',
    headers={
        'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
        'Content-Type': 'application/json',
    },
    data=Path('request.json').read_bytes(),
    timeout=120,
)
response.raise_for_status()
submitted = response.json()
job_id = submitted['id']
print(submitted)

# 2. poll every 5-10 s
while True:
    response = requests.get(
        'https://api.sociaro.com/v1/byteplus/contents/generations/tasks/' + job_id,
        headers={
            'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
        },
        timeout=120,
    )
    response.raise_for_status()
    result = response.json()
    status = result['status']
    if status == 'succeeded':
        break
    if status not in ('queued', 'running'):
        raise RuntimeError(result)
    time.sleep(5)
print(result)

# 3. collect — the opaque id IS the credential, no header needed
response = requests.get(
    result['media_url'],
    timeout=120,
)
response.raise_for_status()
Path('out.mp4').write_bytes(response.content)
```

JavaScript

```javascript
// Run as an .mjs file with Node.js 22 or later.
import { readFile, writeFile } from "node:fs/promises";
let jobId;
let result;

// 1. submit — the id comes back as `id`. There is NO `job_id` on THIS response
{
  // Save the complete request body in request.json.
  const response = await fetch("https://api.sociaro.com/v1/byteplus/contents/generations/tasks", {
    method: "POST",
    headers: {
      "Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
      "Content-Type": "application/json",
    },
    body: await readFile("request.json"),
  });
  if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
  const submitted = await response.json();
  jobId = submitted.id;
  console.log(submitted);
}

// 2. poll every 5-10 s
{
  while (true) {
    const response = await fetch("https://api.sociaro.com/v1/byteplus/contents/generations/tasks/" + jobId, {
      headers: {
        "Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
      },
    });
    if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
    result = await response.json();
    const status = result.status;
    if (status === "succeeded") break;
    if (!["queued", "running"].includes(status)) throw new Error(JSON.stringify(result));
    await new Promise(resolve => setTimeout(resolve, 5000));
  }
  console.log(result);
}

// 3. collect — the opaque id IS the credential, no header needed
{
  const response = await fetch(result.media_url);
  if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
  await writeFile("out.mp4", new Uint8Array(await response.arrayBuffer()));
}
```

Images use `POST /v1/byteplus/images/async` and its poll in the same shape, and the faster models
also answer synchronously at `POST /v1/byteplus/images/generations` — one request, the picture in
the response. A model whose render outlasts the gateway's ~2-minute ceiling is refused there by
name, telling you to use the async route.

## Reading the poll

**Two differences will bite a client written against the poll-style routes.** The SUBMIT returns
`id`, not `job_id` — code reading `job_id` there gets nothing and cannot poll at all. And `status`
is the VENDOR'S vocabulary: `running`, `succeeded`, `failed` — not `processing`, `completed`,
`failed`. A check for `completed` on this route never becomes true, which reads as a job that never
finishes rather than as an error.

The POLL response does carry `job_id` beside the vendor's `id`, as a convenience, and it returns
the vendor's whole body — around twenty fields — rather than the five-field shape the other routes
use. Gate on `status` rather than on the poll's HTTP code.

**Prefer `media_url` over the vendor's raw link.** Both are returned: `content.video_url` (or
`data[].url` for images) is theirs, kept for compatibility and due to be removed once nobody reads
it; `media_url` is ours. Ours points at our host, hides the vendor's storage, and expires. A second
asset arrives on the same terms — `return_last_frame` gives `content.last_frame_url` with
`last_frame_media_url` beside it.

## Collecting the result

`media_url` is a **capability**: the opaque id is the credential, so no `Authorization` header is
needed and anyone holding the link can fetch it. It **expires within the hour** — download rather
than store the link.

## Rules the gateway adds

Your key must be granted this model — `403` otherwise — and either spelling satisfies the grant:
our catalogue id or the vendor's own native one.

Because this is a pass-through, unknown fields go to the generator rather than being refused here,
and it is the generator that decides. The exception is `resolution`, which we check ourselves: an
unsupported tier is silently ignored upstream, so you would ask for the higher one, be handed a
lower one, and be charged. A tier we cannot price is refused at submit, before any money is spent,
with a message naming the ones this model has.

Ranges and enums are the generator's own, so an out-of-range value comes back as its rejection, in
its wording and with its numbers.

## Pricing

| Billable unit and options | Rate (USD) |
| --- | --- |
| per 1M tokens 480p | $11.77 |
| per 1M tokens 480p, with input video | $7.04 |
| per 1M tokens 720p | $11.77 |
| per 1M tokens 720p, with input video | $7.04 |
| per 1M tokens 1080p | $12.87 |
| per 1M tokens 1080p, with input video | $7.7 |
| per 1M tokens 4K | $5.17 |
| per 1M tokens 4K, with input video | $3.19 |
| per second of output video 480p approx., 16:9 | $0.11308 |
| per second of input and output video 480p, with input video approx., 16:9 | $0.067637 |
| per second of output video 720p approx., 16:9 | $0.254232 |
| per second of input and output video 720p, with input video approx., 16:9 | $0.152064 |
| per second of output video 1080p approx., 16:9 | $0.625482 |
| per second of input and output video 1080p, with input video approx., 16:9 | $0.37422 |
| per second of output video 4K approx., 16:9 | $1.005048 |
| per second of input and output video 4K, with input video approx., 16:9 | $0.620136 |
| minimum per job 480p, with input video for a 4 s output; more for a longer one | $0.513676 |
| minimum per job 720p, with input video for a 4 s output; more for a longer one | $1.155538 |
| minimum per job 1080p, with input video for a 4 s output; more for a longer one | $2.844258 |
| minimum per job 4K, with input video for a 4 s output; more for a longer one | $4.713182 |

- Metered in tokens, so the charge follows the frames rendered; the per-second figures are an estimate for 16:9.
- A job with input video is metered at the with-video rate, and is charged at least the minimum per job in its own row.
- Leaving out resolution gives 720p.
- A draft bills at the 480p rates; the final made from a draft bills at the 1080p or 4K rates, and at the with-video rates when the draft had input video.

[View this model in the pricing catalogue](https://sociaro.com/pricing?model=bytedance%2Fseedance-2.5). Your [billing logs](https://docs.sociaro.com/billing/index.md) show the actual charge for each request.
