---
title: "Generates audio from the input text."
method: POST
path: "/audio/speech"
tags: ["Audio"]
---

# Generates audio from the input text.

`POST /audio/speech`

## Request body

- CreateSpeechRequest
  - `model` union, required — One of the available [TTS models](/docs/models#tts): `tts-1` or `tts-1-hd`
    - string
    - 'tts-1' | 'tts-1-hd'
  - `input` string, required — The text to generate audio for. The maximum length is 4096 characters.
  - `voice` 'alloy' | 'ash' | 'coral' | 'echo' | 'fable' | 'onyx' | 'nova' | 'sage' | 'shimmer', required — The voice to use when generating the audio. Supported voices are `alloy`, `ash`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage` and `shimmer`. Previews of the voices are available in the [Text to speech guide](/docs/guides/text-to-speech#voice-options).
  - `response_format` 'mp3' | 'opus' | 'aac' | 'flac' | 'wav' | 'pcm' — The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, `wav`, and `pcm`.
  - `speed` number — The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is the default.

## Response `200`

OK

## Changes

- **2025-01-21** `47138a7dd8b9` — 3 info
  - added the new `ash` enum value to the request property `voice`
  - added the new `coral` enum value to the request property `voice`
  - added the new `sage` enum value to the request property `voice`
- **2025-01-21** `0d83ef8a5f65` — 3 breaking
  - removed the enum value `ash` of the request property `voice`
  - removed the enum value `coral` of the request property `voice`
  - removed the enum value `sage` of the request property `voice`
- **2025-01-17** `88f3bede7665` — 3 info
  - added the new `ash` enum value to the request property `voice`
  - added the new `coral` enum value to the request property `voice`
  - added the new `sage` enum value to the request property `voice`
- **2024-08-23** `5856f8b0c850` — 6 breaking, 2 warning, 6 info
  - removed `#/components/schemas/VoiceIdsShared, subschema #2` from the `voice` request property `anyOf` list
  - request property `voice` was restricted to a list of enum values
  - removed the enum value `gpt-4o-mini-tts` of the request property `model/anyOf[subschema #2]/`
  - removed the enum value `gpt-4o-mini-tts-2025-12-15` of the request property `model/anyOf[subschema #2]/`
  - …10 more

[Change history](https://skmtc.dev/openai/apis/openapi/changes/audio/speech/post.md)

---

[API](https://skmtc.dev/openai/apis/openapi.md) · [All operations](https://skmtc.dev/openai/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openai/openapi/revisions/96060afbb5b9/schema)
