Speech-to-Text
STT POST Endpoint
Transcribe a complete audio file with Gradium speech-to-text over HTTP POST.
POST
cURL
Headers
Your Gradium API key
Format of the audio in the request body. Defaults to audio/wav when omitted.
Available options:
audio/wav, audio/pcm, audio/ogg, audio/opus Query Parameters
Speech-to-Text model name.
Overrides the audio format detected from Content-Type.
Available options:
wav, pcm, opus JSON-encoded model configuration. Example: {"language": "en"}
Body
WAV audio file.
Response
NDJSON stream of transcription messages.
Newline-delimited JSON messages: text, end_text, or error. The body closes when transcription is complete.
cURL