> ## AI Agent Context
> - Full documentation index: https://aistudio.google.com/llms.txt
> - Gemini Docs MCP server (consistent live info): https://gemini-api-docs-mcp.dev
> - Coding agent skills & setup guide: https://aistudio.google.com/docs/coding-agents.md

# Live API capabilities guide

This is a comprehensive guide that covers capabilities and configurations
available with the Live API.
See [Get started with Live API](/docs/live-api) page for an
overview and sample code for common use cases.

## Before you begin  {% class="hide-from-toc" id="before-you-begin" %}

- **Familiarize yourself with core concepts:** If you haven't already done so,
  read the [Get started with Live API ](/docs/live-api) page first.
  This will introduce you to the fundamental principles of the Live API, how it
  works, and the different [implementation approaches](/docs/live-api#implementation-approach).
-   **Try the Live API in AI Studio:** You may find it useful to try the
    Multimodal Live API in
    [Google AI Studio](https://aistudio.google.com/app/live-api) before you
    start building. To use the Live API in Google AI Studio, select **Stream**.

## Model comparison  {% id="model-comparison" %}

The following table summarizes the key differences between
[Gemini 4 Live](/docs/models/gemini-4-live),
[Gemini 3.8 Live](/docs/models/gemini-3.8-live),
[Gemini 3.8 Live Extended Thinking](/docs/models/gemini-3.8-live-extended-thinking),
[Gemini 3.1 Flash Live Preview](/docs/models/gemini-3.1-flash-live-preview), and
[Gemini 2.5 Flash Live Preview](/docs/models/gemini-2.5-flash-native-audio-preview-12-2025):

{% table %}
  * Feature
  * Gemini 4 Live
  * Gemini 3.8 Live
  * Gemini 3.8 Live Extended Thinking
  * Gemini 3.1 Flash Live Preview
  * Gemini 2.5 Flash Live Preview

  ---

  * **[Thinking](/docs/live-api/thinking)**
  * Unified endpoint controlled by `thinkingLevel`. Omit or set `MINIMAL` for fast default responses; set `LOW`, `MEDIUM`, or `HIGH` for background reasoning and thought summaries (`includeThoughts`). `thinkingBudget` and `XHIGH` are not supported.
  * Supported (interleaved reasoning). `thinkingLevel` is not supported; omit from setup.
  * Supported (configurable background reasoning: `low`, `medium`, `high`; `minimal` is not supported). Supports thought summaries (`includeThoughts`).
  * Uses `thinkingLevel` (`minimal`, `low`, `medium`, `high`). Defaults to `minimal` to optimize for lowest latency.
  * Uses `thinkingBudget` to set thinking token budget.

  ---

  * **[Receiving response](/api-reference/live#BidiGenerateContentServerContent)**
  * A single server event can contain multiple content parts. When `thinkingLevel` is `LOW`, `MEDIUM`, or `HIGH`, check `server_content.interaction_status` (`IN_PROGRESS` versus `IDLE`) instead of relying solely on `turnComplete: true`.
  * A single server event can contain multiple content parts simultaneously (for example, `inlineData` and transcript). Ensure your code processes all parts in each event to avoid missing content.
  * A single server event can contain multiple content parts simultaneously. When asynchronous reasoning is active, `turnComplete: true` does not indicate an idle session; check `interaction_status` (`IN_PROGRESS` versus `IDLE`).
  * A single server event can contain multiple content parts simultaneously (for example, `inlineData` and transcript). Ensure your code processes all parts in each event to avoid missing content.
  * Each server event contains only one content part. Parts are delivered in separate events.

  ---

  * **[Client content](/docs/live-api/capabilities#incremental-updates)**
  * `send_client_content` is supported throughout the session lifecycle with explicit roles (`user` or `model`). Also supports mid-session [`send_context_update`](/docs/live-api/session-management#context-updates) for `system_instruction` and `tools`.
  * `send_client_content` is supported throughout the entire session lifecycle with explicit roles (`user` or `model`). `turn_complete=true` unconditionally interrupts generation.
  * `send_client_content` is supported throughout the entire session lifecycle with explicit roles (`user` or `model`). `turn_complete=true` unconditionally interrupts generation.
  * `send_client_content` is supported throughout the entire session lifecycle with explicit roles (`user` or `model`). `turn_complete=true` unconditionally interrupts generation.
  * `send_client_content` is supported throughout the conversation for sending incremental content updates and establishing context.

  ---

  * **[Turn coverage](/api-reference/live#RealtimeInputConfig)**
  * Defaults to `TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO`. The model's turn includes detected audio activity and all video frames.
  * Defaults to `TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO`. The model's turn includes detected audio activity and all video frames.
  * Defaults to `TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO`. The model's turn includes detected audio activity and all video frames.
  * Defaults to `TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO`. The model's turn includes detected audio activity and all video frames.
  * Defaults to `TURN_INCLUDES_ONLY_ACTIVITY`. The model's turn includes only the detected activity.

  ---

  * **[Custom VAD](/docs/live-api/capabilities#disable-automatic-vad)** (`activity_start`/`activity_end`)
  * Supported. Disable automatic VAD and send `activityStart` and `activityEnd` messages manually to control turn boundaries.
  * Supported. Disable automatic VAD and send `activityStart` and `activityEnd` messages manually to control turn boundaries.
  * Supported. Disable automatic VAD and send `activityStart` and `activityEnd` messages manually to control turn boundaries.
  * Supported. Disable automatic VAD and send `activityStart` and `activityEnd` messages manually to control turn boundaries.
  * Supported. Disable automatic VAD and send `activityStart` and `activityEnd` messages manually to control turn boundaries.

  ---

  * **[Automatic VAD configuration](/docs/live-api/capabilities#configure-automatic-vad)**
  * Supported (with upgraded telephony VAD for noisy 8kHz audio). Configure `start_of_speech_sensitivity`, `end_of_speech_sensitivity`, `prefix_padding_ms`, and `silence_duration_ms`.
  * Supported. Configure parameters such as `start_of_speech_sensitivity`, `end_of_speech_sensitivity`, `prefix_padding_ms`, and `silence_duration_ms`.
  * Supported. Configure parameters such as `start_of_speech_sensitivity`, `end_of_speech_sensitivity`, `prefix_padding_ms`, and `silence_duration_ms`.
  * Supported. Configure parameters such as `start_of_speech_sensitivity`, `end_of_speech_sensitivity`, `prefix_padding_ms`, and `silence_duration_ms`.
  * Supported. Configure parameters such as `start_of_speech_sensitivity`, `end_of_speech_sensitivity`, `prefix_padding_ms`, and `silence_duration_ms`.

  ---

  * **[Asynchronous function calling](/docs/live-api/tools#async-function-calling)** (`behavior: NON_BLOCKING`)
  * In default/`MINIMAL` mode: supports both `NON_BLOCKING` (default) and `BLOCKING` tools, plus function response scheduling. In `LOW`/`MEDIUM`/`HIGH` mode: `NON_BLOCKING` only; scheduling is not supported.
  * Supported (default). Set `behavior: NON_BLOCKING` or use backward-compatible blocking mode (`behavior: BLOCKING`). Function scheduling (`SILENT`, `WHEN_IDLE`, `INTERRUPTED`) is supported.
  * Supported (Async only). Only `NON_BLOCKING` execution is supported. Blocking mode and function scheduling are not supported.
  * Not supported. Function calling is synchronous only. The model waits for the tool response before responding.
  * Supported (both synchronous and asynchronous).

  ---

  * **[Proactive audio](/docs/live-api/capabilities#proactive-audio) & [Proactive video](/docs/live-api/capabilities#proactive-video)**
  * Proactive audio is permanently enabled. Proactive video (`proactive_video: true`) is supported.
  * Permanently enabled (`proactive_audio: false` returns an error). Proactive video not supported.
  * Permanently enabled (`proactive_audio: false` returns an error). Proactive video not supported.
  * Not supported
  * Proactive audio is configurable (`proactive_audio: true`). Proactive video not supported.

  ---

  * **[Voices](/docs/live-api/capabilities#change-voice-and-language)**
  * Extended voice library (over 2,000 preset voices) and custom [voice replication](/docs/voice-replication) (Tier 3 projects). Designed voices are not supported.
  * 30 preset voices.
  * 30 preset voices.
  * 30 preset voices.
  * 30 preset voices.

  ---

  * **[Affective dialogue](/docs/live-api/capabilities#affective-dialog)**
  * Not supported (removed; omit `enable_affective_dialog`).
  * Not supported (removed; omit `enable_affective_dialog`).
  * Not supported (removed; omit `enable_affective_dialog`).
  * Not supported
  * Supported. Set `enable_affective_dialog` to `true` in session config.
{% /table %}

To migrate from Gemini 3.8 Live or Gemini 3.8 Live Extended Thinking to Gemini 4
Live, see the [migration guide](/docs/models/gemini-4-live#migrating). To learn
more about configurable thinking levels, see
[Thinking in the Live API](/docs/live-api/thinking).

## Establishing a connection  {% id="establish-connection" %}

The following example shows how to create a connection with an API key:

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  import asyncio
  from google import genai
  
  client = genai.Client(http_options={"api_version": "v1beta"})
  
  model = "gemini-4-live"
  config = {"response_modalities": ["AUDIO"]}
  
  async def main():
      async with client.aio.live.connect(model=model, config=config) as session:
          print("Session started")
          # Send content...
  
  if __name__ == "__main__":
      asyncio.run(main())
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  import { GoogleGenAI, Modality } from '@google/genai';
  
  const ai = new GoogleGenAI({ httpOptions: { apiVersion: "v1beta" } });
  const model = 'gemini-4-live';
  const config = { responseModalities: [Modality.AUDIO] };
  
  async function main() {
  
    const session = await ai.live.connect({
      model: model,
      callbacks: {
        onopen: function () {
          console.debug('Opened');
        },
        onmessage: function (message) {
          console.debug(message);
        },
        onerror: function (e) {
          console.debug('Error:', e.message);
        },
        onclose: function (e) {
          console.debug('Close:', e.reason);
        },
      },
      config: config,
    });
  
    console.debug("Session started");
    // Send content...
  
    session.close();
  }
  
  await main();
  ```

  {% /tab %}

{% /tabs %}

## Interaction modalities  {% id="modalities" %}

The following sections provide examples and supporting context for the different
input and output modalities available in Live API.

### Sending audio  {% id="send-receive-audio" %}

Audio needs to be sent as raw PCM data (raw 16-bit PCM audio, 16kHz, little-endian).

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  # Assuming 'chunk' is your raw PCM audio bytes
  await session.send_realtime_input(
      audio=types.Blob(
          data=chunk,
          mime_type="audio/pcm;rate=16000"
      )
  )
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  // Assuming 'chunk' is a Buffer of raw PCM audio
  session.sendRealtimeInput({
    audio: {
      data: chunk.toString('base64'),
      mimeType: 'audio/pcm;rate=16000'
    }
  });
  ```

  {% /tab %}

{% /tabs %}

### Audio formats  {% id="audio-formats" %}

Audio data in the Multimodal Live API is always raw, little-endian,
16-bit PCM. Audio output always uses a sample rate of 24kHz. Input audio
is natively 16kHz, but the Multimodal Live API will resample if needed
so any sample rate can be sent. To convey the sample rate of input audio, set
the MIME type of each audio-containing [Blob](/api-reference/generate-content#Resource:Content) to a value
like `audio/pcm;rate=16000`.

### Receiving audio  {% id="receive-audio" %}

The model's audio responses are received as chunks of data.

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  async for response in session.receive():
      if response.server_content and response.server_content.model_turn:
          for part in response.server_content.model_turn.parts:
              if part.inline_data:
                  audio_data = part.inline_data.data
                  # Process or play the audio data
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  // Inside the onmessage callback
  const content = response.serverContent;
  if (content?.modelTurn?.parts) {
    for (const part of content.modelTurn.parts) {
      if (part.inlineData) {
        const audioData = part.inlineData.data;
        // Process or play audioData (base64 encoded string)
      }
    }
  }
  ```

  {% /tab %}

{% /tabs %}

### Sending text  {% id="send-text" %}

Text can be sent using `send_realtime_input` (Python) or `sendRealtimeInput` (JavaScript).

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  await session.send_realtime_input(text="Hello, how are you?")
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  session.sendRealtimeInput({
    text: 'Hello, how are you?'
  });
  ```

  {% /tab %}

{% /tabs %}

### Sending video  {% id="send-video" %}

Video frames are sent as individual images (e.g., JPEG or PNG) at a specific frame rate (max 1 frame per second).

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  # Assuming 'frame' is your JPEG-encoded image bytes
  await session.send_realtime_input(
      video=types.Blob(
          data=frame,
          mime_type="image/jpeg"
      )
  )
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  // Assuming 'frame' is a Buffer of JPEG-encoded image data
  session.sendRealtimeInput({
    video: {
      data: frame.toString('base64'),
      mimeType: 'image/jpeg'
    }
  });
  ```

  {% /tab %}

{% /tabs %}

#### Incremental content updates  {% id="incremental-updates" %}

Use incremental updates to send text input, establish session context, or
restore session context. For short contexts you can send turn-by-turn
interactions to represent the exact sequence of events:

{% callout type="note" %}
   For Gemini 3.8 and 3.1 models, if you want to seed
  initial conversation history using `send_client_content` before starting a
  realtime stream, set
  [`initial_history_in_client_content`](/api-reference/live#HistoryConfig)
  to `true` in your session config's `history_config`. You can also use
  `send_client_content` mid-session to append structured text turns. 

{% /callout %}

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  turns = [
      {"role": "user", "parts": [{"text": "What is the capital of France?"}]},
      {"role": "model", "parts": [{"text": "Paris"}]},
  ]
  
  await session.send_client_content(turns=turns, turn_complete=False)
  
  turns = [{"role": "user", "parts": [{"text": "What is the capital of Germany?"}]}]
  
  await session.send_client_content(turns=turns, turn_complete=True)
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  let inputTurns = [
    { "role": "user", "parts": [{ "text": "What is the capital of France?" }] },
    { "role": "model", "parts": [{ "text": "Paris" }] },
  ]
  
  session.sendClientContent({ turns: inputTurns, turnComplete: false })
  
  inputTurns = [{ "role": "user", "parts": [{ "text": "What is the capital of Germany?" }] }]
  
  session.sendClientContent({ turns: inputTurns, turnComplete: true })
  ```

  {% /tab %}

  

{% /tabs %}

For longer contexts it's recommended to provide a single message summary to free
up the context window for subsequent interactions. See
[Session Resumption](/docs/live-api/session-management#session-resumption) for
another method for loading session context.

### Audio transcriptions  {% id="audio-transcription" %}

In addition to the model response, you can also receive transcriptions of
both the audio output and the audio input.

To enable transcription of the model's audio output, send
`output_audio_transcription` in the setup config. The transcription language is
inferred from the model's response.

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  import asyncio
  from google import genai
  from google.genai import types
  
  client = genai.Client(http_options={"api_version": "v1beta"})
  model = "gemini-4-live"
  
  config = {
      "response_modalities": ["AUDIO"],
      "output_audio_transcription": {}
  }
  
  async def main():
      async with client.aio.live.connect(model=model, config=config) as session:
          message = "Hello? Gemini are you there?"
  
          await session.send_client_content(
              turns={"role": "user", "parts": [{"text": message}]}, turn_complete=True
          )
  
          async for response in session.receive():
              if response.server_content.model_turn:
                  print("Model turn:", response.server_content.model_turn)
              if response.server_content.output_transcription:
                  print("Transcript:", response.server_content.output_transcription.text)
  
  if __name__ == "__main__":
      asyncio.run(main())
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  import { GoogleGenAI, Modality } from '@google/genai';
  
  const ai = new GoogleGenAI({ httpOptions: { apiVersion: "v1beta" } });
  const model = 'gemini-4-live';
  
  const config = {
    responseModalities: [Modality.AUDIO],
    outputAudioTranscription: {}
  };
  
  async function live() {
    const responseQueue = [];
  
    async function waitMessage() {
      let done = false;
      let message = undefined;
      while (!done) {
        message = responseQueue.shift();
        if (message) {
          done = true;
        } else {
          await new Promise((resolve) => setTimeout(resolve, 100));
        }
      }
      return message;
    }
  
    async function handleTurn() {
      const turns = [];
      let done = false;
      while (!done) {
        const message = await waitMessage();
        turns.push(message);
        if (message.serverContent && message.serverContent.turnComplete) {
          done = true;
        }
      }
      return turns;
    }
  
    const session = await ai.live.connect({
      model: model,
      callbacks: {
        onopen: function () {
          console.debug('Opened');
        },
        onmessage: function (message) {
          responseQueue.push(message);
        },
        onerror: function (e) {
          console.debug('Error:', e.message);
        },
        onclose: function (e) {
          console.debug('Close:', e.reason);
        },
      },
      config: config,
    });
  
    const inputTurns = 'Hello how are you?';
    session.sendClientContent({ turns: inputTurns });
  
    const turns = await handleTurn();
  
    for (const turn of turns) {
      if (turn.serverContent && turn.serverContent.outputTranscription) {
        console.debug('Received output transcription: %s\n', turn.serverContent.outputTranscription.text);
      }
    }
  
    session.close();
  }
  
  async function main() {
    await live().catch((e) => console.error('got error', e));
  }
  
  await main();
  ```

  {% /tab %}

  

{% /tabs %}

To enable transcription of the model's audio input, send
`input_audio_transcription` in setup config.

{% tabs %}
  

  {% tab filename="sample.py" label="Python" %}
  ```python
  import asyncio
  from pathlib import Path
  from google import genai
  from google.genai import types
  
  client = genai.Client(http_options={"api_version": "v1beta"})
  model = "gemini-4-live"
  
  config = {
      "response_modalities": ["AUDIO"],
      "input_audio_transcription": {},
  }
  
  async def main():
      async with client.aio.live.connect(model=model, config=config) as session:
          audio_data = Path("16000.pcm").read_bytes()
  
          await session.send_realtime_input(
              audio=types.Blob(data=audio_data, mime_type='audio/pcm;rate=16000')
          )
  
          async for msg in session.receive():
              if msg.server_content.input_transcription:
                  print('Transcript:', msg.server_content.input_transcription.text)
  
  if __name__ == "__main__":
      asyncio.run(main())
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  import { GoogleGenAI, Modality } from '@google/genai';
  import * as fs from "node:fs";
  import pkg from 'wavefile';
  const { WaveFile } = pkg;
  
  const ai = new GoogleGenAI({ httpOptions: { apiVersion: "v1beta" } });
  const model = 'gemini-4-live';
  
  const config = {
    responseModalities: [Modality.AUDIO],
    inputAudioTranscription: {}
  };
  
  async function live() {
    const responseQueue = [];
  
    async function waitMessage() {
      let done = false;
      let message = undefined;
      while (!done) {
        message = responseQueue.shift();
        if (message) {
          done = true;
        } else {
          await new Promise((resolve) => setTimeout(resolve, 100));
        }
      }
      return message;
    }
  
    async function handleTurn() {
      const turns = [];
      let done = false;
      while (!done) {
        const message = await waitMessage();
        turns.push(message);
        if (message.serverContent && message.serverContent.turnComplete) {
          done = true;
        }
      }
      return turns;
    }
  
    const session = await ai.live.connect({
      model: model,
      callbacks: {
        onopen: function () {
          console.debug('Opened');
        },
        onmessage: function (message) {
          responseQueue.push(message);
        },
        onerror: function (e) {
          console.debug('Error:', e.message);
        },
        onclose: function (e) {
          console.debug('Close:', e.reason);
        },
      },
      config: config,
    });
  
    // Send Audio Chunk
    const fileBuffer = fs.readFileSync("16000.wav");
  
    // Ensure audio conforms to API requirements (16-bit PCM, 16kHz, mono)
    const wav = new WaveFile();
    wav.fromBuffer(fileBuffer);
    wav.toSampleRate(16000);
    wav.toBitDepth("16");
    const base64Audio = wav.toBase64();
  
    // If already in correct format, you can use this:
    // const fileBuffer = fs.readFileSync("sample.pcm");
    // const base64Audio = Buffer.from(fileBuffer).toString('base64');
  
    session.sendRealtimeInput(
      {
        audio: {
          data: base64Audio,
          mimeType: "audio/pcm;rate=16000"
        }
      }
    );
  
    const turns = await handleTurn();
    for (const turn of turns) {
      if (turn.text) {
        console.debug('Received text: %s\n', turn.text);
      }
      else if (turn.data) {
        console.debug('Received inline data: %s\n', turn.data);
      }
      else if (turn.serverContent && turn.serverContent.inputTranscription) {
        console.debug('Received input transcription: %s\n', turn.serverContent.inputTranscription.text);
      }
    }
  
    session.close();
  }
  
  async function main() {
    await live().catch((e) => console.error('got error', e));
  }
  
  await main();
  ```

  {% /tab %}

{% /tabs %}

To improve how input transcription recognizes specific terms, such as proper
nouns, brand names, or technical terms, add a `custom_vocabulary` list to
`input_audio_transcription`. You can provide up to 1,000 terms, but best results
are typically achieved with up to 100 terms. For more details, see
[Custom vocabulary biasing](/docs/live-api/live-transcribe#custom-vocabulary-biasing).

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  config = {
      "response_modalities": ["AUDIO"],
      "input_audio_transcription": {
          "custom_vocabulary": ["Gemini", "Kubernetes", "BigQuery"],
      },
  }
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  const config = {
    responseModalities: [Modality.AUDIO],
    inputAudioTranscription: {
      customVocabulary: ['Gemini', 'Kubernetes', 'BigQuery'],
    },
  };
  ```

  {% /tab %}

{% /tabs %}

### Change voice and language  {% id="change-voice-and-language" %}

[Gemini 4 Live](/docs/models/gemini-4-live) supports the extended voice library
(over 2,000 preset voices). Browse and audition preset voices in
[Google AI Studio](https://aistudio.google.com/live?model=gemini-4-live), or
list them programmatically with `client.voices.list(type_=["prebuilt"])`
(`ai.voices.list({ type: ["prebuilt"] })` /
`GET /v1beta/voices?type=prebuilt`). For
[Tier 3 projects](/docs/rate-limits#usage-tiers), `gemini-4-live` also supports
custom replicated voices created with
[Voice replication](/docs/voice-replication). Designed voices
([Voice design](/docs/voice-design)) are not supported.

Pass a prebuilt voice name in `speech_config.voice_config.prebuilt_voice_config`
(or pass a prebuilt name, replicated `voice_...` ID, or stateless `voicekey_...`
in `speech_config.voice_config.voice`). On `gemini-4-live`, `gemini-3.8-live`,
and `gemini-3.8-live-extended-thinking`, you can also set `language_code` to a
BCP-47 locale (including regional English locales such as `en-US`, `en-GB`,
`en-AU`, `en-IN`, `en-NG`, and `en-SG`) to control voice language and accent
conditioning:

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  config = {
      "response_modalities": ["AUDIO"],
      "speech_config": {
          "voice_config": {"prebuilt_voice_config": {"voice_name": "Kore"}},
          "language_code": "en-GB",
      },
  }
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  const config = {
    responseModalities: [Modality.AUDIO],
    speechConfig: {
      voiceConfig: { prebuiltVoiceConfig: { voiceName: "Kore" } },
      languageCode: "en-GB",
    },
  };
  ```

  {% /tab %}

{% /tabs %}

If you set `language_code` without specifying `voice_config`, the API uses the
default voice (Zephyr) with your chosen locale. If you omit `language_code`,
prebuilt voices default to `en-US` conditioning, which can override accent
instructions in your prompt. Legacy Gemini 2.5 native audio models select the
language automatically and do not support setting `language_code`.

{% callout type="note" %}
  If you're using the `generateContent` API, the set of available voices is
  slightly different. See the
  [speech generation guide](/docs/speech-generation#voices) for `generateContent`
  audio generation voices.

{% /callout %}

The Multimodal Live API supports
[multiple languages](/docs/live-api/capabilities#supported-languages).

## Native audio capabilities  {% id="native-audio-output" %}

Our latest model, [Gemini 4 Live](/docs/models/gemini-4-live), features native
audio output for natural, realistic-sounding speech and improved multilingual
performance.

### Thinking  {% id="native-audio-output-thinking" %}

[Gemini 4 Live](/docs/models/gemini-4-live) (`gemini-4-live`) uses
`thinkingLevel` to control reasoning depth on a single endpoint:

*   Omit `thinkingLevel` or set `MINIMAL` for fast default responses with the
    lowest latency.
*   Set `LOW`, `MEDIUM`, or `HIGH` to enable background reasoning for complex,
    multi-step agentic tasks.

For legacy Gemini 3.8 models, `thinkingLevel` is not supported on
`gemini-3.8-live` and requires `gemini-3.8-live-extended-thinking` (`low`,
`medium`, `high`). For complete details and code examples, see
[Thinking in the Live API](/docs/live-api/thinking).

{% tabs %}
  

  {% tab filename="sample.py" label="Python" %}
  ```python
  model = "gemini-4-live"
  
  config = types.LiveConnectConfig(
      response_modalities=["AUDIO"],
      thinking_config=types.ThinkingConfig(
          thinking_level="MEDIUM",
      )
  )
  
  async with client.aio.live.connect(model=model, config=config) as session:
      # Send audio input and receive audio
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  const model = 'gemini-4-live';
  const config = {
    responseModalities: [Modality.AUDIO],
    thinkingConfig: {
      thinkingLevel: 'MEDIUM',
    },
  };
  
  async function main() {
  
    const session = await ai.live.connect({
      model: model,
      config: config,
      callbacks: ...,
    });
  
    // Send audio input and receive audio
  
    session.close();
  }
  
  await main();
  ```

  {% /tab %}

  

{% /tabs %}

Additionally, you can enable thought summaries by setting `includeThoughts` to
`true` in your configuration. See
[Receive thought summaries](/docs/thinking#summaries) for more
info:

{% tabs %}
  

  {% tab filename="sample.py" label="Python" %}
  ```python
  model = "gemini-4-live"
  
  config = types.LiveConnectConfig(
      response_modalities=["AUDIO"],
      thinking_config=types.ThinkingConfig(
          thinking_level="HIGH",
          include_thoughts=True
      )
  )
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  const model = 'gemini-4-live';
  const config = {
    responseModalities: [Modality.AUDIO],
    thinkingConfig: {
      thinkingLevel: 'HIGH',
      includeThoughts: true,
    },
  };
  ```

  {% /tab %}

{% /tabs %}

### Affective dialog  {% id="affective-dialog" %}

This feature lets Gemini adapt its response style to the input expression and
tone.

{% callout type="note" %}
  Supported on Gemini 2.5 Flash Live only. Removed in Gemini 4 Live, Gemini 3.8
  Live, and Gemini 3.8 Live Extended Thinking (omit `enable_affective_dialog`),
  and not supported on Gemini 3.1 Flash Live Preview.

{% /callout %}

To use affective dialog, set the api version to `v1beta` and set
`enable_affective_dialog` to `true` in the setup message:

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  client = genai.Client(http_options={"api_version": "v1beta"})
  
  config = types.LiveConnectConfig(
      response_modalities=["AUDIO"],
      enable_affective_dialog=True
  )
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  const ai = new GoogleGenAI({ httpOptions: {"apiVersion": "v1beta"} });
  
  const config = {
    responseModalities: [Modality.AUDIO],
    enableAffectiveDialog: true
  };
  ```

  {% /tab %}

{% /tabs %}

### Proactive audio  {% id="proactive-audio" %}

When this feature is enabled, Gemini can proactively decide not to respond
if the content is not relevant.

{% callout type="note" %}
  Permanently enabled on Gemini 4 Live, Gemini 3.8 Live, and Gemini 3.8 Live
  Extended Thinking (setting `proactive_audio: false` returns an error).
  Configurable on Gemini 2.5 Flash Live, and not supported on Gemini 3.1 Flash
  Live Preview.

{% /callout %}

To use it, set the api version to `v1beta` and configure the `proactivity`
field in the setup message and set `proactive_audio` to `true`:

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  client = genai.Client(http_options={"api_version": "v1beta"})
  
  config = types.LiveConnectConfig(
      response_modalities=["AUDIO"],
      proactivity={'proactive_audio': True}
  )
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  const ai = new GoogleGenAI({ httpOptions: {"apiVersion": "v1beta"} });
  
  const config = {
    responseModalities: [Modality.AUDIO],
    proactivity: { proactiveAudio: true }
  }
  ```

  {% /tab %}

{% /tabs %}

### Proactive video  {% id="proactive-video" %}

{% callout type="note" %}
  Proactive video is supported on [Gemini 4 Live](/docs/models/gemini-4-live)
  (`gemini-4-live`) and is off by default. It requires `proactive_audio` enabled
  (default on `gemini-4-live`) and `turn_coverage` set to
  `TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO` (default) or
  `TURN_INCLUDES_ALL_INPUT`. Generation frequency scales with your video frame
  rate and increases token usage.

{% /callout %}

When you enable `proactivity.proactive_video` while streaming camera frames or
screen captures via `send_realtime_input`, Gemini 4 Live watches the video
stream and stays quiet while you work. It speaks unprompted only when the scene
changes and visual help is useful, such as spotting a missed step or describing
new objects entering the frame.

{% tabs %}
  {% tab filename="proactive_video.py" label="Python" %}
  ```python
  client = genai.Client(http_options={"api_version": "v1beta"})
  
  config = types.LiveConnectConfig(
      response_modalities=["AUDIO"],
      proactivity=types.ProactivityConfig(
          proactive_audio=True,
          proactive_video=True,
      ),
  )
  ```

  {% /tab %}

  {% tab filename="proactive_video.js" label="JavaScript" %}
  ```javascript
  const ai = new GoogleGenAI({ httpOptions: { apiVersion: "v1beta" } });
  
  const config = {
    responseModalities: [Modality.AUDIO],
    proactivity: {
      proactiveAudio: true,
      proactiveVideo: true,
    },
  };
  ```

  {% /tab %}

{% /tabs %}

## Live translation  {% id="live-translate" %}

The Live API supports real-time, low-latency translation of spoken conversations. This capability lets you build real-time voice-to-voice translation applications.

For more information and examples, see the [Live Translation guide](/docs/live-api/live-translate).

## Voice Activity Detection (VAD)  {% id="interruptions" %}

Voice Activity Detection (VAD) allows the model to recognize when a person is
speaking. This is essential for creating natural conversations, as it allows a
user to interrupt the model at any time.

When VAD detects an interruption, the ongoing generation is canceled and
discarded. Only the information already sent to the client is retained in the
session history. The server then sends a
[`BidiGenerateContentServerContent`](/api-reference/live#BidiGenerateContentServerContent)
message to report the interruption.

The Gemini server then discards any pending function calls and sends a
`BidiGenerateContentServerContent` message with the IDs of the canceled calls.

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  async for response in session.receive():
      if response.server_content.interrupted is True:
          # The generation was interrupted
  
          # If realtime playback is implemented in your application,
          # you should stop playing audio and clear queued playback here.
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  const turns = await handleTurn();
  
  for (const turn of turns) {
    if (turn.serverContent && turn.serverContent.interrupted) {
      // The generation was interrupted
  
      // If realtime playback is implemented in your application,
      // you should stop playing audio and clear queued playback here.
    }
  }
  ```

  {% /tab %}

{% /tabs %}

### Automatic VAD  {% class="hide-from-toc" id="use-automatic-vad" %}

By default, the model automatically performs VAD on a continuous audio input
stream. VAD can be configured with the
[`realtimeInputConfig.automaticActivityDetection`](/api-reference/live#AutomaticActivityDetection)
field of the
[setup configuration](/api-reference/live#BidiGenerateContentSetup).

When the audio stream is paused for more than a second (for example,
because the user switched off the microphone), an
[`audioStreamEnd`](/api-reference/live#BidiGenerateContentRealtimeInput)
event should be sent to flush any cached audio. The client can resume sending
audio data at any time.

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  # example audio file to try:
  # URL = "https://storage.googleapis.com/generativeai-downloads/data/hello_are_you_there.pcm"
  # !wget -q $URL -O sample.pcm
  import asyncio
  from pathlib import Path
  from google import genai
  from google.genai import types
  
  client = genai.Client(http_options={"api_version": "v1beta"})
  model = "gemini-4-live"
  
  config = {"response_modalities": ["AUDIO"]}
  
  async def main():
      async with client.aio.live.connect(model=model, config=config) as session:
          audio_bytes = Path("sample.pcm").read_bytes()
  
          await session.send_realtime_input(
              audio=types.Blob(data=audio_bytes, mime_type="audio/pcm;rate=16000")
          )
  
          # if stream gets paused, send:
          # await session.send_realtime_input(audio_stream_end=True)
  
          async for response in session.receive():
              if response.text is not None:
                  print(response.text)
  
  if __name__ == "__main__":
      asyncio.run(main())
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  // example audio file to try:
  // URL = "https://storage.googleapis.com/generativeai-downloads/data/hello_are_you_there.pcm"
  // !wget -q $URL -O sample.pcm
  import { GoogleGenAI, Modality } from '@google/genai';
  import * as fs from "node:fs";
  
  const ai = new GoogleGenAI({ httpOptions: { apiVersion: "v1beta" } });
  const model = 'gemini-4-live';
  const config = { responseModalities: [Modality.AUDIO] };
  
  async function live() {
    const responseQueue = [];
  
    async function waitMessage() {
      let done = false;
      let message = undefined;
      while (!done) {
        message = responseQueue.shift();
        if (message) {
          done = true;
        } else {
          await new Promise((resolve) => setTimeout(resolve, 100));
        }
      }
      return message;
    }
  
    async function handleTurn() {
      const turns = [];
      let done = false;
      while (!done) {
        const message = await waitMessage();
        turns.push(message);
        if (message.serverContent && message.serverContent.turnComplete) {
          done = true;
        }
      }
      return turns;
    }
  
    const session = await ai.live.connect({
      model: model,
      callbacks: {
        onopen: function () {
          console.debug('Opened');
        },
        onmessage: function (message) {
          responseQueue.push(message);
        },
        onerror: function (e) {
          console.debug('Error:', e.message);
        },
        onclose: function (e) {
          console.debug('Close:', e.reason);
        },
      },
      config: config,
    });
  
    // Send Audio Chunk
    const fileBuffer = fs.readFileSync("sample.pcm");
    const base64Audio = Buffer.from(fileBuffer).toString('base64');
  
    session.sendRealtimeInput(
      {
        audio: {
          data: base64Audio,
          mimeType: "audio/pcm;rate=16000"
        }
      }
  
    );
  
    // if stream gets paused, send:
    // session.sendRealtimeInput({ audioStreamEnd: true })
  
    const turns = await handleTurn();
    for (const turn of turns) {
      if (turn.text) {
        console.debug('Received text: %s\n', turn.text);
      }
      else if (turn.data) {
        console.debug('Received inline data: %s\n', turn.data);
      }
    }
  
    session.close();
  }
  
  async function main() {
    await live().catch((e) => console.error('got error', e));
  }
  
  await main();
  ```

  With `send_realtime_input`, the API will respond to audio automatically based
    on VAD. While `send_client_content` adds messages to the model context in
    order, `send_realtime_input` is optimized for responsiveness at the expense of
    deterministic ordering.

  {% /tab %}

{% /tabs %}

### Automatic VAD configuration  {% class="hide-from-toc" id="configure-automatic-vad" %}

For more control over the VAD activity, you can configure the following
parameters. See [API reference](/api-reference/live#AutomaticActivityDetection)
for more info.

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  from google.genai import types
  
  config = {
      "response_modalities": ["AUDIO"],
      "realtime_input_config": {
          "automatic_activity_detection": {
              "disabled": False, # default
              "start_of_speech_sensitivity": types.StartSensitivity.START_SENSITIVITY_LOW,
              "end_of_speech_sensitivity": types.EndSensitivity.END_SENSITIVITY_LOW,
              "prefix_padding_ms": 20,
              "silence_duration_ms": 100,
          }
      }
  }
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  import { GoogleGenAI, Modality, StartSensitivity, EndSensitivity } from '@google/genai';
  
  const config = {
    responseModalities: [Modality.AUDIO],
    realtimeInputConfig: {
      automaticActivityDetection: {
        disabled: false, // default
        startOfSpeechSensitivity: StartSensitivity.START_SENSITIVITY_LOW,
        endOfSpeechSensitivity: EndSensitivity.END_SENSITIVITY_LOW,
        prefixPaddingMs: 20,
        silenceDurationMs: 100,
      }
    }
  };
  ```

  {% /tab %}

{% /tabs %}

### Hybrid VAD  {% class="hide-from-toc" id="hybrid-vad" %}

Hybrid VAD combines the benefits of automatic VAD (robust speech start detection) and manual VAD (low-latency response finalization).

In this configuration:

1. **Automatic VAD remains enabled** on the server. The server automatically
   detects the start of user speech, using prefix padding to avoid clipping
   the beginning of utterances.
2. The client uses a **client-side VAD** to detect when the user stops
   speaking.
3. When the client-side VAD detects the end of speech, it sends an
   [`audio_stream_end`](/api-reference/live#BidiGenerateContentRealtimeInput)
   signal to the server.
4. The server treats the `audio_stream_end` signal as an immediate
   finalization prompt, bypassing the default server-side silence detection
   delay and returning the transcript and model response with minimal latency.
5. If the client-side VAD fails to trigger, the server-side VAD acts as a
   fallback to detect the end of speech.

Note that if the client-side VAD threshold is set too aggressively, it may cause
speech cutoffs. However, this approach prevents front-truncation issues which
might occur with manual VAD.

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  # Set up with automatic VAD enabled (default)
  config = {
      "response_modalities": ["AUDIO"],
  }
  
  async with client.aio.live.connect(model=model, config=config) as session:
      # Send audio data normally
      await session.send_realtime_input(
          audio=types.Blob(data=audio_bytes, mime_type="audio/pcm;rate=16000")
      )
  
      # When client-side VAD detects the end of speech, send:
      await session.send_realtime_input(audio_stream_end=True)
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  // Set up with automatic VAD enabled (default)
  const config = {
    responseModalities: [Modality.AUDIO],
  };
  
  // Send audio data normally
  session.sendRealtimeInput({
    audio: {
      data: base64Audio,
      mimeType: "audio/pcm;rate=16000"
    }
  });
  
  // When client-side VAD detects the end of speech, send:
  session.sendRealtimeInput({ audioStreamEnd: true });
  ```

  {% /tab %}

{% /tabs %}

### Disable automatic VAD  {% class="hide-from-toc" id="disable-automatic-vad" %}

Alternatively, the automatic VAD can be disabled by setting
`realtimeInputConfig.automaticActivityDetection.disabled` to `true` in the setup
message. In this configuration the client is responsible for detecting user
speech and sending
[`activityStart`](/api-reference/live#BidiGenerateContentRealtimeInput)
and [`activityEnd`](/api-reference/live#BidiGenerateContentRealtimeInput)
messages at the appropriate times. An `audioStreamEnd` isn't sent in
this configuration. Instead, any interruption of the stream is marked by
an `activityEnd` message.

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  config = {
      "response_modalities": ["AUDIO"],
      "realtime_input_config": {"automatic_activity_detection": {"disabled": True}},
  }
  
  async with client.aio.live.connect(model=model, config=config) as session:
      # ...
      await session.send_realtime_input(activity_start=types.ActivityStart())
      await session.send_realtime_input(
          audio=types.Blob(data=audio_bytes, mime_type="audio/pcm;rate=16000")
      )
      await session.send_realtime_input(activity_end=types.ActivityEnd())
      # ...
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  const config = {
    responseModalities: [Modality.AUDIO],
    realtimeInputConfig: {
      automaticActivityDetection: {
        disabled: true,
      }
    }
  };
  
  session.sendRealtimeInput({ activityStart: {} })
  
  session.sendRealtimeInput(
    {
      audio: {
        data: base64Audio,
        mimeType: "audio/pcm;rate=16000"
      }
    }
  
  );
  
  session.sendRealtimeInput({ activityEnd: {} })
  ```

  {% /tab %}

{% /tabs %}

### Understanding VAD parameters and their impact on quality  {% class="hide-from-toc" id="vad-quality-best-practices" %}

When using automatic VAD, two key parameters control how audio is
segmented into speech turns before being sent to the model:

- **`prefixPaddingMs`**: The amount of audio to include *before* speech
  is detected. This "look-back" ensures the model captures the full
  onset of speech, including the first syllable which may start before
  the VAD triggers. A value of `0` may cause the beginning of words to
  be clipped.
- **`silenceDurationMs`**: How long the server waits through silence
  before ending a speech turn. This determines how tolerant the system
  is of natural mid-sentence pauses (e.g., thinking, breathing, or
  clause boundaries).

#### Impact of `silenceDurationMs` on audio quality

The `silenceDurationMs` value directly affects the size and completeness
of audio chunks the model receives for processing:

- **Recommended (500ms–800ms):** Provides a good balance—the model
  receives complete, contextually rich audio chunks while keeping latency
  reasonable. The server's internal default is approximately 800ms.
- **Too low (e.g., 100ms–200ms):** The system ends speech turns during
  natural pauses, splitting a single utterance into multiple small audio
  fragments. The model receives these fragments individually, losing
  cross-fragment context and resulting in lower transcription and response
  quality.
- **Too high (e.g., 2000ms+):** The system waits a long time after the
  user stops speaking, increasing perceived latency before the model
  responds.

#### Best practices for manual (client-side) VAD

When you disable automatic VAD and manage `activityStart`/`activityEnd`
signals from your own client-side voice detection, be aware that the
server's built-in audio buffering mechanisms are bypassed. This means:

1. **No pre-speech buffer:** The server no longer prepends audio before
   the detected speech start. Your client should include sufficient audio
   context before sending `activityStart`.
2. **No silence tolerance:** The server acts immediately on your
   `activityEnd` signal with no additional wait. If your client-side VAD
   uses an aggressive end-of-speech threshold (e.g., 200ms of silence),
   speech may be cut off mid-sentence during natural pauses.

To preserve audio quality with manual VAD, use an end-of-speech silence
threshold of at least **500ms** in your client's voice activity detector.
Thresholds below this value often cause fragmented audio that degrades
transcription and model response quality.

## Token count  {% id="token-count" %}

You can find the total number of consumed tokens in the
[usageMetadata](/api-reference/live#LiveUsageMetadata) field of the returned
server message.

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  async for message in session.receive():
      # The server will periodically send messages that include UsageMetadata.
      if message.usage_metadata:
          usage = message.usage_metadata
          print(
              f"Used {usage.total_token_count} tokens in total. Response token breakdown:"
          )
          for detail in usage.response_tokens_details:
              match detail:
                  case types.ModalityTokenCount(modality=modality, token_count=count):
                      print(f"{modality}: {count}")
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  const turns = await handleTurn();
  
  for (const turn of turns) {
    if (turn.usageMetadata) {
      console.debug('Used %s tokens in total. Response token breakdown:\n', turn.usageMetadata.totalTokenCount);
  
      for (const detail of turn.usageMetadata.responseTokensDetails) {
        console.debug('%s\n', detail);
      }
    }
  }
  ```

  {% /tab %}

{% /tabs %}

## Media resolution  {% id="media-resolution" %}

You can specify the media resolution for the input media by setting the
`mediaResolution` field as part of the session configuration:

{% tabs %}
  {% tab filename="sample.py" label="Python" %}
  ```python
  from google.genai import types
  
  config = {
      "response_modalities": ["AUDIO"],
      "media_resolution": types.MediaResolution.MEDIA_RESOLUTION_LOW,
  }
  ```

  {% /tab %}

  {% tab filename="sample.js" label="JavaScript" %}
  ```javascript
  import { GoogleGenAI, Modality, MediaResolution } from '@google/genai';
  
  const config = {
      responseModalities: [Modality.AUDIO],
      mediaResolution: MediaResolution.MEDIA_RESOLUTION_LOW,
  };
  ```

  {% /tab %}

{% /tabs %}

You can configure `mediaResolution` for multimodal sessions that include
audio, video, or image inputs. While `mediaResolution` adjusts the token
allocation per frame for visual inputs, audio streams are tokenized at a
fixed rate per second across all resolution settings. For more information,
see the [Media resolution](/docs/media-resolution) guide.

## Limitations  {% id="limitations" %}

Consider the following limitations of the Multimodal Live API
when you plan your project.

### Response modalities  {% id="response-modalities" %}

The native audio models only support `AUDIO response modality. If you need the
model response as text, use the [output audio transcription](/docs/live-api/capabilities#audio-transcription)
feature.

### Client authentication  {% id="client-authentication" %}

The Multimodal Live API only provides server-to-server authentication by
default. If you're implementing your Multimodal Live API application using a
[client-to-server approach](/docs/live-api#implementation-approach), you need to
use [ephemeral tokens](/docs/live-api/ephemeral-tokens) to mitigate security
risks.

### Session duration  {% id="maximum-session-duration" %}

Audio-only sessions are limited to 15 minutes, and audio plus video sessions are
limited to 2 minutes. However, you can configure different
[session management techniques](/docs/live-api/session-management) for unlimited
extensions on session duration.

### Context window  {% id="context-window" %}

A session has a context window limit of:

- 128k tokens for [native audio output](/docs/live-api/capabilities#native-audio-output) models
- 32k tokens for other Multimodal Live API models

## Supported languages  {% id="supported-languages" %}

Multimodal Live API supports the following 99 languages.

{% callout type="note" %}
  [Native audio output](/docs/live-api/capabilities#native-audio-output) models can switch between
  languages naturally during conversation. You can also restrict the languages
  it speaks in by specifying it in the system instructions.

{% /callout %}

| Language | BCP-47 Code | Language | BCP-47 Code |
| :--- | :--- | :--- | :--- |
| Afrikaans | `af` | Latvian | `lv` |
| Akan | `ak` | Lithuanian | `lt` |
| Albanian | `sq` | Macedonian | `mk` |
| Amharic | `am` | Malay | `ms` |
| Arabic | `ar` | Malayalam | `ml` |
| Armenian | `hy` | Maltese | `mt` |
| Assamese | `as` | Maori | `mi` |
| Azerbaijani | `az` | Marathi | `mr` |
| Basque | `eu` | Mongolian | `mn` |
| Belarusian | `be` | Nepali | `ne` |
| Bengali | `bn` | Norwegian | `no`, `nb` |
| Bosnian | `bs` | Odia | `or` |
| Bulgarian | `bg` | Oromo | `om` |
| Burmese | `my` | Pashto | `ps` |
| Catalan | `ca` | Persian | `fa` |
| Cebuano | `ceb` | Polish | `pl` |
| Chinese (Simplified) | `zh-Hans` | Portuguese (Brazil) | `pt-BR` |
| Chinese (Traditional) | `zh-Hant` | Portuguese (Portugal) | `pt-PT` |
| Croatian | `hr` | Punjabi | `pa` |
| Czech | `cs` | Quechua | `qu` |
| Danish | `da` | Romanian | `ro` |
| Dutch | `nl` | Romansh | `rm` |
| English | `en`, `en-US`, `en-GB`, `en-AU`, `en-IN`, `en-NG`, `en-SG` | Russian | `ru` |
| Estonian | `et` | Serbian | `sr` |
| Faroese | `fo` | Sindhi | `sd` |
| Filipino | `fil` | Sinhala | `si` |
| Finnish | `fi` | Slovak | `sk` |
| French | `fr` | Slovenian | `sl` |
| Galician | `gl` | Somali | `so` |
| Georgian | `ka` | Southern Sotho | `st` |
| German | `de` | Spanish | `es` |
| Greek | `el` | Swahili | `sw` |
| Gujarati | `gu` | Swedish | `sv` |
| Hausa | `ha` | Tajik | `tg` |
| Hebrew | `he` | Tamil | `ta` |
| Hindi | `hi` | Telugu | `te` |
| Hungarian | `hu` | Thai | `th` |
| Icelandic | `is` | Tswana | `tn` |
| Indonesian | `id` | Turkish | `tr` |
| Irish | `ga` | Turkmen | `tk` |
| Italian | `it` | Ukrainian | `uk` |
| Japanese | `ja` | Urdu | `ur` |
| Kannada | `kn` | Uzbek | `uz` |
| Kazakh | `kk` | Vietnamese | `vi` |
| Khmer | `km` | Welsh | `cy` |
| Kinyarwanda | `rw` | Western Frisian | `fy` |
| Korean | `ko` | Wolof | `wo` |
| Kurdish | `ku` | Yoruba | `yo` |
| Kyrgyz | `ky` | Zulu | `zu` |
| Lao | `lo` |  |  |

## What's next  {% id="whats-next" %}

-   Read the [Thinking in the Live API](/docs/live-api/thinking),
    [Tool Use](/docs/live-api/tools), and
    [Session Management](/docs/live-api/session-management) guides for essential
    information on using the Live API effectively.
- Try the Multimodal Live API in [Google AI Studio](https://aistudio.google.com/app/live).
-   For more info about the Live API models, see
    [Gemini 4 Live](/docs/models/gemini-4-live) and
    [Gemini 4 Live Translate](/docs/models/gemini-4-live-translate) on the
    Models page.
- Try more examples in the [Live API cookbook](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Get_started_LiveAPI.ipynb),
  the [Live API Tools cookbook](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Get_started_LiveAPI_tools.ipynb),
  and the [Live API Get Started script](https://github.com/google-gemini/cookbook/blob/main/quickstarts/Get_started_LiveAPI.py).

