TTS

Create speech

Synthesizes audio from the input text. Returns a raw audio bytestream in the requested format (e.g. mp3, pcm, wav).

post/audio/speech

Request body

inputstring required

Text to synthesize

modelstring required

TTS model identifier

response_format'mp3' | 'pcm'

Audio output format

session_idstring

A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.

speednumber double

Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers.

userstring

A unique identifier representing your end-user. Forwarded to Broadcast and private logging as the end-user id; never sent to the provider.

voicestring

Voice identifier (provider-specific).

Example request

{
  "input": "Hello world",
  "model": "mistralai/voxtral-mini-tts-2603",
  "response_format": "pcm",
  "speed": 1,
  "voice": "en_paul_neutral"
}

Response

Audio bytes stream

Changes

Changed in 39 of the 303 revisions of this API.124243

    • ○

      added the new optional request property //

      new-optional-request-property

    • ○

      added the new optional request property ///////

      new-optional-request-property

    • ○

      the request property /////// became optional

      request-property-became-optional

    • ○

      added image_url discriminator mapping keys to the / request property

      request-property-discriminator-mapping-added

    • ○

      added to the / request property oneOf list

      request-property-one-of-added

    • ○

      added the new optional request property //

      new-optional-request-property

    • ○

      added the new optional request property //

      new-optional-request-property

    • ○

      added the new optional request property //

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property //

      new-optional-request-property

    • ○

      added the new optional request property //

      new-optional-request-property