> ## 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.

# TTS-1

> TTS-1 | Text to speech

Text to speech · `tts`

Use this exact MixRoute model ID to select the route.

`POST /v1/audio/speech`

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/audio/speech' \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --output speech.mp3 \
  --data '{
  "model": "tts",
  "input": "Hello.",
  "voice": "alloy",
  "response_format": "mp3"
}'
```

The response is audio, not JSON. The example writes it to `speech.mp3`.

## Parameters

| Field | Description |
| - | - |
| `model` | `tts`. Use the exact model ID shown above. |
| `input` | Input text. |
| `voice` | Voice used for speech output. |

## API Reference

* [Speech synthesis](https://mixroute.ai/docs/api-reference/endpoint/audio-speech.md)


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