audio

Text-to-speech

Convert text to spoken audio. Supports OpenAI voices (tts-1, tts-1-hd) and ElevenLabs voices. Returns binary audio.

post/audio/speech

Request

  • Base URL
    https://api.krater.ai/v1
  • Auth
    HTTP bearer

Request body

inputstring required

The text to convert to speech.

voicestring

Voice name (OpenAI voices like alloy) or ElevenLabs voice ID.

modelstring

TTS model.

speednumber

Playback speed multiplier.

Example request

{
  "voice": "alloy",
  "model": "tts-1"
}

Response

Binary audio data.

Changes

No recorded changes to this operation across all 1 revision of this API.