Skip to content
SETU by SUPREME AI

Models and voice

Speech and transcription

Text to speech in Nepali, Hindi and English, and speech to text.

Text to speech: POST /v1/audio/speech

Needs the audio:speech scope. The response is the audio file. Billed by length, only when audio is produced.

FieldNotes
inputRequired. The text to speak.
languageOptional language code such as ne, hi or en.
voiceOptional voice name.
speedOptional.
response_formatwav, mp3, opus, aac, flac or pcm.
curl https://setu.supremeai.services/api/setu/v1/audio/speech \
  -H "Authorization: Bearer $SETU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "input": "नमस्ते! तपाईंलाई कस्तो छ?", "language": "ne", "response_format": "mp3" }' \
  --output hello.mp3

Speech to text: POST /v1/audio/transcriptions

Needs the audio:transcribe scope. Billed by file size (about one minute per MB).

Field (multipart)Notes
fileRequired. Up to 15 MB.
languageOptional language code such as ne, hi or en.
response_formatjson, text or verbose_json.
curl https://setu.supremeai.services/api/setu/v1/audio/transcriptions \
  -H "Authorization: Bearer $SETU_API_KEY" \
  -F file=@voice-note.webm \
  -F language=ne \
  -F response_format=json

Images

POST /v1/images/generations is built but switched off for now; calls answer 503 media_disabled.