> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.beatapi.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.beatapi.io/_mcp/server.

# Seed Audio 1.5

> ByteDance Seed Audio 1.5 on BeatAPI — dialogue, sound effects and music from a scene description, a soundtrack for a video, a video dubbed into 30 languages, or a recording split into voice, effects and music; billed per second of audio, $0.05 to $0.90 a minute by operation.

ByteDance's Seed Audio 1.5 on the [Audio API](/audio-api): `POST https://api.beatapi.io/v1/audios/tasks`. Describe a scene with the words to be spoken and get one track with the dialogue, sound effects and music together; make the soundtrack for a video; dub a video's speech into another language; or split a recording into its voice, effects and music. One model, four operations chosen with `action`, billed per second of the audio it returns.

> **Warning**
>
> **Beta.** Seed Audio 1.5 is served through a third-party route, not through ByteDance's own API. A call may queue longer than usual or be briefly unavailable, and the options below may change. A task that fails is not billed.

## Make audio from a description

```bash
curl https://api.beatapi.io/v1/audios/tasks \
  -H "Authorization: Bearer $BEATAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: seed-audio-001" \
  -d '{
    "model": "seed-audio-1.5",
    "prompt": "A small cafe at night, rain on the windows, soft jazz in the background. 00:00-00:03 Woman (tired): \"Another late shift.\" 00:03-00:06 Man (warm): \"Coffee is on me tonight.\""
  }'
```

The reply is `201` with the task in `data`, as for every audio model. Save `data.id` and poll the task until `status` is `succeeded` or `failed`; in our tests a task finished in 10 to 25 seconds:

```bash
curl https://api.beatapi.io/v1/tasks/task_8Qm4Tz \
  -H "Authorization: Bearer $BEATAPI_API_KEY"
```

`action` defaults to `generate`, so the request above leaves it out.

## Actions

| `action`             | Required                       | Optional                                               | Returns                                                                                     |
| -------------------- | ------------------------------ | ------------------------------------------------------ | ------------------------------------------------------------------------------------------- |
| `generate` (default) | `prompt`                       | `audio_urls` or `image_url`, not both; `output_format` | One track: dialogue, sound effects and music from the description.                          |
| `video_to_audio`     | `prompt`, `video_url`          | `audio_urls`, `output_format`                          | One track for the video, as long as the video.                                              |
| `video_dubbing`      | `video_url`, `target_language` | `output_format`                                        | One track: the video's Chinese or English speech in another language, as long as the video. |
| `separate`           | `audio_url`                    | `prompt`, `output_format`                              | Several tracks, each named `speaker`, `sfx` or `bgm`.                                       |

Each action takes only its own fields. A field the action does not read is refused with `400 bad_request`, never ignored: `video_dubbing` takes no `prompt`, and `separate` takes no `audio_urls`. Seed Audio does not work on an earlier task, so there is no `source_task_id`.

## Write the prompt

`prompt` is up to 10,000 characters and is required for `generate` and `video_to_audio`.

* **Quote the words to be spoken.** A prompt for `generate` or `video_to_audio` must contain the exact line, in quotes: `A narrator says: "Welcome back."` A prompt that describes only music or sound effects, with nothing to say, makes the task fail. A failed task is not billed.
* **Place each line on a timeline** when there is more than one: `00:02-00:05 Woman (surprised): "What are you doing here?"`. The words in brackets set the delivery.
* **Describe the scene around the words**: the place, the sounds and the music, as in the example above.

For `separate`, `prompt` is optional and says which tracks to make, for example `Only the voice and the background music`.

## Reference voices or a scene image

`generate` can take reference material, one kind per call:

* `audio_urls`: 1 to 6 recordings of the voices to use, MP3 or WAV, each 2–30 seconds and at most 15 MB, 180 seconds in total. Say in `prompt`, in the same order, which speaker uses which recording.
* `image_url`: one picture of the scene, JPEG, PNG, WEBP, BMP, TIFF, GIF, HEIC or HEIF, under 10 MB, each side 300–6000 px, width ÷ height between 0.4 and 2.5.

Sending both is refused with `400 bad_request`. `video_to_audio` takes `audio_urls` too, with the same limits.

```json
{
  "model": "seed-audio-1.5",
  "prompt": "Two friends on a windy beach. The first voice says: \"Look at those waves.\" The second voice answers: \"Let's get closer.\"",
  "audio_urls": [
    "https://example.com/voices/first.mp3",
    "https://example.com/voices/second.wav"
  ]
}
```

## Make the soundtrack for a video

`video_to_audio` makes the audio for a silent or muted video: dialogue, effects and music that follow the picture. The video is MP4 or MOV, 4–360 seconds, at most 200 MB, 12–60 fps. BeatAPI reads the video before the task starts: a video it cannot read, or one outside these limits, is refused with `400 bad_request` and no task is created. Write `prompt` as for `generate`, with the words in quotes. The track is as long as the video.

