Initiate a session
/v2/live Creates a live session with its options and returns the WebSocket URL to stream its audio to.
Authentication: your API key in the x-gladia-key header (Authentication).
Example
curl -X POST https://eu1.api.gladia.io/v2/live \ -H "x-gladia-key: $GLADIA_API_KEY" \ -H "content-type: application/json" \ -d '{ "encoding": "wav/pcm", "sample_rate": 16000, "bit_depth": 16, "channels": 1, "model": "solaria-3", "language_config": { "languages": [ "en" ] }, "messages_config": { "receive_partial_transcripts": true } }'import os
import requests
API_URL = os.environ.get("GLADIA_API_URL", "https://eu1.api.gladia.io")response = requests.post( f"{API_URL}/v2/live", headers={"x-gladia-key": os.environ["GLADIA_API_KEY"]}, json={ "encoding": "wav/pcm", "sample_rate": 16000, "bit_depth": 16, "channels": 1, "model": "solaria-3", "language_config": { "languages": [ "en" ] }, "messages_config": { "receive_partial_transcripts": True } }, timeout=10,)response.raise_for_status()print(response.json())const API_URL = process.env.GLADIA_API_URL ?? "https://eu1.api.gladia.io";const response = await fetch(`${API_URL}/v2/live`, { method: "POST", headers: { "x-gladia-key": process.env.GLADIA_API_KEY, "content-type": "application/json", }, body: JSON.stringify({ "encoding": "wav/pcm", "sample_rate": 16000, "bit_depth": 16, "channels": 1, "model": "solaria-3", "language_config": { "languages": [ "en" ] }, "messages_config": { "receive_partial_transcripts": true } }),});if (!response.ok) { throw new Error(`${response.status} ${await response.text()}`);}console.log(await response.json());Try it
Parameters
-
regionstring · queryWhere the audio is processed:
eu1(Europe) orus1(United States). Any other value is refused (400). A region the endpoint does not serve finds no model and the session is refused.eu,us,eu-west,us-westare accepted too, Gladia Classic's names of these regions. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. Useeu1orus1instead.one of:
eu1,us1,eu,us,eu-west,us-west
Body
-
encodingstringEncoding of the audio you send.
default:
"wav/pcm"· one of:wav/pcm,wav/alaw,wav/ulaw -
bit_depthintegerBit depth of the audio.
wav/alawandwav/ulaware 8-bit.default:
16· one of:8,16,24,32 -
sample_rateintegerSample rate of the audio, in Hz.
default:
16000· one of:8000,16000,32000,44100,48000 -
channelsintegerNumber of interleaved audio channels. Each channel is transcribed on its own: put each speaker of a call on their own channel to know who said what without diarization.
default:
1· 1 to 8 -
custom_metadataobjectAny JSON object, kept with the session: returned by
GET /v2/live/{id}, sent to your callback, and a filter ofGET /v2/live. -
post_session_metadataobjectAny JSON object, kept in the session's
request_paramsand returned byGET /v2/live/{id}.PATCH /v2/live/{id}replaces it once the session has ended. -
modelstringThe model, by name, optionally with a latency profile (
solaria-3-fast), or a latency profile alone (fast). Omitted: your account's default model when it is available, else the platform's default model (set by your administrator), else any available model.one of:
solaria-3,solaria-1,solaria-3-fast,solaria-3-medium,solaria-3-balanced,solaria-3-precise,solaria-1-fast,solaria-1-medium,solaria-1-balanced,solaria-1-precise,fast,medium,balanced,precise -
endpointingnumberSilence, in seconds, that ends an utterance and produces its final transcript. Short values give faster finals and may cut sentences at hesitations.
default:
0.05· 0.01 to 10 -
maximum_duration_without_endpointingnumberLongest utterance, in seconds: a final is forced after this much speech without a pause, and lasts at most this plus 1 s. Omitted: 5 s, as on Gladia's cloud API; 60 s when
finalscloses on a turn or a sentence.default:
5· 5 to 60 -
language_configobjectThe languages to expect.
2 fields
-
languagesarray of stringThe languages that may be spoken (ISO 639-1 codes). Empty: the language is detected. One code: the session is transcribed in it. Several: the language is detected among them, once and kept for the session, or per utterance with
code_switching. -
code_switchingbooleanDetect the language as the conversation goes, among
languageswhen given: for speakers who switch languages.default:
false
-
-
pre_processingobjectWhat is done to the audio before it is transcribed: noise reduction (
audio_enhancer) and the voice activity detector's sensitivity (speech_threshold).2 fields
-
audio_enhancerbooleanReduce the background noise of the audio before it is transcribed, on every channel: for close-talk audio with line noise, hiss or hum. It adds about 340 ms of latency, and it can hurt distant speech (a meeting room microphone): measure it on your own audio first. Runs only where your platform's operator turned it on: elsewhere it is ignored and the session runs without it, as on Gladia's cloud API. Default false.
default:
false -
speech_thresholdnumber or "auto"Sensitivity of the voice activity detector, from 0 to 1 as on Gladia's cloud API: the probability from which audio counts as speech (solaria-1, solaria-3, solaria-4; default 0.5). Lower hears quieter or more distant speech; higher ignores more background voices.
"auto"(solaria-3): the session starts at 0.5 and adapts to the speaker; a softer passage is transcribed only when the model confirms it holds speech. Another model refuses"auto".default:
0.5· 0 to 1
-
-
realtime_processingobjectProcessing applied to each final transcript, during the session.
13 fields
-
custom_vocabularybooleanBias the transcription toward the words of
custom_vocabulary_config.default:
false -
custom_vocabulary_configobjectThe words to favour. Required with
custom_vocabulary.default:
null2 fields
-
vocabularyarray of string or object requiredWords or phrases, as strings or as objects with their own options.
4 fields
-
valuestring requiredThe word or phrase.
-
intensitynumberHow strongly it is favoured, from 0 to 1.
default:
null· 0 to 1 -
pronunciationsarray of stringOther ways it may be pronounced, written as they sound.
default:
null -
languagestring deprecatedGladia Classic's language of the entry, accepted and not applied. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests.default:
null
-
-
default_intensitynumberHow strongly the words are favoured, from 0 to 1, when an entry sets none.
default:
null· 0 to 1
-
-
custom_spellingbooleanRewrite words as
custom_spelling_configsays.default:
false -
custom_spelling_configobjectThe spellings to apply. Required with
custom_spelling.default:
null1 fields
-
spelling_dictionaryobject requiredThe spelling to write (key) for each variant heard (values):
{"Gladia": ["gladya", "glad ia"]}. Whole words, case-insensitive.
-
-
translationbooleanTranslate each final transcript into the target languages.
default:
false -
translation_configobjectThe target languages. Required with
translation.default:
null9 fields
-
target_languagesarray of string requiredThe languages to translate into (ISO 639-1 codes).
at least 1 item(s)
-
modelstringGladia's translation model.
enhancediscascademode (every language by the LLM) when the workspace has its own LLM and nomodeis given; otherwise the session translates asbase, and the init's answer says so in itswarnings(translation_model_fallback). The other values change nothing.default:
"base"· one of:base,batch,enhanced -
modestringHow each final is translated.
auto(the default): from the audio by the speech translation model for the languages it serves, and by an LLM from the final's text for the others (Polish, Finnish, Czech, ...).cascade: by the LLM for every language.direct: by the speech translation model only; a language it does not serve is refused. The LLM is the workspace's own (set in the admin console) or the server's; without one,cascadeworks asauto. The custom vocabulary is the LLM's glossary: its names are spelled as written in every language. A spoken session (speech) is alwaysdirect:cascadeis refused with it.default:
"auto"· one of:auto,direct,cascade -
match_original_utterancesboolean deprecatedGladia Classic's switch, accepted and not applied: every translation follows its final's utterance. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests.default:
true -
lipsyncboolean deprecatedGladia Classic's lip-sync switch, accepted and not applied. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests.default:
true -
context_adaptationbooleanfalse: a literal translation, the LLM gets neither thecontextnor the previous sentences.default:
true -
contextstringA free-text hint on the conversation (its domain, who speaks, the terms it uses), at most 4096 characters, given to the translation LLM to choose the terms and resolve ambiguities: "A cardiology consultation" translates "the failure" as "l'insuffisance", not "l'échec". Same rules as
informal. Ignored whencontext_adaptationisfalse.default:
null -
informalbooleanTranslate in the informal register where the target language has one (French tu, German du, Spanish tú, Dutch jij). Applied by the translation LLM: every target is then translated from the final's text, as with
mode: "cascade". Needs a translation LLM configured on the gateway (the workspace's own, or the one the operator routed totranslation): without one, a400realtime_processing.translation_config.informal: not supported: no LLM is configured on this gateway. Also refused withmode: "direct"and withspeech.default:
false -
speechobjectSpeak the translations on the session's own WebSocket, one voice per target language (
translation_chunkandtranslation_audiomessages, Gladia Connect extension). The translations then come in low-latency chunks before each final, cut by the word order of each target, translated from the audio by the speech translation model:mode: "cascade"(andmodel: "enhanced") is refused withspeech.default:
null7 fields
-
modelstringThe text to speech model: seldonia-1 speaks every target language and clones a stored voice.
default:
"seldonia-1"· one of:seldonia-1,seldonia-1-small,seldonia-1-clone,seldonia-1-small-clone,seldonia-3 -
voicestringA preset voice of the model, or the id of a stored voice (POST /v2/tts/voices).
default:
"default" -
sample_rateintegerdefault:
24000· one of:8000,16000,22050,24000,44100,48000 -
speednumberThe speaking rate (0.7 to 1.2): a translation is often longer than its source, a little faster keeps it closer to the speaker.
default:
1· 0.7 to 1.2 -
speaker_voicesintegerClone switching: the voice follows who speaks, each of this many speakers cloned from their own speech in the stream (0: off).
default:
0· 0 to 4 -
speakers_consentbooleanEvery speaker of the stream agreed to the cloning.
default:
false -
latencystringHow soon each translation is cut to be spoken:
standardwaits for enough of the source for the target's word order,lowcuts sooner (fewer words, less audio, a lower cap): the voice follows the speaker closer, and more chunks are cut in the middle of a phrase.default:
"standard"· one of:standard,low
-
-
-
named_entity_recognitionbooleanThe same as the top-level
named_entity_recognition: true.default:
false -
sentiment_analysisboolean or objectThe sentiment (positive, neutral, negative) and emotion of each final, in a
sentiment_analysismessage after it.default:
false1 fields
-
use_audiobooleandefault:
false
-
-
keyterms_promptarray of stringNames and terms the transcript must get right, even those
custom_vocabularystill misses, as written: at most 100 terms of at most 6 words each. Alone or withcustom_vocabulary.default:
null -
structured_data_extractionany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
structured_data_extraction_configany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
words_accurate_timestampsany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
pre_processingany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests.
-
-
post_processingobjectKept for Gladia's cloud API: holds only deprecated fields, accepted and ignored.
1 fields
-
chapterizationany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests.
-
-
messages_configobjectThe messages sent on the WebSocket.
11 fields
-
receive_partial_transcriptsbooleanPartial transcripts, updated while the utterance is spoken.
default:
false -
receive_committed_textbooleanEach partial also carries
utterance.committed_text, its words that will not change any more.default:
false -
receive_final_transcriptsbooleanThe final transcript of each utterance.
default:
true -
receive_speech_eventsbooleanspeech_startandspeech_end.default:
true -
receive_pre_processing_eventsbooleanPre-processing messages.
default:
true -
receive_realtime_processing_eventsbooleanMessages of the realtime processing:
translation,named_entity_recognition,sentiment_analysis,speculation.default:
true -
receive_post_processing_eventsbooleanpost_transcript,post_summarizationandpost_final_transcript, at the end.default:
true -
receive_acknowledgmentsbooleanaudio_chunkandstop_recordingacknowledgments.default:
true -
receive_errorsbooleanerrormessages.default:
true -
receive_lifecycle_eventsbooleanstart_recording,end_recordingandend_session.default:
false -
transcript_messageany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests.
-
-
callbackbooleanAlso send the session's messages to
callback_config.url, by HTTP POST.default:
false -
callback_configobjectWhere and which messages the callback receives. Required with
callback.default:
null11 fields
-
urlstring requiredThe HTTPS URL that receives the messages, one POST each.
uri
-
receive_partial_transcriptsbooleanPartial transcripts.
default:
false -
receive_final_transcriptsbooleanFinal transcripts.
default:
true -
receive_speech_eventsbooleanspeech_startandspeech_end.default:
false -
receive_pre_processing_eventsbooleanPre-processing messages.
default:
true -
receive_realtime_processing_eventsbooleanMessages of the realtime processing.
default:
true -
receive_post_processing_eventsbooleanpost_transcript,post_summarizationandpost_final_transcript.default:
true -
receive_acknowledgmentsbooleanAcknowledgments.
default:
false -
receive_errorsbooleanerrormessages.default:
false -
receive_lifecycle_eventsbooleanstart_session,start_recording,end_recordingandend_session.default:
true -
secretany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests.
-
-
acknowledge_on_receiptbooleanAcknowledge each audio chunk on receipt, as Gladia's cloud API does, instead of once it is transcribed. The session then cannot resume after a dropped connection.
default:
false -
max_session_duration_sintegerThe session's own maximum duration, in seconds: at most your workspace's (else the cluster's), a 400 above it. Reached, the session ends as if you sent
stop_recording; itsend_sessionmessage and the WebSocket close saymax_session_duration.default:
null· at least 1 -
profilestringLatency profile:
fastgives the earliest transcripts,precisethe most accurate ones. The same as a profile inmodel. Omitted: your account's default profile, else the platform's default profile (mediumunless your administrator changed it) on a default model, else the model's own default.default:
null· one of:fast,medium,balanced,precise -
diarizationbooleanSpeaker labels on single-channel audio: each utterance and word gets a
speakernumber.default:
false -
diarization_configobjectDiarization options.
12 fields
-
number_of_speakersintegerExpected number of speakers, when you know it (at least 1).
default:
null· at least 1 -
max_speakersintegerHighest number of speakers to tell apart (at least 1).
diarization-v1tells at most 8 apart: a higher value is served 8.default:
null· at least 1 -
min_speakersintegerAccepted for Gladia compatibility; the streaming diarizer does not use it.
default:
null· at least 1 -
enhancedbooleanAccepted for Gladia compatibility; the streaming diarizer does not use it.
default:
null -
backendstringThe diarization model (
diarization-v1…). Omitted, the server's default.default:
null -
chunk_msintegerAudio the diarizer reads per step, in milliseconds (a multiple of 80). Give it or
chunk_frames, not both with different values.default:
null· at least 0 -
chunk_framesintegerThe same step, in 80 ms frames.
default:
null· at least 0 -
right_context_msintegerLookahead after each step, in milliseconds (a multiple of 80); only with
chunk_msorchunk_frames.default:
null· at least 0 -
right_context_framesintegerThe same lookahead, in 80 ms frames.
default:
null· at least 0 -
spkcache_framesintegerSpeaker memory, in 80 ms frames (clamped to 32..1024).
default:
null· at least 0 -
fifo_framesintegerRecent-audio queue of the speaker memory, in 80 ms frames (clamped to 16..1024).
default:
null· at least 0 -
spkcache_update_periodintegerFrames between two updates of the speaker memory.
default:
null· at least 0
-
-
punctuationbooleanPunctuation and casing of the transcripts. On unless
false.default:
true -
end_of_turnboolean or objectEnd-of-turn detection for voice agents: an
end_of_turnmessage when the speaker has finished their turn, judged from how they speak and not from silence alone.trueuses the defaults (GET /v2/live/defaults), an object overrides some of them. Off when omitted.default:
false13 fields
-
eot_thresholdnumberEnd-of-turn probability, between 0 and 1 (excluded), above which the turn ends (default 0.9).
default:
null· 0 to 1 -
thresholdnumberDeprecated name of
eot_threshold, accepted until January 31, 2027; both with different values is a 400.default:
null· 0 to 1 -
silence_msintegerSilence, in milliseconds, before a turn is evaluated.
default:
null· 0 to 10000 -
stop_snumberSilence, in seconds, that ends the turn whatever the probability.
default:
null· 0 to 60 -
emit_scoresbooleanAlso send an
end_of_turn_scoremessage for each evaluation, to calibrateeot_threshold.default:
null -
window_snumberAudio, in seconds, an evaluation reads before the silence (at most 8).
default:
null· 0 to 8 -
vad_thresholdnumberSpeech probability of the voice activity detector, between 0 and 1 (excluded), from which audio counts as speech (default 0.5).
default:
null· 0 to 1 -
min_end_of_turn_silence_when_confidentintegerSilence, in milliseconds (0 to 5000, default 0), that must follow a turn judged complete before the end of turn is sent; speech meanwhile cancels it. 0 is fastest, higher cuts fewer callers mid-sentence.
default:
null· 0 to 5000 -
confirm_msintegerDeprecated name of
min_end_of_turn_silence_when_confident, accepted until January 31, 2027; both with different values is a 400.default:
null· 0 to 5000 -
reeval_msintegerInterval, in milliseconds, between two evaluations of the same silence.
default:
null· 0 to 10000 -
eager_eot_thresholdnumberProbability, between 0 and 1 (excluded) and at most
eot_threshold, from which aneager_end_of_turnis sent before the turn is confirmed; aturn_resumedfollows if the speaker goes on. Off when omitted.default:
null· 0 to 1 -
speculationboolean or objecttrueor{"threshold": 0.85}: theeager_end_of_turnandend_of_turnmessages carry thetextyour agent starts its turn on, and the final that closes the turn carries aspeculationblock that says whether that turn can be kept (keep) or must be recomputed (discard). Off when omitted.default:
null2 fields
-
thresholdnumberSimilarity, above 0 and at most 1 (default 0.85), from which the final recommends keeping the agent's turn.
default:
null· 0 to 1 -
entitiesboolean or string or array of string or objectWhich named entities, new in the final, make it recommend
discard(reason: new_entity), whatever the similarity: "book me a table" then "book me a table at Le Procope" is close word for word, but your agent's answer never knew the restaurant.true(the default whennamed_entity_recognitionorpiiis on) counts every type the session tags,falseturns the check off, or a preset, a type, a list or{"enable": [...], "disable": [...]}in thenamed_entity_recognitionsyntax narrows it. Needsnamed_entity_recognitionorpii: the entities are read from the final's own tags, the text your agent started on is never tagged.default:
null2 fields
-
enablearray of stringThe entity types or presets that count (default every type the session tags).
default:
null -
disablearray of stringThe entity types or presets removed from
enable.default:
null
-
-
-
cut_on_turn_changebooleanWhether a turn is cut where another speaker answers while the end of turn is still being judged (default
true): the answer is its own final.falsekeeps the turn whole. For a session with noturn_router; with one, useturn_router.cut_on_turn_change(both set must agree).default:
null
-
-
finalsstringWhich event closes a final transcript.
end_of_turn: the end of the speaker's turn, a pause inside a turn does not cut (voice agents).sentence_or_end_of_turn: the first of the end of a sentence or the end of the turn.sentence: the end of a sentence, a number or an address being dictated still held (meeting recorders, subtitles, live translation): a pause ofendpointing, or, with solaria-3, a short pause right after a sentence ends, so fluent speech gets one final per sentence.endpointing: theendpointingsilence ormaximum_duration_without_endpointing, nothing else (Gladia's cloud behaviour). Omitted: finals close as withendpointing, as on Gladia's cloud API. Needs a model that runs it: refused with a 400 where none does.default:
null· one of:end_of_turn,sentence_or_end_of_turn,sentence,endpointing -
adapterstringA specialised version of the model for a domain or a dialect (
medical), decoding the session's language: drug names, dosages and clinical terms where the general model hears common words. Set the session's language to one the adapter decodes (medical:en), inlanguage_config.languages; detection is refused. Omitted: the general model, or the language's own adapter where one is served. Needs a model that serves it: refused with a 400 where none does.default:
null -
finalizationbooleanThe post-call pass: when the session ends, its whole recording is transcribed again by the pre-recorded pipeline (
solaria-3, with diarization), the live transcript speeding the pass up. The pass is an ordinary pre-recorded job (POST /v2/pre-recordedwithfrom_session_id): the session's result names it (finalization.id,result_url) and the job's callback, at yourcallback_config.url, says when it is done. Nothing changes during the call. Needs your workspace's audio recording; billed as a pre-recorded job. Off by default.default:
false -
numeralsboolean or objectSpoken numbers, amounts and clock times written with digits in the final transcripts ("one thousand three hundred fifty five dollars" becomes "$1,355", "at nine fifteen" "at 9:15");
text_rawkeeps the words. Withturn_router.route_numeralson (the default; not withturn_router: false), phone numbers are also written in their country's format ("06 12 34 56 78") and dates the language's way ("March 12, 2026").trueuses the countries of the language spoken, an object sets the country.default:
true1 fields
-
regionstringThe country whose phone numbers and dates the transcripts are written in: an ISO 3166-1 alpha-2 code in capitals (
CH,CA). Omitted: the countries where the language is spoken.default:
null
-
-
merge_spelled_acronymsbooleanSpelled acronyms written as one word in the final transcripts ("deux P R ouvertes sur la C I" becomes "deux PR ouvertes sur la CI");
text_rawkeeps the letters as heard, and the word'sstart/endrun from its first letter to its last. Only runs of 2 to 4 capital letters on the models that write their own capitals, in languages written in Latin letters. Off when omitted, so a caller who spells a name or a code ("B O B", "A B 4 2") keeps the letters: turn it on only when your speakers spell acronyms rather than names or codes.default:
false -
emailsboolean or objectDictated e-mail addresses written as addresses in the final transcripts ("jean point dupont arobase gmail point com" becomes "jean.dupont@gmail.com"). Off when omitted. A session asking for it goes only to a model that offers it (
GET /v2/live/capabilities). When the workspace has set its own LLM (an OpenAI-compatible endpoint, in its settings), the finals with a dictated address are also read by that LLM, which catches what the rules miss (spelled letters, "chez", a domain said without "dot"): their text goes to it, never for a session that redacts personal data.default:
false -
dictation_commandsbooleanSpoken dictation commands written as marks in the transcripts ("hello comma world period new line thanks" becomes "Hello, world.\nThanks"): punctuation, new line and new paragraph, quotes, parentheses,
capandall caps. A word said in a sentence ("a comma separated list") stays a word. Only onsolaria-2-en-dict, where it is on when omitted;falseturns it off. Another model refusestrue(GET /v2/live/capabilities).default:
null -
spelled_lettersstringHow letters spelled out loud are written.
model(when omitted): the model's own form, which differs between models ("S. M. I. T. H.", "S.M.I.T.H.", "S-M-I-T"). Any other value writes every spelled run one way on every model, in the partials and the finals, whether or not the speaker paused between the letters:space"S M I T H" (canonicalis the same),comma"S, M, I, T, H" anddots_space"S. M. I. T. H." (one word per letter inwords),dashed"S-M-I-T-H",dots"S.M.I.T.H." andjoined"SMITH". The closing period stays after the run, never doubled ("S.M.I.T.H." ends the sentence). Gotcha: withdashed,dotsandjoineda run is one entry inwords(from its first letter to its last), not one per letter: a client aligning onwordsmust expect it. Gotcha: the text alone cannot tell a spelling from a list or an acronym, so they are rewritten too ("The options are A, B, C." becomes "The options are A B C." withspace, "N.A.S.A." becomes "NASA." withjoined). A single letter alone ("vitamin D", "plan B") is never touched. Applied by Gladia Connect's own models; a session served by the cloudsolaria-1keeps the model's form.default:
null· one of:model,space,canonical,dashed,dots,dots_space,joined,comma -
addressesboolean or objectDictated postal addresses resolved and written in their standard form in the final transcripts. Off when omitted; only where the platform offers it (
GET /v2/live/capabilities).default:
false5 fields
-
limitintegerHow many resolver suggestions to read (1 to 20).
default:
null· 1 to 20 -
min_scorenumberScore, from 0 to 1, under which a suggestion is ignored.
default:
null· 0 to 1 -
countrystringRestrict the addresses to this country.
default:
null -
citystringCity used when the transcript names none.
default:
null -
require_coveragebooleanOnly correct an address the resolver covers.
default:
null
-
-
audio_redactionboolean or objectAudio redaction: every packet the client sends is echoed back as an
audio_passthroughmessage, its own audio in its own encoding, with the channels of the selected entities replaced by a beep while they are spoken. For the calls that must not carry a value to the other end: the phone numbers and email addresses two users exchange to take a deal off a marketplace, the card numbers, bank accounts, social security numbers and IDs read out to an agent.truebeeps thepiipreset at 1 kHz;{entities, threshold, frequency_hz}chooses the entities (thepiioption's selectors), the tagger's score floor and the beep's frequency. The beep starts at the first packet after the partial that names the entity, one model chunk behind the speech. Off when omitted; only where the platform offers it (GET /v2/live/capabilities).default:
false3 fields
-
entitiesstring or array of string or objectdefault:
"pii"2 fields
-
enablearray of stringThe entity types or presets that count (default every type the session tags).
default:
null -
disablearray of stringThe entity types or presets removed from
enable.default:
null
-
-
thresholdnumberdefault:
0.5· 0 to 1 -
frequency_hzintegerdefault:
1000· 100 to 20000
-
-
named_entity_recognitionboolean or objectNamed entities (people, places, organizations, dates, amounts…) tagged in the final transcripts, and a
named_entity_recognitionmessage after each final.truetags every type.default:
false4 fields
-
entitiesstring or array of string or objectWhich types: a preset (
pii,pci,phi,contact,financial,name,location,date…), a list of types and presets, or{"enable": [...], "disable": [...]}.default:
null2 fields
-
enablearray of stringThe entity types or presets that count (default every type the session tags).
default:
null -
disablearray of stringThe entity types or presets removed from
enable.default:
null
-
-
thresholdnumberConfidence, from 0 to 1, under which an entity is ignored.
default:
0.5· 0 to 1 -
debugbooleanEvery final also carries
entity_candidates, what the model almost tagged, to see why a span was missed.default:
false -
alternative_namesboolean or objecttrueor{threshold, max_results, census}: for each first name, surname or full name found, the names from the census of the utterance's language that sound like it, each with its probability.default:
false3 fields
-
thresholdnumberThe lowest probability, from 0 to 1, an alternative must have to be returned.
default:
0.05· 0 to 1 -
max_resultsintegerThe most alternatives per name, from 1 to 20.
default:
5· 1 to 20 -
censusbooleanAdd each name's census data (frequency, share, rank, gender).
default:
true
-
-
-
piiboolean or objectPersonal data (names, phone numbers, emails, card numbers…) redacted in the final transcripts, and a
piimessage after each final. With redaction on, no partial transcript is sent.default:
false7 fields
-
entitiesstring or array of string or objectWhich types to redact: a preset (
pii, the default;pci,phi,contact,financial…), a list of types and presets, or{"enable": [...], "disable": [...]}.default:
"pii"2 fields
-
enablearray of stringThe entity types or presets that count (default every type the session tags).
default:
null -
disablearray of stringThe entity types or presets removed from
enable.default:
null
-
-
modestringmarkerreplaces the data with an element (<pii:phone_number id="1"/>),maskwith mask characters inside the element,tagkeeps the text inside the element.default:
"marker"· one of:marker,mask,tag -
thresholdnumberConfidence, from 0 to 1, under which a span is not redacted.
default:
0.5· 0 to 1 -
mask_characterstringThe character of
maskmode.default:
"*" -
coreferencestringHow mentions of the same entity get the same
id:heuristics(the default),exact(same text only) oroff.default:
"heuristics"· one of:heuristics,exact,off -
return_entitiesbooleanAlso return the redacted text in the
piimessage (text).default:
false -
debugbooleanEvery final also carries
entity_candidates, what the model almost tagged, to see why a span was missed.default:
false
-
-
turn_routerboolean or objectThe number hold: an utterance stays open while a number, an amount or an address is still being dictated, so it is not cut at each pause. On by default where the model supports it under a
finalspolicy that waits for it (sentence,sentence_or_end_of_turn,end_of_turn); withfinalsomitted, finals close on the pause without it.falseturns it off.11 fields
-
holdbooleanThe number hold.
default:
null -
route_numeralsbooleanSpoken numbers are written for what they are in the sentence (a phone number, a date, an amount).
default:
null -
emitbooleanA
turnverdict on every final.default:
null -
arbitrate_cutsbooleanNo cut before the text of the pause is known.
default:
null -
suppress_eot_on_waitbooleanThe end of turn waits while a hold keeps the turn open (it is sent if the hold expires).
default:
null -
wordsbooleanThe spoken number words of the transcript's language hold the turn too.
default:
null -
debugbooleanFinals carry
cut, what closed the segment.default:
null -
cut_on_turn_changebooleanA hold never spans a turn change (default
true): the utterance held open is cut at the pause where another speaker answers, unless the next word goes on with the dictation (a digit, a spelled letter, "dot", "at"…).falsekeeps the hold across that pause: for pure dictation flows where any split hurts.default:
null -
hold_streamsstring or array of stringThe kinds of data a hold waits for: a list, or a comma-separated string, of
amount,phone,email,date,ivr_digit,other_numeric.default:
null -
max_hold_snumberA hold ends after this many seconds with no new text (0.5 to 30).
default:
null· 0.5 to 30 -
contextstringAccepted for compatibility, not used.
default:
null· one of:none,prev_final
-
-
xml_eventsbooleanEvery live event but the transcripts (speech start and end, end of turn, translation, entities, sentiment, errors) sent as one short XML tag in the text of a final
transcriptmessage, for a client that reads only the transcript text:<end_of_turn channel="0" probability="0.97" reason="model" end="3.84"/>. Its id starts withxml_. The acknowledgments stay JSON, the callback and the session's result are unchanged. Chosen at the init. Off by default.default:
false -
session_configobjectLets the session change its settings while it runs, with the WebSocket's
session_configmessage (language, vocabulary, prompt, add-ons). Omitted: no change is accepted, whoever holds the WebSocket URL.{}: every setting that may change;allowed: only those listed.default:
null1 fields
-
allowedarray of stringThe settings the session may change while it runs (
session_configmessage); absent: every one that may change.default:
null
-
-
x_gladia_versionany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
x_user_agentany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
x_transcription_pipelineany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
streaming_modeany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
numbers_as_wordsany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
languageany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
x_gladia_regionany deprecatedAccepted and ignored, except a region this address does not serve (
us-weston an EU address), which is refused with a 400: call that region's address instead. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
user_idany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
account_idany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
customer_idany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
organization_idany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
tenant_idany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
project_idany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
metadataany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
priorityany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
webhook_urlany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
language_behaviourany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
regionany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
economic_modeany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
transcription_configany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
transcription_hintsany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
custom_promptsany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests.
Responses
201 The session is created.
-
idstring requiredIdentifier of the session (a time-ordered UUID).
-
created_atstring requiredCreation date (ISO 8601, UTC).
-
urlstring requiredWebSocket URL to stream the audio to. It carries a single-use token: connect within 60 seconds. Reconnecting to the same URL after a dropped connection resumes the session.
-
warningsarray of objectWhat the session runs differently from what the body asked, when it does:
model_deprecatedwhen it namessolaria-1, a former real-time model, on a cluster that runs another model instead;translation_model_fallbackwhen it asks theenhancedtranslation model and the session translates asbase.default:
null2 fields
-
codestring requiredA machine-readable code.
-
messagestring requiredWhat runs instead, and what to do.
-
{ "id": "0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b", "created_at": "2026-10-12T09:04:17.210Z", "url": "wss://eu1.api.gladia.io/v2/live?token=eyJhbGciOi...", "warnings": [ { "code": "model_deprecated", "message": "string" } ]} 400 The request is invalid: validation_errors lists why. On POST /v2/live, also a model this region does not run (model … is not available in region …), or a feature the model named does not run (translation is not available with model … in region eu: use solaria-3), or a language no endpoint of the model transcribes (language fr is not available with model solaria-2 in region eu: use solaria-3), or a translation target no endpoint of the model translates into (translation target pl is not available with model solaria-3 in region eu: use solaria-4).
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error_code": "string"}401 No API key, or an unknown one.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error_code": "string"} 402 Your workspace has no credits left (insufficient_credits): new sessions are refused until credits are added; sessions already running are not stopped.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error_code": "string"}403 The key may not do this (its scopes, or the addresses it may be used from).
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error_code": "string"} 429 Your account already has its maximum number of open sessions, or every model that runs the session is full right now (no inference capacity available right now, retry later, with a Retry-After header in seconds).
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error_code": "string"} 500 No model in this region runs the session as asked (its model, languages and features together): no inference endpoint available.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error_code": "string"}503 The service cannot answer right now: try again.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error_code": "string"}