Generate audio from text input.
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer authentication header |
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model identifier (e.g., tts-1, tts-1-hd) |
| input | string | Yes | Text to convert to speech (max 4096 characters) |
| voice | string | Yes | Voice to use: alloy, echo, fable, onyx, nova, shimmer, ash, ballad, coral, sage, verse |
| response_format | string | No | Audio format: mp3, opus, aac, flac, wav, pcm. Default: mp3 |
| speed | float | No | Speed of generated audio (0.25 to 4.0). Default: 1.0 |