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

# GPT Audio Mini

> GPT Audio Mini | Chat Completions 音訊輸出

Chat Completions 音訊輸出 · `gpt-audio-mini`

使用此完整 MixRoute 模型 ID 選擇路由。

`POST /v1/chat/completions`

請在 [MixRoute 模型廣場](https://console.mixroute.ai/models) 確認金鑰分組的可用性。列入目錄不代表路由已開放。

> [!WARNING]
>
> 此請求格式需要目前的 MixRoute 分組已啟用該模型的計費設定。如傳回 `model_price_error`，請聯絡 MixRoute 支援；調整提示詞無法開通路由。

## 快速範例

執行前請設定 `MIXROUTE_API_KEY`。

```bash theme={null}
curl --fail-with-body --request POST 'https://api.mixroute.ai/v1/chat/completions' \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "gpt-audio-mini",
  "modalities": [
    "text",
    "audio"
  ],
  "audio": {
    "voice": "alloy",
    "format": "wav"
  },
  "messages": [
    {
      "role": "user",
      "content": "Say hello."
    }
  ],
  "max_completion_tokens": 128
}'
```

從 `choices[0].message.audio.data` 取得 Base64 音訊，再解碼為 WAV。

## 參數

| 欄位 | 說明 |
| - | - |
| `model` | `gpt-audio-mini`. 使用上方列出的完整模型 ID。 |
| `modalities` | 範例同時要求文字與音訊。 |
| `audio` | 音色與輸出音訊格式。 |
| `messages` | 範例中的輸入對話。 |

## API 參考

* [Chat Completions](https://mixroute.ai/docs/zh-Hant/api-reference/endpoint/chat-openai.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.