```json
{
  "model": "seed-audio-1.5",
  "action": "video_to_audio",
  "video_url": "https://example.com/clips/kitchen.mp4",
  "prompt": "A busy kitchen, pans sizzling. The chef shouts: \"Two more plates, now!\""
}
```

## Dub a video

`video_dubbing` speaks the Chinese or English speech of a video in `target_language`. Send only `video_url` and `target_language`; there is no `prompt`. The video has the same limits as for `video_to_audio` and is checked the same way before the task starts. The video's sound and picture must be the same length, or the task fails. The track is as long as the video.

```json
{
  "model": "seed-audio-1.5",
  "action": "video_dubbing",
  "video_url": "https://example.com/clips/interview.mp4",
  "target_language": "ja"
}
```

The 30 values of `target_language`:

| Code    | Language            | Code    | Language              | Code    | Language        |
| ------- | ------------------- | ------- | --------------------- | ------- | --------------- |
| `zh`    | Chinese             | `en`    | English               | `ja`    | Japanese        |
| `ko`    | Korean              | `de`    | German                | `fr`    | French          |
| `pt-BR` | Portuguese (Brazil) | `pt-PT` | Portuguese (Portugal) | `es-ES` | Spanish (Spain) |
| `es-MX` | Spanish (Mexico)    | `it`    | Italian               | `ru`    | Russian         |
| `nl`    | Dutch               | `pl`    | Polish                | `tr`    | Turkish         |
| `sv`    | Swedish             | `fi`    | Finnish               | `da`    | Danish          |
| `cs`    | Czech               | `hu`    | Hungarian             | `el`    | Greek           |
| `ro`    | Romanian            | `ar`    | Arabic                | `hi`    | Hindi           |
| `th`    | Thai                | `id`    | Indonesian            | `vi`    | Vietnamese      |
| `ms`    | Malay               | `fil`   | Filipino              | `no`    | Norwegian       |

## Split a recording

`separate` splits `audio_url` (MP3 or WAV, 2–360 seconds, at most 90 MB) into tracks named `speaker` (the voices), `sfx` (sound effects) and `bgm` (background music). BeatAPI reads the recording before the task starts: one it cannot read, or one shorter than 2 seconds, longer than 360 or larger than 90 MB, is refused with `400 bad_request` and no task is created.

```json
{
  "model": "seed-audio-1.5",
  "action": "separate",
  "audio_url": "https://example.com/recordings/street-scene.mp3"
}
```

## Fields

