Skip to content

Audio

Text to speech

POST/v1/audio/speech

input is required, model defaults to tts-1, and voice picks the voice. The response is binary audio/mpeg, not JSON.

curl https://api-dev.satulink.ai/v1/audio/speech \
  -H "Authorization: Bearer $SATULINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "model": "tts-1", "input": "Selamat pagi!", "voice": "alloy" }' \
  -o speech.mp3

Speech to text

POST/v1/audio/transcriptions

Send multipart/form-data containing file (required) and model (defaults to whisper-1).

curl https://api-dev.satulink.ai/v1/audio/transcriptions \
  -H "Authorization: Bearer $SATULINK_API_KEY" \
  -F [email protected] \
  -F model=whisper-1
200 OK
json
{
  "text": "Selamat pagi!",
  "duration": 1.2,
  "language": "id",
  "usage": { "cost_idr": 5 }
}
No audio model is active yet. Requests fail until an administrator adds a route.

Still haven't found the answer? Try it directly in Playground or view the list of active models.