---
title: "Create speech"
method: POST
path: "/v1/audio/speech"
---

# Create speech

`POST /v1/audio/speech`

## Request body

- object
  - `model` string, required — The TTS model to use. Choose a current speech model from the [Models page](https://api.deerapi.com/pricing).
  - `input` string, required — The text to generate audio for. Maximum length is 4096 characters.
  - `voice` 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'fable' | 'onyx' | 'nova' | 'sage' | 'shimmer', required — The voice to use for speech synthesis.
  - `response_format` 'mp3' | 'opus' | 'aac' | 'flac' | 'wav' | 'pcm' — The audio output format.
  - `speed` number — The speed of the generated audio. Select a value between 0.25 and 4.0.

## Response `200`

The audio file content.

---

[API](https://skmtc.net/deerapi/apis/text-to-audio-api.md) · [All operations](https://skmtc.net/deerapi/apis/text-to-audio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deerapi/text-to-audio-api/versions/b6265ced74a1/schema)