| Field             | Type             | Meaning                                                                                                                                                  |
| ----------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `model`           | string           | Required. `seed-audio-1.5`.                                                                                                                              |
| `action`          | string           | `generate` (default), `video_to_audio`, `video_dubbing` or `separate`.                                                                                   |
| `prompt`          | string           | 1–10,000 characters. Required for `generate` and `video_to_audio`, with the spoken words in quotes; optional for `separate`; refused by `video_dubbing`. |
| `audio_urls`      | array of strings | `generate` and `video_to_audio`. 1–6 HTTPS links to reference voices, in the order `prompt` names them.                                                  |
| `image_url`       | string           | `generate` only. One HTTPS link to a reference image of the scene. Not with `audio_urls`.                                                                |
| `video_url`       | string           | Required for `video_to_audio` and `video_dubbing`. An HTTPS link to the video.                                                                           |
| `target_language` | string           | Required for `video_dubbing`. One of the 30 codes above.                                                                                                 |
| `audio_url`       | string           | Required for `separate`. An HTTPS link to the recording to split.                                                                                        |
| `output_format`   | string           | `mp3` (default) or `wav`. Every action takes it.                                                                                                         |
| `callback_url`    | string           | Optional completion callback, as on every task; see [the Audio API](/audio-api#completion-callback).                                                     |

Every link must be HTTPS. The music fields (`lyrics`, `style`, `source_task_id` and the rest) and the Seed TTS fields (`voice`, `language` and the rest) are refused with `400 bad_request`.

## Price list

Every action is billed per second of the audio it returns; for `separate`, the seconds of all its tracks are added together. Prices are in USD.

| `action`         | Per minute                                       | Per second      |
| ---------------- | ------------------------------------------------ | --------------- |
| `generate`       | \$0.15                                           | \$0.0025        |
| `video_to_audio` | \$0.90                                           | \$0.015         |
| `video_dubbing`  | \$0.60                                           | \$0.01          |
| `separate`       | \$0.05 per minute of tracks, all tracks together | about \$0.00083 |

* Six seconds of dialogue from `generate`: 6 × \$0.0025 = \$0.015.
* The soundtrack for a 30-second video: 30 × \$0.015 = \$0.45.
* A one-minute video dubbed into Japanese: \$0.60.
* A two-minute recording split into three tracks: 3 × 120 seconds = 6 minutes of tracks × \$0.05 = \$0.30. Split into three tracks, each minute of input costs about \$0.15.

The length is known only when the task is done, so a task holds the price of the longest audio its action can return when you submit it, and settles on the seconds it returned: six minutes for `generate`, `video_to_audio` and `video_dubbing` (\$0.90, \$5.40 and \$3.60), and 18 minutes of tracks for `separate`, three tracks of six minutes (\$0.90). Your balance needs to cover the hold; the difference comes back when the task finishes, and a failed task is not billed. `GET /v1/pricing` lists the model with one row per action, each priced for one minute of audio; the `separate` row is one minute of tracks, all tracks together.

## The result

Each track is an MP3 (`audio/mpeg`), or a WAV when you asked for `wav`. `generate`, `video_to_audio` and `video_dubbing` return one track; `separate` returns one track per part, with its `name`. The files are `output.media[]` and `output.tracks[].audio_url`, and `output.url` is the first one. A track has no title, lyrics or length. The id of a single track is the task id; on `separate`, the task id followed by `-0`, `-1`, `-2`. Seed Audio has no follow-up actions. Files stay available for at least 72 hours, like every [audio result](/audio-api#files-and-expiry).

```json
{
  "data": {
    "id": "task_8Qm4Tz",
    "status": "succeeded",
    "task_kind": "audio",
    "media_type": "audio",
    "model": "seed-audio-1.5",
    "output": {
      "media": [
        { "type": "audio", "url": "https://media.beatapi.io/outputs/task_8Qm4Tz/0.mp3", "mime_type": "audio/mpeg" },
        { "type": "audio", "url": "https://media.beatapi.io/outputs/task_8Qm4Tz/1.mp3", "mime_type": "audio/mpeg" },
        { "type": "audio", "url": "https://media.beatapi.io/outputs/task_8Qm4Tz/2.mp3", "mime_type": "audio/mpeg" }
      ],
      "url": "https://media.beatapi.io/outputs/task_8Qm4Tz/0.mp3",
      "r2_url": "https://media.beatapi.io/outputs/task_8Qm4Tz/0.mp3",
      "tracks": [
        { "id": "task_8Qm4Tz-0", "name": "speaker", "audio_url": "https://media.beatapi.io/outputs/task_8Qm4Tz/0.mp3" },
        { "id": "task_8Qm4Tz-1", "name": "sfx", "audio_url": "https://media.beatapi.io/outputs/task_8Qm4Tz/1.mp3" },
        { "id": "task_8Qm4Tz-2", "name": "bgm", "audio_url": "https://media.beatapi.io/outputs/task_8Qm4Tz/2.mp3" }
      ]
    }
  }
}
```

This is a `separate` result. The ids and URLs above are illustrative. A Seed Audio task cannot be the `source_task_id` of a music follow-up.

## Errors

| Message                                                                                         | Fix                                                                                                                                                                                                                 |
| ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `"prompt" is required for action generate`                                                      | `generate` and `video_to_audio` need a `prompt` with the words to be spoken.                                                                                                                                        |
| `"prompt" must describe the audio in words`                                                     | Send a description that is more than spaces.                                                                                                                                                                        |
| `prompt is not used by action video_dubbing; leave it out`                                      | Each action takes only its own fields; drop the one named.                                                                                                                                                          |
| `"audio_urls" and "image_url" cannot be combined; send reference voices or one reference image` | Send reference voices or one image, not both.                                                                                                                                                                       |
| A message starting `"action" must be one of:`                                                   | Use `generate`, `video_to_audio`, `video_dubbing` or `separate`.                                                                                                                                                    |
| A message starting `"target_language" must be one of:`                                          | Pick one of the 30 codes above.                                                                                                                                                                                     |
| A message starting `The video could not be read: video_url:`                                    | Send an MP4 or MOV at a public HTTPS URL whose host allows byte-range requests.                                                                                                                                     |
| A message starting `The recording could not be read: audio_url:`                                | Send an MP3 or WAV at a public HTTPS URL whose host allows byte-range requests.                                                                                                                                     |
| A `400` naming `video_url` or `audio_url` with its length, frame rate or size                   | Keep the video at 4–360 seconds, 12–60 fps and at most 200 MB, and the recording at 2–360 seconds and at most 90 MB.                                                                                                |
| A task that fails after it was accepted                                                         | Most often a prompt without quoted words, a reference voice or image outside the limits above, or a dubbing video whose sound and picture differ in length. Fix it and submit again; the failed task is not billed. |