Skip to content
Speech to text · Odesa-1

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.

OpenAI-compatible36 languages + autoUp to 25 MiB / 60 minSSE streaming
POSThttps://api.spero.audio/v1/audio/transcriptions

Interactive request builder

Toggle parameters below to generate a ready-to-run request in curl, Python, or TypeScript.

Interactive builder

Configure your transcription request

$0.09/hr · zero retention
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'
POST /v1/audio/transcriptionsverbose_jsonX-Data-Retention: zero

Available models

ModelLicensePriceBest for
odesa-1-proClosed API$0.09/hrOur most accurate English transcription model, built for noisy phone lines, fast speech, and domain names.
odesa-1-fastApache-2.0$0.054/hrFast, high-accuracy open-weight English model (#1 Apache-2.0 on AA public splits) for production workloads.
odesa-1-miniApache-2.0$0.036/hrSmall, 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.

filebinaryrequired
Audio file up to 25 MiB and up to 60 minutes. Supported containers and codecs: WAV, FLAC, MP3, M4A, OGG, WEBM, MP4, and Opus.
modelstringoptionaldefault odesa-1-pro
One of odesa-1-pro ($0.09/hr), odesa-1-fast ($0.054/hr), or odesa-1-mini ($0.036/hr). Optional odesa/ prefix is accepted.
languagestringoptionaldefault en
Any of our 36 supported ISO language codes (such as en, es, fr, de, zh, ja, ar, hi, tr) or auto for automatic language detection and code-switching. Defaults to en when omitted.
response_formatstringoptionaldefault json
json (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 false
Opt-in inverse text normalization (ITN). Default false 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 verbatim
verbatim 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 ""
Optional glossary or domain context hint (names, medications, SKUs, acronyms), up to 1,000 characters. Never stored or logged.
temperaturefloatoptionaldefault 0.0
Sampling temperature between 0.0 (deterministic) and 1.0.
streambooleanoptionaldefault false
When true, 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_json

Response shapes

json (default)

JSON
{
  "text": "Hi, my callback number is 555-0192 at 4:45 PM."
}

verbose_json

Includes server-measured duration, timestamped segments, and processing metadata.

JSON
{
  "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=true
SSE stream
data: {"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

HeaderMeaning
X-ModelCanonical Odesa-1 model that processed the request.
X-Audio-SecondsServer-measured input audio duration in seconds (3 decimal places).
X-Cost-USDExact prepaid charge deducted (per whole second ceiling, 1 s minimum).
X-Request-IdUnique ID (stt_...) recorded on your Requests page.
X-Data-RetentionAlways 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=true for UI and CRMs: Leave it false when you want raw spoken transcripts without automatic formatting.
  • Keep prompt tight: 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.