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

# POST /v1/audio/speech

> 文本转语音接口。

## 用途

用于把输入文本合成为语音。

## 请求

* Method: `POST`
* URL: `https://api.hubto.ai/v1/audio/speech`
* Auth: `Authorization: Bearer YOUR_API_KEY`
* Content-Type: `application/json`

## 最小请求体

```json theme={null}
{
  "model": "gpt-5.4-tts",
  "voice": "alloy",
  "input": "欢迎使用 HubTo。"
}
```

## 请求示例

```bash theme={null}
curl https://api.hubto.ai/v1/audio/speech \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-5.4-tts",
    "voice": "alloy",
    "input": "欢迎使用 HubTo。"
  }'
```

## 返回

成功时返回音频流或音频文件内容。
