Transcribe audio
Transcribe pre-recorded audio files with Odesa-1 via standard multipart/form-data uploads or chunked Server-Sent Events. Drop-in compatible with the OpenAI SDK.
https://api.spero.audio/v1/audio/transcriptionsInteractive request builder
Toggle parameters below to generate a ready-to-run request in curl, Python, or TypeScript.
Interactive builder
Configure your transcription request
curl https://api.spero.audio/v1/audio/transcriptions \
-H "Authorization: Bearer $SPERO_API_KEY" \
-F file=@call.wav \
-F model=odesa-1-pro \
-F language=en \
-F response_format=verbose_json \
-F smart_format=true \
-F 'prompt=PatientDesk, Metformin 500mg, Dr. Alvarez'Available models
| Model | License | Price | Best for |
|---|---|---|---|
odesa-1-pro | Closed API | $0.09/hr | Our most accurate English transcription model, built for noisy phone lines, fast speech, and domain names. |
odesa-1-fast | Apache-2.0 | $0.054/hr | Fast, high-accuracy open-weight English model (#1 Apache-2.0 on AA public splits) for production workloads. |
odesa-1-mini | Apache-2.0 | $0.036/hr | Small, ultra-fast open-weight English model that runs anywhere, from servers to a laptop. |
Need full benchmark breakdowns across all 7 public English splits? See Models & voices.
Request parameters
Send fields as multipart/form-data with an Authorization: Bearer sp_live_... header.
filebinaryrequiredmodelstringoptionaldefault odesa-1-proodesa-1-pro ($0.09/hr), odesa-1-fast ($0.054/hr), or odesa-1-mini ($0.036/hr). Optional odesa/ prefix is accepted.languagestringoptionaldefault enen, es, fr, de, zh, ja, ar, hi, tr) or auto for automatic language detection and code-switching. Defaults to en when omitted.response_formatstringoptionaldefault jsonjson (returns {"text": "..."}), verbose_json (includes duration, timestamped segments, and request metadata), or text (plain UTF-8 transcript). Must be json or omitted when stream=true.smart_formatbooleanoptionaldefault falsefalse keeps spoken wording as heard. Set true to format times (4:45 PM), phone numbers (555-0192), currency, percentages, dates, emails, and digits. See Formatting.transcription_modestringoptionaldefault verbatimverbatim preserves spoken fillers (“uh”, “um”) and repetitions; clean (aliases non_verbatim, non-verbatim) strips standalone fillers and accidental stutters; verbatim_latin outputs verbatim Latin script.promptstringoptionaldefault ""temperaturefloatoptionaldefault 0.0streambooleanoptionaldefault falsetrue, streams chunk-by-chunk Server-Sent Events (text/event-stream) with transcript.text.delta and transcript.text.done. For live microphone audio, use WS /v1/audio/stream instead.Code examples
curl https://api.spero.audio/v1/audio/transcriptions \
-H "Authorization: Bearer $SPERO_API_KEY" \
-F file=@call.wav \
-F model=odesa-1-pro \
-F language=en \
-F smart_format=true \
-F response_format=verbose_jsonResponse shapes
json (default)
{
"text": "Hi, my callback number is 555-0192 at 4:45 PM."
}verbose_json
Includes server-measured duration, timestamped segments, and processing metadata.
{
"task": "transcribe",
"language": "en",
"duration": 4.82,
"text": "Hi, my callback number is 555-0192 at 4:45 PM.",
"segments": [
{
"id": 0,
"start": 0.0,
"end": 4.82,
"text": "Hi, my callback number is 555-0192 at 4:45 PM."
}
],
"meta": {
"model": "odesa-1-pro",
"transcription_mode": "verbatim",
"smart_format": true,
"elapsed_s": 0.78
}
}Long-audio Server-Sent Events (stream=true)
For longer recordings (meetings, interviews, voicemails over 30 seconds), set stream=true to receive each decoded chunk as an SSE event (text/event-stream) as soon as it finishes, followed by a merged transcript.text.done event and [DONE].
curl -N https://api.spero.audio/v1/audio/transcriptions \
-H "Authorization: Bearer $SPERO_API_KEY" \
-F file=@long_meeting.mp3 \
-F model=odesa-1-pro \
-F stream=truedata: {"type":"transcript.text.delta","chunk_id":0,"start":0.0,"end":28.5,"delta":"Good morning everyone, thanks for joining the Q3 earnings review.","elapsed_s":0.84}
data: {"type":"transcript.text.delta","chunk_id":1,"start":26.0,"end":54.2,"delta":"Revenue grew 42% year over year to $18.4 million.","elapsed_s":1.61}
data: {"type":"transcript.text.done","text":"Good morning everyone, thanks for joining the Q3 earnings review. Revenue grew 42% year over year to $18.4 million.","duration":54.2,"elapsed_s":1.62}
data: [DONE]Response headers
| Header | Meaning |
|---|---|
X-Model | Canonical Odesa-1 model that processed the request. |
X-Audio-Seconds | Server-measured input audio duration in seconds (3 decimal places). |
X-Cost-USD | Exact prepaid charge deducted (per whole second ceiling, 1 s minimum). |
X-Request-Id | Unique ID (stt_...) recorded on your Requests page. |
X-Data-Retention | Always zero: audio, prompts, and transcripts stay strictly in memory. |
Production tips
- Compress long files before uploading: 60 minutes of uncompressed stereo WAV exceeds the 25 MiB HTTP ceiling. Mono 16 kHz Opus, M4A, MP3, or FLAC fits well under 25 MiB with zero accuracy loss.
- Use
smart_format=truefor UI and CRMs: Leave itfalsewhen you want raw spoken transcripts without automatic formatting. - Keep
prompttight: List 5 to 30 domain terms, names, or acronyms separated by commas rather than long instructions. - No charge on errors: Corrupt audio (
400), oversized uploads (413), or temporary service errors (503) cost $0.