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

# TTS-1

TTS-1 is a text-to-speech model provided by OpenAI that synthesizes text into speech.

The `tts-1` model has lower latency, but its audio quality is not as high as that of the `tts-1-hd` model.

### Model parameters

* Model IDs: `tts-1`/`tts-1-hd`/`gpt-4o-mini-tts`
* Model pricing: See the model details pages: [TTS-1](https://geekai.co/models/tts-1), [TTS-1-HD](https://geekai.co/models/tts-1-hd), and [GPT-4o-Mini TTS](https://geekai.co/models/gpt-4o-mini-tts)
* Endpoint: `https://geekai.co/api/v1/audio/speech`
* Model parameters: See the [Text-to-speech API guide](https://docs.geekai.co/en/api/audio/texttospeech.md)
* API authentication: [Get an API key](https://geekai.co/user/api_keys)

> [!NOTE]
>
> Also see the [official TTS-1 API documentation](https://developers.openai.com/api/docs/guides/text-to-speech).

### Pricing

TTS-1 is billed according to the number of characters in the text to be converted to speech. The pricing is as follows:

| Model | Price (CNY/million characters) |
| - | - |
| tts-1 | 112.50 |
| tts-1-hd | 225.00 |

GPT-4o-Mini TTS is billed according to the duration of the generated speech. The pricing is as follows:

| Model | Price (CNY/minute) |
| - | - |
| gpt-4o-mini-tts | 0.112 |

When using GeekAI's [low-cost proxy channels](https://docs.geekai.co/en/docs/model_price.md), multiply the listed price for each parameter by its corresponding discount factor. For example, with the high-availability channel, the discount factor is `0.5`. Converting 10,000 characters to speech with `tts-1` would cost `112.50 x 10000 / 1000000 x 0.5 = 0.5625` yuan. Apply the same calculation to other parameters.

### Example

```bash theme={null}
curl https://geekai.co/api/v1/audio/speech \
  -H "Authorization: Bearer $GEEKAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1",
    "input": "Today is a wonderful day to build something people love!",
    "voice": "coral",
    "instructions": "Speak in a cheerful and positive tone."
  }' \
  --output speech.mp3
```

By default, the model returns the generated audio as a binary MP3 file. Use the `response_format` parameter to specify the output format. The available values are:

* `mp3`
* `opus`
* `aac`
* `flac`
* `wav`
* `pcm`

For the fastest response, `wav` or `pcm` is recommended.

You can also use the `voice` parameter to specify the voice ID for the audio. TTS-1 and TTS-1-HD support the following voices:

* `alloy`
* `ash`
* `coral`
* `echo`
* `fable`
* `onyx`
* `nova`
* `sage`
* `shimmer`

GPT-4o-Mini TTS adds the following voices to those listed above:

* `ballad`
* `verse`
* `marin`
* `cedar`

> [!NOTE]
>
> The `tts-1`, `tts-1-hd`, and `gpt-4o-mini-tts` models are deprecated and will be discontinued on January 6, 2027.


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