> ## 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 | Audio output in Chat Completions

Audio output in Chat Completions · `gpt-audio-mini`

Use this exact MixRoute model ID to select the route.

`POST /v1/chat/completions`

Check availability in the [Model Marketplace](https://console.mixroute.ai/models) for your API key's group. A catalog listing does not guarantee that a route is enabled.

> [!WARNING]
>
> This request format requires pricing to be enabled for this model in your MixRoute group. If the API returns `model_price_error`, contact MixRoute support; changing the prompt does not make the route available.

## Quick Example

Set `MIXROUTE_API_KEY` before running the example.

```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
}'
```

Read Base64 audio from `choices[0].message.audio.data` and decode it as WAV.

## Parameters

| Field | Description |
| - | - |
| `model` | `gpt-audio-mini`. Use the exact model ID shown above. |
| `modalities` | Use text and audio for this audio example. |
| `audio` | Voice and output audio format. |
| `messages` | Input conversation in the example. |

## API Reference

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


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