Audio

Generate Speech from Text

Generate speech from text using the specified voice and model.

This endpoint synchronously generates audio and returns the binary data directly. The request will block until the TTS generation is complete.

post/v1/audio/text-to-speech/{voice_id}

Request

Path parameters

voice_idstring required

Voice ID to use for TTS generation

Headers

x-api-keystring required

API Key for authentication

Request body

textstring required

The text to convert to speech

model'mirage-audio-1' required

TTS model to use for generation

Example request

{
  "text": "Hello, welcome to Mirage!",
  "model": "mirage-audio-1"
}

Response

Returns the generated audio file as binary data

unknown required

Changes

No recorded changes to this operation across all 15 revisions of this API.