Skip to content

Initiate a session

POST /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

Terminal window
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
}
}'

Try it

Parameters

  • region string · query

    Where the audio is processed: eu1 (Europe) or us1 (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-west are 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. Use eu1 or us1 instead.

    one of: eu1, us1, eu, us, eu-west, us-west

Body

  • encoding string

    Encoding of the audio you send.

    default: "wav/pcm" · one of: wav/pcm, wav/alaw, wav/ulaw

  • bit_depth integer

    Bit depth of the audio. wav/alaw and wav/ulaw are 8-bit.

    default: 16 · one of: 8, 16, 24, 32

  • sample_rate integer

    Sample rate of the audio, in Hz.

    default: 16000 · one of: 8000, 16000, 32000, 44100, 48000

  • channels integer

    Number 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_metadata object

    Any JSON object, kept with the session: returned by GET /v2/live/{id}, sent to your callback, and a filter of GET /v2/live.

  • post_session_metadata object

    Any JSON object, kept in the session's request_params and returned by GET /v2/live/{id}. PATCH /v2/live/{id} replaces it once the session has ended.

  • model string

    The 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

  • endpointing number

    Silence, 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_endpointing number

    Longest 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 finals closes on a turn or a sentence.

    default: 5 · 5 to 60

  • language_config object

    The languages to expect.

    2 fields
    • languages array of string

      The 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_switching boolean

      Detect the language as the conversation goes, among languages when given: for speakers who switch languages.

      default: false

  • pre_processing object

    What 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_enhancer boolean

      Reduce 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_threshold number 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_processing object

    Processing applied to each final transcript, during the session.

    13 fields
    • custom_vocabulary boolean

      Bias the transcription toward the words of custom_vocabulary_config.

      default: false

    • custom_vocabulary_config object

      The words to favour. Required with custom_vocabulary.

      default: null

      2 fields
      • vocabulary array of string or object required

        Words or phrases, as strings or as objects with their own options.

        4 fields
        • value string required

          The word or phrase.

        • intensity number

          How strongly it is favoured, from 0 to 1.

          default: null · 0 to 1

        • pronunciations array of string

          Other ways it may be pronounced, written as they sound.

          default: null

        • language string deprecated

          Gladia 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_intensity number

        How strongly the words are favoured, from 0 to 1, when an entry sets none.

        default: null · 0 to 1

    • custom_spelling boolean

      Rewrite words as custom_spelling_config says.

      default: false

    • custom_spelling_config object

      The spellings to apply. Required with custom_spelling.

      default: null

      1 fields
      • spelling_dictionary object required

        The spelling to write (key) for each variant heard (values): {"Gladia": ["gladya", "glad ia"]}. Whole words, case-insensitive.

    • translation boolean

      Translate each final transcript into the target languages.

      default: false

    • translation_config object

      The target languages. Required with translation.

      default: null

      9 fields
      • target_languages array of string required

        The languages to translate into (ISO 639-1 codes).

        at least 1 item(s)

      • model string

        Gladia's translation model. enhanced is cascade mode (every language by the LLM) when the workspace has its own LLM and no mode is given; otherwise the session translates as base, and the init's answer says so in its warnings (translation_model_fallback). The other values change nothing.

        default: "base" · one of: base, batch, enhanced

      • mode string

        How 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, cascade works as auto. The custom vocabulary is the LLM's glossary: its names are spelled as written in every language. A spoken session (speech) is always direct: cascade is refused with it.

        default: "auto" · one of: auto, direct, cascade

      • match_original_utterances boolean deprecated

        Gladia 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

      • lipsync boolean deprecated

        Gladia 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_adaptation boolean

        false: a literal translation, the LLM gets neither the context nor the previous sentences.

        default: true

      • context string

        A 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 when context_adaptation is false.

        default: null

      • informal boolean

        Translate 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 to translation): without one, a 400 realtime_processing.translation_config.informal: not supported: no LLM is configured on this gateway. Also refused with mode: "direct" and with speech.

        default: false

      • speech object

        Speak the translations on the session's own WebSocket, one voice per target language (translation_chunk and translation_audio messages, 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" (and model: "enhanced") is refused with speech.

        default: null

        7 fields
        • model string

          The 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

        • voice string

          A preset voice of the model, or the id of a stored voice (POST /v2/tts/voices).

          default: "default"

        • sample_rate integer

          default: 24000 · one of: 8000, 16000, 22050, 24000, 44100, 48000

        • speed number

          The 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_voices integer

          Clone 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_consent boolean

          Every speaker of the stream agreed to the cloning.

          default: false

        • latency string

          How soon each translation is cut to be spoken: standard waits for enough of the source for the target's word order, low cuts 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_recognition boolean

      The same as the top-level named_entity_recognition: true.

      default: false

    • sentiment_analysis boolean or object

      The sentiment (positive, neutral, negative) and emotion of each final, in a sentiment_analysis message after it.

      default: false

      1 fields
      • use_audio boolean

        default: false

    • keyterms_prompt array of string

      Names and terms the transcript must get right, even those custom_vocabulary still misses, as written: at most 100 terms of at most 6 words each. Alone or with custom_vocabulary.

      default: null

    • structured_data_extraction any deprecated

      Accepted 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_config any deprecated

      Accepted 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_timestamps any deprecated

      Accepted 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_processing any deprecated

      Accepted 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_processing object

    Kept for Gladia's cloud API: holds only deprecated fields, accepted and ignored.

    1 fields
    • chapterization any deprecated

      Accepted 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_config object

    The messages sent on the WebSocket.

    11 fields
    • receive_partial_transcripts boolean

      Partial transcripts, updated while the utterance is spoken.

      default: false

    • receive_committed_text boolean

      Each partial also carries utterance.committed_text, its words that will not change any more.

      default: false

    • receive_final_transcripts boolean

      The final transcript of each utterance.

      default: true

    • receive_speech_events boolean

      speech_start and speech_end.

      default: true

    • receive_pre_processing_events boolean

      Pre-processing messages.

      default: true

    • receive_realtime_processing_events boolean

      Messages of the realtime processing: translation, named_entity_recognition, sentiment_analysis, speculation.

      default: true

    • receive_post_processing_events boolean

      post_transcript, post_summarization and post_final_transcript, at the end.

      default: true

    • receive_acknowledgments boolean

      audio_chunk and stop_recording acknowledgments.

      default: true

    • receive_errors boolean

      error messages.

      default: true

    • receive_lifecycle_events boolean

      start_recording, end_recording and end_session.

      default: false

    • transcript_message any deprecated

      Accepted 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.

  • callback boolean

    Also send the session's messages to callback_config.url, by HTTP POST.

    default: false

  • callback_config object

    Where and which messages the callback receives. Required with callback.

    default: null

    11 fields
    • url string required

      The HTTPS URL that receives the messages, one POST each.

      uri

    • receive_partial_transcripts boolean

      Partial transcripts.

      default: false

    • receive_final_transcripts boolean

      Final transcripts.

      default: true

    • receive_speech_events boolean

      speech_start and speech_end.

      default: false

    • receive_pre_processing_events boolean

      Pre-processing messages.

      default: true

    • receive_realtime_processing_events boolean

      Messages of the realtime processing.

      default: true

    • receive_post_processing_events boolean

      post_transcript, post_summarization and post_final_transcript.

      default: true

    • receive_acknowledgments boolean

      Acknowledgments.

      default: false

    • receive_errors boolean

      error messages.

      default: false

    • receive_lifecycle_events boolean

      start_session, start_recording, end_recording and end_session.

      default: true

    • secret any deprecated

      Accepted 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_receipt boolean

    Acknowledge 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_s integer

    The 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; its end_session message and the WebSocket close say max_session_duration.

    default: null · at least 1

  • profile string

    Latency profile: fast gives the earliest transcripts, precise the most accurate ones. The same as a profile in model. Omitted: your account's default profile, else the platform's default profile (medium unless your administrator changed it) on a default model, else the model's own default.

    default: null · one of: fast, medium, balanced, precise

  • diarization boolean

    Speaker labels on single-channel audio: each utterance and word gets a speaker number.

    default: false

  • diarization_config object

    Diarization options.

    12 fields
    • number_of_speakers integer

      Expected number of speakers, when you know it (at least 1).

      default: null · at least 1

    • max_speakers integer

      Highest number of speakers to tell apart (at least 1). diarization-v1 tells at most 8 apart: a higher value is served 8.

      default: null · at least 1

    • min_speakers integer

      Accepted for Gladia compatibility; the streaming diarizer does not use it.

      default: null · at least 1

    • enhanced boolean

      Accepted for Gladia compatibility; the streaming diarizer does not use it.

      default: null

    • backend string

      The diarization model (diarization-v1…). Omitted, the server's default.

      default: null

    • chunk_ms integer

      Audio 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_frames integer

      The same step, in 80 ms frames.

      default: null · at least 0

    • right_context_ms integer

      Lookahead after each step, in milliseconds (a multiple of 80); only with chunk_ms or chunk_frames.

      default: null · at least 0

    • right_context_frames integer

      The same lookahead, in 80 ms frames.

      default: null · at least 0

    • spkcache_frames integer

      Speaker memory, in 80 ms frames (clamped to 32..1024).

      default: null · at least 0

    • fifo_frames integer

      Recent-audio queue of the speaker memory, in 80 ms frames (clamped to 16..1024).

      default: null · at least 0

    • spkcache_update_period integer

      Frames between two updates of the speaker memory.

      default: null · at least 0

  • punctuation boolean

    Punctuation and casing of the transcripts. On unless false.

    default: true

  • end_of_turn boolean or object

    End-of-turn detection for voice agents: an end_of_turn message when the speaker has finished their turn, judged from how they speak and not from silence alone. true uses the defaults (GET /v2/live/defaults), an object overrides some of them. Off when omitted.

    default: false

    13 fields
    • eot_threshold number

      End-of-turn probability, between 0 and 1 (excluded), above which the turn ends (default 0.9).

      default: null · 0 to 1

    • threshold number

      Deprecated name of eot_threshold, accepted until January 31, 2027; both with different values is a 400.

      default: null · 0 to 1

    • silence_ms integer

      Silence, in milliseconds, before a turn is evaluated.

      default: null · 0 to 10000

    • stop_s number

      Silence, in seconds, that ends the turn whatever the probability.

      default: null · 0 to 60

    • emit_scores boolean

      Also send an end_of_turn_score message for each evaluation, to calibrate eot_threshold.

      default: null

    • window_s number

      Audio, in seconds, an evaluation reads before the silence (at most 8).

      default: null · 0 to 8

    • vad_threshold number

      Speech 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_confident integer

      Silence, 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_ms integer

      Deprecated 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_ms integer

      Interval, in milliseconds, between two evaluations of the same silence.

      default: null · 0 to 10000

    • eager_eot_threshold number

      Probability, between 0 and 1 (excluded) and at most eot_threshold, from which an eager_end_of_turn is sent before the turn is confirmed; a turn_resumed follows if the speaker goes on. Off when omitted.

      default: null · 0 to 1

    • speculation boolean or object

      true or {"threshold": 0.85}: the eager_end_of_turn and end_of_turn messages carry the text your agent starts its turn on, and the final that closes the turn carries a speculation block that says whether that turn can be kept (keep) or must be recomputed (discard). Off when omitted.

      default: null

      2 fields
      • threshold number

        Similarity, above 0 and at most 1 (default 0.85), from which the final recommends keeping the agent's turn.

        default: null · 0 to 1

      • entities boolean or string or array of string or object

        Which 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 when named_entity_recognition or pii is on) counts every type the session tags, false turns the check off, or a preset, a type, a list or {"enable": [...], "disable": [...]} in the named_entity_recognition syntax narrows it. Needs named_entity_recognition or pii: the entities are read from the final's own tags, the text your agent started on is never tagged.

        default: null

        2 fields
        • enable array of string

          The entity types or presets that count (default every type the session tags).

          default: null

        • disable array of string

          The entity types or presets removed from enable.

          default: null

    • cut_on_turn_change boolean

      Whether 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. false keeps the turn whole. For a session with no turn_router; with one, use turn_router.cut_on_turn_change (both set must agree).

      default: null

  • finals string

    Which 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 of endpointing, or, with solaria-3, a short pause right after a sentence ends, so fluent speech gets one final per sentence. endpointing: the endpointing silence or maximum_duration_without_endpointing, nothing else (Gladia's cloud behaviour). Omitted: finals close as with endpointing, 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

  • adapter string

    A 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), in language_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

  • finalization boolean

    The 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-recorded with from_session_id): the session's result names it (finalization.id, result_url) and the job's callback, at your callback_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

  • numerals boolean or object

    Spoken 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_raw keeps the words. With turn_router.route_numerals on (the default; not with turn_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"). true uses the countries of the language spoken, an object sets the country.

    default: true

    1 fields
    • region string

      The 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_acronyms boolean

    Spelled 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_raw keeps the letters as heard, and the word's start / end run 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

  • emails boolean or object

    Dictated 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_commands boolean

    Spoken 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, cap and all caps. A word said in a sentence ("a comma separated list") stays a word. Only on solaria-2-en-dict, where it is on when omitted; false turns it off. Another model refuses true (GET /v2/live/capabilities).

    default: null

  • spelled_letters string

    How 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" (canonical is the same), comma "S, M, I, T, H" and dots_space "S. M. I. T. H." (one word per letter in words), dashed "S-M-I-T-H", dots "S.M.I.T.H." and joined "SMITH". The closing period stays after the run, never doubled ("S.M.I.T.H." ends the sentence). Gotcha: with dashed, dots and joined a run is one entry in words (from its first letter to its last), not one per letter: a client aligning on words must 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." with space, "N.A.S.A." becomes "NASA." with joined). A single letter alone ("vitamin D", "plan B") is never touched. Applied by Gladia Connect's own models; a session served by the cloud solaria-1 keeps the model's form.

    default: null · one of: model, space, canonical, dashed, dots, dots_space, joined, comma

  • addresses boolean or object

    Dictated 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: false

    5 fields
    • limit integer

      How many resolver suggestions to read (1 to 20).

      default: null · 1 to 20

    • min_score number

      Score, from 0 to 1, under which a suggestion is ignored.

      default: null · 0 to 1

    • country string

      Restrict the addresses to this country.

      default: null

    • city string

      City used when the transcript names none.

      default: null

    • require_coverage boolean

      Only correct an address the resolver covers.

      default: null

  • audio_redaction boolean or object

    Audio redaction: every packet the client sends is echoed back as an audio_passthrough message, 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. true beeps the pii preset at 1 kHz; {entities, threshold, frequency_hz} chooses the entities (the pii option'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: false

    3 fields
    • entities string or array of string or object

      default: "pii"

      2 fields
      • enable array of string

        The entity types or presets that count (default every type the session tags).

        default: null

      • disable array of string

        The entity types or presets removed from enable.

        default: null

    • threshold number

      default: 0.5 · 0 to 1

    • frequency_hz integer

      default: 1000 · 100 to 20000

  • named_entity_recognition boolean or object

    Named entities (people, places, organizations, dates, amounts…) tagged in the final transcripts, and a named_entity_recognition message after each final. true tags every type.

    default: false

    4 fields
    • entities string or array of string or object

      Which types: a preset (pii, pci, phi, contact, financial, name, location, date…), a list of types and presets, or {"enable": [...], "disable": [...]}.

      default: null

      2 fields
      • enable array of string

        The entity types or presets that count (default every type the session tags).

        default: null

      • disable array of string

        The entity types or presets removed from enable.

        default: null

    • threshold number

      Confidence, from 0 to 1, under which an entity is ignored.

      default: 0.5 · 0 to 1

    • debug boolean

      Every final also carries entity_candidates, what the model almost tagged, to see why a span was missed.

      default: false

    • alternative_names boolean or object

      true or {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: false

      3 fields
      • threshold number

        The lowest probability, from 0 to 1, an alternative must have to be returned.

        default: 0.05 · 0 to 1

      • max_results integer

        The most alternatives per name, from 1 to 20.

        default: 5 · 1 to 20

      • census boolean

        Add each name's census data (frequency, share, rank, gender).

        default: true

  • pii boolean or object

    Personal data (names, phone numbers, emails, card numbers…) redacted in the final transcripts, and a pii message after each final. With redaction on, no partial transcript is sent.

    default: false

    7 fields
    • entities string or array of string or object

      Which 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
      • enable array of string

        The entity types or presets that count (default every type the session tags).

        default: null

      • disable array of string

        The entity types or presets removed from enable.

        default: null

    • mode string

      marker replaces the data with an element (<pii:phone_number id="1"/>), mask with mask characters inside the element, tag keeps the text inside the element.

      default: "marker" · one of: marker, mask, tag

    • threshold number

      Confidence, from 0 to 1, under which a span is not redacted.

      default: 0.5 · 0 to 1

    • mask_character string

      The character of mask mode.

      default: "*"

    • coreference string

      How mentions of the same entity get the same id: heuristics (the default), exact (same text only) or off.

      default: "heuristics" · one of: heuristics, exact, off

    • return_entities boolean

      Also return the redacted text in the pii message (text).

      default: false

    • debug boolean

      Every final also carries entity_candidates, what the model almost tagged, to see why a span was missed.

      default: false

  • turn_router boolean or object

    The 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 finals policy that waits for it (sentence, sentence_or_end_of_turn, end_of_turn); with finals omitted, finals close on the pause without it. false turns it off.

    11 fields
    • hold boolean

      The number hold.

      default: null

    • route_numerals boolean

      Spoken numbers are written for what they are in the sentence (a phone number, a date, an amount).

      default: null

    • emit boolean

      A turn verdict on every final.

      default: null

    • arbitrate_cuts boolean

      No cut before the text of the pause is known.

      default: null

    • suppress_eot_on_wait boolean

      The end of turn waits while a hold keeps the turn open (it is sent if the hold expires).

      default: null

    • words boolean

      The spoken number words of the transcript's language hold the turn too.

      default: null

    • debug boolean

      Finals carry cut, what closed the segment.

      default: null

    • cut_on_turn_change boolean

      A 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"…). false keeps the hold across that pause: for pure dictation flows where any split hurts.

      default: null

    • hold_streams string or array of string

      The 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_s number

      A hold ends after this many seconds with no new text (0.5 to 30).

      default: null · 0.5 to 30

    • context string

      Accepted for compatibility, not used.

      default: null · one of: none, prev_final

  • xml_events boolean

    Every 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 transcript message, 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 with xml_. The acknowledgments stay JSON, the callback and the session's result are unchanged. Chosen at the init. Off by default.

    default: false

  • session_config object

    Lets the session change its settings while it runs, with the WebSocket's session_config message (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: null

    1 fields
    • allowed array of string

      The settings the session may change while it runs (session_config message); absent: every one that may change.

      default: null

  • x_gladia_version any deprecated

    Accepted 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_agent any deprecated

    Accepted 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_pipeline any deprecated

    Accepted 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_mode any deprecated

    Accepted 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_words any deprecated

    Accepted 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 any deprecated

    Accepted 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_region any deprecated

    Accepted and ignored, except a region this address does not serve (us-west on 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_id any deprecated

    Accepted 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_id any deprecated

    Accepted 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_id any deprecated

    Accepted 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_id any deprecated

    Accepted 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_id any deprecated

    Accepted 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_id any deprecated

    Accepted 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.

  • metadata any deprecated

    Accepted 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.

  • priority any deprecated

    Accepted 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_url any deprecated

    Accepted 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_behaviour any deprecated

    Accepted 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.

  • region any deprecated

    Accepted 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_mode any deprecated

    Accepted 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_config any deprecated

    Accepted 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_hints any deprecated

    Accepted 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_prompts any deprecated

    Accepted 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.
  • id string required

    Identifier of the session (a time-ordered UUID).

  • created_at string required

    Creation date (ISO 8601, UTC).

  • url string required

    WebSocket 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.

  • warnings array of object

    What the session runs differently from what the body asked, when it does: model_deprecated when it names solaria-1, a former real-time model, on a cluster that runs another model instead; translation_model_fallback when it asks the enhanced translation model and the session translates as base.

    default: null

    2 fields
    • code string required

      A machine-readable code.

    • message string required

      What runs instead, and what to do.

Example
{
"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).
Error body
{
"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.
Error body
{
"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.
Error body
{
"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).
Error body
{
"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).
Error body
{
"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.
Error body
{
"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.
Error body
{
"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"
}