Skip to main content
POST
cURL

Autorisations

x-api-key
string
header
requis

API key for authentication. Passed via the x-api-key header.

En-têtes

x-api-key
string
requis

Your Gradium API key

Content-Type
enum<string>

Format of the audio in the request body. Defaults to audio/wav when omitted.

Options disponibles:
audio/wav,
audio/pcm,
audio/ogg,
audio/opus

Paramètres de requête

model
string
défaut:default

Speech-to-Text model name.

input_format
enum<string>

Overrides the audio format detected from Content-Type.

Options disponibles:
wav,
pcm,
opus
json_config
string
requis

JSON-encoded model configuration. language is required, e.g. {"language": "en"} or {"language": "any"} to auto-detect.

Corps

WAV audio file.

Réponse

NDJSON stream of transcription messages.

Newline-delimited JSON messages: text, end_text, or error. The body closes when transcription is complete.