# Seed Audio 1.5 (https://reapi.ai/docs/seed-audio-1-5)

Seed Audio 1.5 is ByteDance's multimodal audio generation model for professional video, film, podcast, and audiobook production. On reAPI, Seed Audio 1.5 is exposed through four task-specific model IDs on `POST /v1/audio/generations`—supporting up to 6 minutes (360 seconds) of output per request, full-element `[MM:SS]` timeline cues, video and multi-voice referencing, 30-language voice-preserving video dubbing, and natural-language multi-track separation. See the [Seed Audio 1.5 model page](/models/seed-audio-1-5) for live per-minute pricing and the interactive playground.

## Quick example

### cURL (Text to Audio)

    ```bash
    curl -X POST https://api.reapi.ai/v1/audio/generations \
      -H 'Authorization: Bearer YOUR_API_KEY' \
      -H 'Content-Type: application/json' \
      -d '{
        "model": "seed-audio-1-5-text-to-audio",
        "prompt": "[00:00] Soft rain taps against a studio window as warm lo-fi piano enters. [00:02] Host (calm baritone): \"Welcome back to Midnight Desk. Tonight we test six-minute scene audio.\"",
        "output_format": "mp3"
      }'
    ```

### cURL (Video Dubbing)

    ```bash
    curl -X POST https://api.reapi.ai/v1/audio/generations \
      -H 'Authorization: Bearer YOUR_API_KEY' \
      -H 'Content-Type: application/json' \
      -d '{
        "model": "seed-audio-1-5-video-dubbing",
        "video_url": "https://cdn.example.com/interview-clip.mp4",
        "target_language": "ja",
        "output_format": "wav"
      }'
    ```

### Python

    ```python
    import time
    import requests

    API_KEY = "YOUR_API_KEY"
    HEADERS = {
        "Authorization": f"Bearer {API_KEY}",
        "Content-Type": "application/json",
    }

    submit = requests.post(
        "https://api.reapi.ai/v1/audio/generations",
        headers=HEADERS,
        json={
            "model": "seed-audio-1-5-video-to-audio",
            "prompt": '[00:00] Quiet coastal wind. [00:02] Narrator: "The lighthouse beam turns across the bay." [00:07] Distant waves break against stone.',
            "video_url": "https://cdn.example.com/scene-clip.mp4",
            "reference_audio_urls": ["https://cdn.example.com/narrator-ref.mp3"],
            "output_format": "mp3",
        },
        timeout=60,
    )
    submit.raise_for_status()
    task_id = submit.json()["id"]

    while True:
        poll = requests.get(
            f"https://api.reapi.ai/v1/tasks/{task_id}?include=billing",
            headers={"Authorization": f"Bearer {API_KEY}"},
            timeout=30,
        )
        poll.raise_for_status()
        task = poll.json()
        if task["status"] in ("completed", "failed"):
            print(task)
            break
        time.sleep(3)
    ```

### Node.js

    ```javascript
    const auth = {
      Authorization: 'Bearer YOUR_API_KEY',
      'Content-Type': 'application/json',
    };

    const submit = await fetch('https://api.reapi.ai/v1/audio/generations', {
      method: 'POST',
      headers: auth,
      body: JSON.stringify({
        model: 'seed-audio-1-5-audio-separation',
        audio_url: 'https://cdn.example.com/full-mix.mp3',
        prompt: 'Separate lead vocals, acoustic guitar, and background rain.',
        output_format: 'wav',
      }),
    });
    if (!submit.ok) throw new Error(`HTTP ${submit.status}`);
    const { id: taskId } = await submit.json();

    for (;;) {
      const res = await fetch(
        `https://api.reapi.ai/v1/tasks/${taskId}?include=billing`,
        { headers: { Authorization: auth.Authorization } }
      );
      if (!res.ok) throw new Error(`HTTP ${res.status}`);
      const task = await res.json();
      if (task.status === 'completed' || task.status === 'failed') {
        console.log(task);
        break;
      }
      await new Promise((r) => setTimeout(r, 3000));
    }
    ```

### Go

    ```go
    package main

    import (
    	"encoding/json"
    	"fmt"
    	"net/http"
    	"strings"
    	"time"
    )

    func main() {
    	body := strings.NewReader(`{"model":"seed-audio-1-5-text-to-audio","prompt":"[00:00] Soft studio room tone. [00:01] Host: \"Welcome to the audio demo.\"","output_format":"mp3"}`)
    	req, err := http.NewRequest("POST", "https://api.reapi.ai/v1/audio/generations", body)
    	if err != nil {
    		panic(err)
    	}
    	req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
    	req.Header.Set("Content-Type", "application/json")
    	client := &http.Client{Timeout: 60 * time.Second}
    	res, err := client.Do(req)
    	if err != nil {
    		panic(err)
    	}
    	defer res.Body.Close()
    	if res.StatusCode != http.StatusOK {
    		panic(res.Status)
    	}
    	var task struct {
    		ID string `json:"id"`
    	}
    	if err := json.NewDecoder(res.Body).Decode(&task); err != nil {
    		panic(err)
    	}
    	fmt.Println(task.ID)
    }
    ```

## Endpoint and authentication

* **Submit task:** `POST https://api.reapi.ai/v1/audio/generations`
* **Poll status:** `GET https://api.reapi.ai/v1/tasks/TASK_ID` (append `?include=billing` to inspect exact millisecond billing evidence)

