> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omnimux.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Public hosts only: console https://omnimux.ai/dashboard · API https://api.omnimux.ai · docs https://docs.omnimux.ai.
> Gateway auth is Authorization: Bearer sk-… on https://api.omnimux.ai/v1 (OpenAI-compatible Chat Completions and related paths).
> Discover pages from /llms.txt; full site dump /llms-full.txt; product skill /skill.md; docs search MCP /mcp. Prefer .md page URLs for Markdown.
> Default docs locale is en; zh mirrors the same relative paths. Do not invent model ids not present on live pricing or the complete API pages.

# Index TTS 声音克隆

> AutoDL Index-TTS 声音克隆 · model `indextts-2`

* 创建：`POST /v1/tasks/autodl`，`model` 为 `indextts-2`
* 轮询：`GET /v1/tasks/{task_id}`（产物通过 `GET /v1/tasks/{task_id}/artifacts` 获取）
* 任务专属通道，支持参考音频声音克隆与精细化情绪控制
* 推荐：如需 3 秒极速出音，可优先使用官方主力模型 `seed-audio-1.0` 的声音克隆模式

## 身份

| 字段    | 值                  |
| ----- | ------------------ |
| 系列    | 音频系列               |
| 品牌    | Index TTS / AutoDL |
| model | `indextts-2`       |

## 接口

| 方法     | 路径                              |
| ------ | ------------------------------- |
| `POST` | `/v1/tasks/autodl`              |
| `GET`  | `/v1/tasks/{task_id}`           |
| `GET`  | `/v1/tasks/{task_id}/artifacts` |

Base URL：`https://api.omnimux.ai`

## 鉴权

| 名称              | 位置     | 类型     | 必填 | 说明                       |
| --------------- | ------ | ------ | -- | ------------------------ |
| `Authorization` | header | string | 是  | `Bearer sk-...`（API Key） |

## 请求体

| 字段                   | 类型     | 必填 | 说明                      |
| -------------------- | ------ | -- | ----------------------- |
| `model`              | string | 是  | 固定为 `indextts-2`        |
| `prompt_text`        | string | 是  | 要朗读合成的台词文本              |
| `prompt_simple`      | string | 是  | 音色参考音频链接（支持公网 URL）      |
| `emo_control_method` | string | 是  | 情绪控制方式，推荐 `"与音色参考音频相同"` |
| `emo_happy`          | number | 否  | 开心情绪强度 \[0, 1]，如 `0.5`  |
| `emo_sad`            | number | 否  | 悲伤情绪强度 \[0, 1]          |
| `emo_angry`          | number | 否  | 愤怒情绪强度 \[0, 1]          |

## 响应

### 200（创建）

| 字段               | 类型     | 说明            |
| ---------------- | ------ | ------------- |
| `id` / `task_id` | string | 任务单号          |
| `status`         | string | `queued`（排队中） |

### 轮询产物

任务完成后通过 `GET /v1/tasks/{task_id}/artifacts` 提取最终生成的 WAV 音频直链。

<Panel>
  <RequestExample>
    ```bash cURL theme={null}
    curl --request POST \
      --url https://api.omnimux.ai/v1/tasks/autodl \
      --header 'Authorization: Bearer <token>' \
      --header 'Content-Type: application/json' \
      --data '{
      "model": "indextts-2",
      "prompt_text": "你好，这是一段使用声音克隆生成的测试语音。",
      "prompt_simple": "https://example.com/voice.wav",
      "emo_control_method": "与音色参考音频相同"
    }'
    ```
  </RequestExample>

  <ResponseExample>
    ```json 200 theme={null}
    {
      "id": "task_sl8rnyewmb1O2ygKljRFnSIFnnmUSdeu",
      "task_id": "task_sl8rnyewmb1O2ygKljRFnSIFnnmUSdeu",
      "model": "indextts-2",
      "status": "queued",
      "created_at": 1789704195
    }
    ```
  </ResponseExample>
</Panel>
