Skip to content

DocsAPI reference

Speech

POST /v1/audio/speech — natural text to speech in 10 languages with Qwen3-TTS on your own GPU, in OpenAI's speech format.

HTTP
POST https://osarai.xyz/v1/audio/speech

Turns text into spoken audio in OpenAI's speech format. Deploy Qwen3-TTS 1.7B CustomVoice (qwen3-tts-1.7b): natural speech in 10 languages with preset voices.

Request

Terminal
curl "https://osarai.xyz/v1/audio/speech" \
  -H "Authorization: Bearer $OSARAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3-tts-1.7b",
    "input": "Welcome to Osarai. This voice runs on a GPU of your own.",
    "voice": "Vivian",
    "response_format": "wav"
  }' --output welcome.wav
FieldNotes
modelqwen3-tts-1.7b
inputThe text to speak
voiceA preset voice (below)
response_formatwav, mp3, flac, opus, aac or pcm

The response body is the audio file itself, with a matching Content-Type.

Voices

VoiceVoiceVoice
VivianSerenaUncle_Fu
DylanEricRyan
AidenOno_AnnaSohee

Every voice speaks every supported language; the language follows the text. Try them in the dashboard's playground before you pick one.