OpenAPI 3.1.0MITraw.githubusercontent.com2026-08-1710873307.6 KB

4efc843fe56f

Legs

Start real-time speech-to-text on a leg

post/legs/{id}/stt

Request body

languagestring required

Language code (e.g. "en", "es")

partialboolean required

Emit partial (non-final) transcripts

provider'elevenlabs' | 'deepgram' | 'deepgram_flux' | 'azure'

STT provider: "elevenlabs" (default), "deepgram" (/v1/listen), "deepgram_flux" (/v2/listen, conversational turn detection) or "azure"

api_keystring

API key override (falls back to ELEVENLABS_API_KEY, DEEPGRAM_API_KEY or AZURE_SPEECH_KEY env var depending on provider)

modelstring

Provider-specific model. Deepgram: default "nova-3". Deepgram Flux: "flux-general-en" (default) or "flux-general-multi".

keytermsstring[]

Terms to boost recognition of (Deepgram and Deepgram Flux).

endpointinginteger

Deepgram only: milliseconds of silence before a segment is finalized. 0 disables endpointing.

utterance_end_msinteger

Deepgram only: milliseconds of silence after which an stt.turn event with event=utterance_end is emitted. Deepgram requires interim results for this, which are requested automatically and still suppressed unless partial is true.

eager_eot_thresholdnumber

Deepgram Flux only: end-of-turn confidence that fires an eager_end_of_turn stt.turn event, enabling speculative generation. Must be between 0.3 and 0.9. When unset, no eager_end_of_turn or turn_resumed events are emitted at all.

eot_thresholdnumber

Deepgram Flux only: end-of-turn confidence required to close a turn. Deepgram default 0.7.

eot_timeout_msinteger

Deepgram Flux only: milliseconds of silence after which a turn is closed regardless of confidence. Deepgram default 5000.

language_hintsstring[]

Deepgram Flux only: candidate language codes for the "flux-general-multi" model.

Response

STT started

instance_idstring

Instance identifier

statusstring required