Skip to content

From Gladia's v1 API

Gladia Enterprise serves Gladia’s v2 API only. An integration still on the cloud’s v1 routes moves to v2 before it moves to Gladia Enterprise (From Gladia’s cloud API): the v1 routes answer 404 here.

v1 route (Gladia’s cloud) on Gladia Enterprise use instead
POST /audio/text/audio-transcription not served (404) POST /v2/upload for a local file, then POST /v2/pre-recorded (Transcribe a file)
POST /video/text/video-transcription not served (404) the same: a video file is uploaded and transcribed like an audio file
GET /v1/history not served (404) GET /v2/pre-recorded (pre-recorded jobs) and GET /v2/live (live sessions)
the v1 live WebSocket refused POST /v2/live, then the WebSocket of the url it returns (Quickstart)
GET /v1/models not served (404) the models are listed in the docs (Models)

v1 answered with the transcript in the same request; v2 creates a job and answers its id at once: read GET /v2/pre-recorded/{id} until it is done, or set a callback (Callbacks).

v1 field v2 (POST /v2/pre-recorded)
audio, video (a file) upload it with POST /v2/upload, then send the audio_url it returns
audio_url, video_url audio_url
language_behaviour: "automatic single language" language_config: {"languages": [], "code_switching": false}, the default
language_behaviour: "automatic multiple languages" language_config: {"code_switching": true}
language_behaviour: "manual" with language (a name, french) language_config: {"languages": ["fr"]}: a code, not a name (Supported languages)
toggle_diarization diarization
diarization_num_speakers diarization_config.number_of_speakers
diarization_min_speakers, diarization_max_speakers diarization_config.min_speakers, diarization_config.max_speakers
toggle_direct_translate with target_translation_language (a name) translation: true with translation_config: {"target_languages": ["en"]} (codes), on the solaria-3 model
output_format: "srt" or "vtt" subtitles: true with subtitles_config: {"formats": ["srt"]} (Subtitles)
output_format: "txt", "plain" result.transcription.full_transcript
output_format: "json" the job’s result
webhook_url callback: true with callback_config: {"url": "…"}
transcription_hint no equivalent: name the words to recognise with custom_vocabulary
toggle_audio_enhancer no equivalent on pre-recorded jobs
toggle_accurate_words_timestamps nothing to set: every word has its times

v1 opened the WebSocket first and sent the settings as its first message. v2 creates the session with POST /v2/live (the settings are its body, the API key its x-gladia-key header), then opens the WebSocket of the url it returns and sends the audio. The settings keep their meaning; their names are those of the v2 init (API reference), and a language is a code, not a name.