Speech-to-Text Rest API
Send an audio file, get the transcript back in the same HTTP response. Use it for short clips, voice commands, and quick testing. For anything longer than 30 seconds, use the Batch API.
Not sure whether to use REST, Batch, or Streaming? See Which API to Use for a side-by-side comparison of limits, latency, and features.
Saaras: State-of-the-Art Speech Recognition (Recommended)
Saaras is our state-of-the-art speech recognition family with flexible output formats. It supports multiple modes for different use cases: transcribe, translate, verbatim, transliterate, and codemix.
Saaras v4 is the default model and the one to use for new integrations. It adds Global English support and keyterm prompting. Saaras v3 is legacy; always set model="saaras:v4". Learn more about Saaras.
Output Modes
Code Examples
The examples below use saaras:v4, the default model. Pass keyterms to bias recognition toward specific names, places, brands, or technical terms.
keyterms is supported only on saaras:v4. Up to 50 terms, 64 characters each. See Keyterm Prompting.
Check out our detailed API Reference to explore all available options.
Preparing Your Audio
Most failed STT requests are caused by the audio itself, not the API call. Run through this checklist before uploading:
Need Saaras v4 to recognize specific names, places, brands, or technical terms? Pass a keyterms list to bias recognition. See Keyterm Prompting.
Legacy Model (Deprecated)
The model below is deprecated. Do not use it. Use Saaras v4 instead.
Saaras v2.5 (speech-to-text-translate endpoint)
Saaras v2.5 was served by the separate /speech-to-text-translate endpoint, which translates speech directly to English. It is deprecated. To translate speech to English, use Saaras v4 with mode="translate" on /speech-to-text (see the code examples above).
API Response Format
Speech to Text Transcription Response
Speech to Text Translation Response
Leave language_code out (or send unknown) to auto-detect the source language. See Language codes for the full list.
Error Responses
Errors return a JSON object with an error field (message, code, request_id). The exception is a request for a deprecated model, or for a model this endpoint doesn’t support (for example a realtime-only model), which returns 400 with a {"detail": "..."} body instead. The full error-code table, retry guidance, and SDK exception reference live on the central Errors & Troubleshooting page.
Errors specific to this endpoint:
Error Handling Code Example
Next Steps
Need help? Ask on Discord.