Send `Authorization: Bearer YOUR_API_KEY` and `Content-Type: application/json`. Keep your API key server-side. Each `POST` creates an independent task; if a network timeout leaves submission state uncertain, inspect your task history before resubmitting.

## Available models

| Model ID                          | Workflow                                                 | Input summary                                                                                    | Billing basis                                   |
| --------------------------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ----------------------------------------------- |
| `seed-audio-1-5-text-to-audio`    | Text / audio-ref / image-ref audio generation            | `prompt` (quoted speech required) + optional `reference_audio_urls` **or** `reference_image_url` | Generated `duration_ms` (per output minute)     |
| `seed-audio-1-5-video-to-audio`   | Video-synced dialogue, Foley, ambience & score           | `prompt` (quoted speech required) + `video_url` + optional `reference_audio_urls`                | Generated `duration_ms` (per output minute)     |
| `seed-audio-1-5-video-dubbing`    | 30-language video translation & voice-preserving dubbing | `video_url` + `target_language`                                                                  | Generated `duration_ms` (per output minute)     |
| `seed-audio-1-5-audio-separation` | Natural-language multi-track stem separation             | `audio_url` + optional `prompt` (no quote rule)                                                  | Summed `duration_ms` across all returned tracks |

## Request parameters

### `seed-audio-1-5-text-to-audio`

| Parameter              | Type         | Default  | Constraints & notes                                                                                                                                                                                         |
| ---------------------- | ------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `model`                | string       | Required | Must be `"seed-audio-1-5-text-to-audio"`.                                                                                                                                                                   |
| `prompt`               | string       | Required | `1–10,000` characters. Must include at least one quoted spoken segment (`"..."`, `“...”`, `「...」`, or `『...』`). Supports `@Audio1..@Audio6` speaker tags and `[MM:SS]` timeline cues.                       |
| `reference_audio_urls` | string\[]    | Optional | `1–6` public HTTP(S) MP3/WAV URLs (`2–30s` each, `<= 15 MB` each, `<= 180s` total). **Mutually exclusive with `reference_image_url`.**                                                                      |
| `reference_image_url`  | string (URL) | Optional | `1` public HTTP(S) image URL (`jpeg`, `png`, `webp`, `bmp`, `tiff`, `gif`, `heic`, `heif`; `<= 10 MB`; `300–6000 px` per side; aspect ratio `0.4–2.5`). **Mutually exclusive with `reference_audio_urls`.** |
| `output_format`        | string       | `"mp3"`  | `"mp3"` or `"wav"`.                                                                                                                                                                                         |

### `seed-audio-1-5-video-to-audio`

| Parameter              | Type         | Default  | Constraints & notes                                                                                                                                             |
| ---------------------- | ------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `model`                | string       | Required | Must be `"seed-audio-1-5-video-to-audio"`.                                                                                                                      |
| `prompt`               | string       | Required | `1–10,000` characters. Must include at least one quoted spoken segment (`"..."`, `“...”`, `「...」`, or `『...』`). Supports `@Audio1..@Audio6` and `[MM:SS]` cues. |
| `video_url`            | string (URL) | Required | Public HTTP(S) MP4 or MOV video URL (`4–360s`, `<= 200 MB`, `12–60 FPS`, `407,696–2,086,876` total pixels).                                                     |
| `reference_audio_urls` | string\[]    | Optional | `1–6` public HTTP(S) MP3/WAV voice reference URLs (`2–30s` each, `<= 15 MB` each, `<= 180s` total).                                                             |
| `output_format`        | string       | `"mp3"`  | `"mp3"` or `"wav"`.                                                                                                                                             |

### `seed-audio-1-5-video-dubbing`

| Parameter         | Type         | Default  | Constraints & notes                                                                                                |
| ----------------- | ------------ | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `model`           | string       | Required | Must be `"seed-audio-1-5-video-dubbing"`.                                                                          |
| `video_url`       | string (URL) | Required | Public HTTP(S) MP4 or MOV source video URL (`4–360s`, `<= 200 MB`, `12–60 FPS`, `407,696–2,086,876` total pixels). |
| `target_language` | string       | Required | One of the 30 supported BCP-47 language codes listed below.                                                        |
| `output_format`   | string       | `"mp3"`  | `"mp3"` or `"wav"`.                                                                                                |

### `seed-audio-1-5-audio-separation`

