Create speech
create_speechConvert text into spoken audio using text-to-speech. Select voice, model, speed, and format to produce speech from written input.
Instructions
Create speech Generates audio from the input text (Text-to-Speech).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Text to synthesize. | |
| model | No | TTS model. Query GET /v1/models?recommended_for=tts for the current shortlist. | tts-1 |
| speed | No | Speech speed for model families that support it. | |
| voice | No | Voice selector for OpenAI-compatible, Gemini, xAI, and MiniMax-compatible routes. Some MiniMax routes also accept voice_id. | |
| prompt | No | Optional speaking style prompt for Gemini TTS models. | |
| voice_id | No | Provider-native voice selector for MiniMax-compatible speech models. | |
| temperature | No | Sampling temperature for Gemini-compatible TTS routes. | |
| instructions | No | Optional style or delivery instructions for OpenAI-compatible TTS models that support them. | |
| language_code | No | Optional language code for Gemini, xAI, and compatible TTS routes. | |
| stream_format | No | TokenLab delivery format. stream_format=sse is not supported for tts-1 or tts-1-hd. | audio |
| response_format | No | Audio format. Common values include mp3, opus, aac, flac, wav, and pcm. Supported values vary by model family. |