| Parameter       | Type         | Default  | Constraints & notes                                                                                                                                                               |
| --------------- | ------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `model`         | string       | Required | Must be `"seed-audio-1-5-audio-separation"`.                                                                                                                                      |
| `audio_url`     | string (URL) | Required | Public HTTP(S) MP3 or WAV audio URL (`2–360s`, `<= 90 MB`).                                                                                                                       |
| `prompt`        | string       | Optional | Plain-text separation instruction (`1–10,000` characters) naming target vocals, speakers, SFX, ambience, or composite tracks. Omit for default separation. No quoted-speech rule. |
| `output_format` | string       | `"mp3"`  | `"mp3"` or `"wav"`.                                                                                                                                                               |

All media inputs require public `http://` or `https://` URLs; base64 `data:` URIs are rejected. Unknown parameter keys are rejected with HTTP 400.

## Supported dubbing languages (`target_language`)

`seed-audio-1-5-video-dubbing` accepts the following 30 target language codes (typically translating Chinese or English source videos while preserving speaker voice, breaths, emotion, and timing):

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

## Task response and output shapes

A successful `POST /v1/audio/generations` returns:

```json
{
  "id": "task_example",
  "status": "processing",
  "model": "seed-audio-1-5-text-to-audio"
}
```

### Single-track completion (`text-to-audio`, `video-to-audio`, `video-dubbing`)

Polling `GET /v1/tasks/task_example?include=billing` returns:

```json
{
  "id": "task_example",
  "model": "seed-audio-1-5-text-to-audio",
  "status": "completed",
  "created_at": 1764662400,
  "output": {
    "audio_urls": [
      "https://cdn.reapi.ai/media/tasks/task_example/0.mp3"
    ],
    "format": "mp3",
    "duration_ms": 14820
  },
  "usage": {
    "credits": 38
  },
  "billing": {
    "source": "seed_audio_usage",
    "credits_exact": 37.05,
    "cost_usd": 0.03705,
    "duration_ms": 14820,
    "output_minutes": 0.247
  },
  "error": null
}
```

### Multi-track completion (`audio-separation`)

Completed separation tasks return both `output.audio_urls` and labeled `output.tracks[]` entries, with `output.duration_ms` equal to the sum of all returned track durations:

```json
{
  "id": "task_sep_example",
  "model": "seed-audio-1-5-audio-separation",
  "status": "completed",
  "created_at": 1764662400,
  "output": {
    "audio_urls": [
      "https://cdn.reapi.ai/media/tasks/task_sep_example/vocals.wav",
      "https://cdn.reapi.ai/media/tasks/task_sep_example/accompaniment.wav"
    ],
    "tracks": [
      {
        "type": "vocals",
        "url": "https://cdn.reapi.ai/media/tasks/task_sep_example/vocals.wav",
        "duration_ms": 30000
      },
      {
        "type": "accompaniment",
        "url": "https://cdn.reapi.ai/media/tasks/task_sep_example/accompaniment.wav",
        "duration_ms": 30000
      }
    ],
    "format": "wav",
    "duration_ms": 60000
  },
  "usage": {
    "credits": 50
  },
  "error": null
}
```

Note: this endpoint delivers audio tracks only (`mp3` or `wav`). It does not return muxed video files or SRT/JSONL subtitle files; mux dubbed audio tracks onto your source video stream in FFmpeg or your editor.

## Billing and settlement

See the [Seed Audio 1.5 pricing table](/models/seed-audio-1-5#pricing) for live per-minute rates across all four model IDs.

* **Upfront reservation:**
  * `seed-audio-1-5-text-to-audio` reserves the 6-minute (`360s`) generation ceiling.
  * `seed-audio-1-5-video-to-audio` and `seed-audio-1-5-video-dubbing` probe `video_url` best-effort and reserve `clamp(ceil(duration + 2), 1, 360)` seconds (falling back to `360s` if unprobed).
  * `seed-audio-1-5-audio-separation` probes `audio_url` best-effort and reserves `clamp(ceil(duration + 2) * 4, 4, 2160)` seconds across stems (falling back to `1440s` if unprobed).
* **Exact millisecond settlement:** on completion, billing settles to `ceil(duration_ms * minute_rate_micro_usd / 60_000)` micro-USD (summed across all returned tracks for separation) and refunds any unused reservation automatically.
* **Failed tasks:** rejected or failed tasks refund 100% of reserved credits automatically.

## Common errors and operational notes

* **Missing quoted speech (`400`):** `seed-audio-1-5-text-to-audio` and `seed-audio-1-5-video-to-audio` require at least one quoted spoken line (`"..."`, `“...”`, `「...」`, or `『...』`) inside `prompt`.
* **Conflicting references (`400`):** do not pass `reference_image_url` and `reference_audio_urls` in the same `seed-audio-1-5-text-to-audio` request.
* **Media spec violations (`400` / task failed with refund):** verify public HTTP(S) accessibility, container format (`MP4`/`MOV` for video, `MP3`/`WAV` for audio), duration ceilings (`4–360s` video, `2–360s` separation audio, `2–30s` each / `<= 180s` total reference audio), and pixel bounds (`407,696–2,086,876` px for video; `300–6000` px/side for image).
* **Async-only design:** Seed Audio 1.5 is built for multi-second to six-minute batch audio production, not low-latency streaming voice chat.