> ## AI Agent Context
> Get the complete documentation index at: https://aistudio.google.com/llms.txt
> Use this file to discover all available pages.
> For the full documentation in a single file, fetch: https://aistudio.google.com/llms-full.txt

# Gemini 3.1 Flash live preview

Gemini 3.1 Flash Live Preview is our legacy preview audio-to-audio model for
real-time dialogue and voice-first AI applications.

{% callout type="note" %}
   For new applications and production workloads, we
  recommend migrating to [Gemini 3.8 Live](/docs/models/gemini-3.8-live)
  (`gemini-3.8-live`) or
  [Gemini 3.8 Live Extended Thinking](/docs/models/gemini-3.8-live-extended-thinking)
  (`gemini-3.8-live-extended-thinking`). 

{% /callout %}

{% button href="https://aistudio.google.com/live?model=gemini-3.1-flash-live-preview" variant="ais" %}
  Try in Google AI Studio

{% /button %}

## Documentation  {% id="documentation" %}

Visit the [Live API](/docs/live-api) guide for full coverage
of features and capabilities.

## gemini-3.1-flash-live-preview  {% id="gemini-31-flash-live-preview" %}

{% table variant="model" %}
  * Property
  * Description

  ---

  *     {% section class="model-property" %}
  {% icon name="id_card" /%}Model code

    {% /section %}

  * `gemini-3.1-flash-live-preview`

  ---

  *     {% section class="model-property" %}
  {% icon name="save" /%}Supported data types

    {% /section %}

  *     **Inputs** Text, images, audio

    **Output** Text and audio


  ---

  *     {% section class="model-property" %}
  {% icon name="token_auto" /%}Token limits{% sup %}[[*]](/docs/tokens){% /sup %}

    {% /section %}

  *     **Input token limit** 131,072

    **Output token limit** 65,536


  ---

  *     {% section class="model-property" %}
  {% icon name="handyman" /%}Capabilities

    {% /section %}

  *     {% section class="three-column-grid" %}
  {% section %}
  [**Audio generation**](/docs/speech-generation)

  {% badge type="supported" /%}

  {% /section %}

  {% section %}
  [**Batch API**](/docs/batch-api)

  {% badge type="not-supported" /%}

  {% /section %}

  {% section %}
  [**Caching**](/docs/caching)

  {% badge type="not-supported" /%}

  {% /section %}

  {% section %}
  [**Code execution**](/docs/code-execution)

  {% badge type="not-supported" /%}

  {% /section %}

  {% section %}
  [**File search**](/docs/file-search)

  {% badge type="not-supported" /%}

  {% /section %}

  {% section %}
  [**Function calling**](/docs/function-calling)

  {% badge type="supported" /%}

  {% /section %}

  {% section %}
  [**Grounding with Google Maps**](/docs/maps-grounding)

  {% badge type="not-supported" /%}

  {% /section %}

  {% section %}
  [**Image generation**](/docs/image-generation)

  {% badge type="not-supported" /%}

  {% /section %}

  {% section %}
  [**Live API**](/docs/live-api)

  {% badge type="supported" /%}

  {% /section %}

  {% section %}
  [**Search grounding**](/docs/google-search)

  {% badge type="supported" /%}

  {% /section %}

  {% section %}
  [**Structured outputs**](/docs/structured-output)

  {% badge type="not-supported" /%}

  {% /section %}

  {% section %}
  [**Thinking**](/docs/thinking)

  {% badge type="supported" /%}

  {% /section %}

  {% section %}
  [**URL context**](/docs/url-context)

  {% badge type="not-supported" /%}

  {% /section %}

    {% /section %}


  ---

  *     {% section class="model-property" %}
  {% icon name="123" /%}Versions

    {% /section %}

  *     Read the [model version patterns](/docs/models#model-versions) for more details.

    *   Preview: `gemini-3.1-flash-live-preview`


  ---

  *     {% section class="model-property" %}
  {% icon name="calendar_month" /%}Latest update

    {% /section %}

  * March 2026

  ---

  *     {% section class="model-property" %}
  {% icon name="id_card" /%}Model card

    {% /section %}

  * [Model card](https://deepmind.google/models/model-cards/gemini-3-1-flash-audio/)

  ---

  *     {% section class="model-property" %}
  {% icon name="paid" /%}Pricing

    {% /section %}

  * [Pricing](/docs/pricing#gemini-3.8-live)
{% /table %}

## Migrating from Gemini 2.5 Flash Live  {% id="migrating" %}

Gemini 3.1 Flash Live Preview is optimized for low-latency, real-time dialogue.
When migrating from `gemini-2.5-flash-native-audio-preview-12-2025`, consider
the following:

-   **Model string**: Update your model string from
  `gemini-2.5-flash-native-audio-preview-12-2025` to
  `gemini-3.1-flash-live-preview`.

-   **Thinking configuration**: Gemini 3.1 uses `thinkingLevel` (with settings
  like `minimal`, `low`, `medium`, and `high`) instead of `thinkingBudget`.
  The default is `minimal` to optimize for lowest latency. See
  [Thinking levels and budgets](/docs/thinking?generate-content=true#levels-budgets).

-   **Server events**: A single
  [`BidiGenerateContentServerContent`](https://ai.google.dev/api/live#bidigeneratecontentservercontent)
  event can now contain multiple content parts simultaneously (for example,
  audio chunks and transcript). Update your code to process all parts in each
  event to avoid missing content.

-     **Client content**: `send_client_content` is supported for appending text or
  structured context turns mid-session as well as seeding initial history
  (setting
  [`initial_history_in_client_content`](https://ai.google.dev/api/live#HistoryConfig)
  in
  [`history_config`](https://ai.google.dev/api/live#BidiGenerateContentSetup)).
  You can also use
  [`send_realtime_input`](https://ai.google.dev/api/live#bidigeneratecontentrealtimeinput)
  to stream realtime text, audio, or video chunks. See
  [Incremental content updates](/docs/live-api/capabilities#incremental-updates).

-   **Turn coverage**: Defaults to
  [`TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO`](https://ai.google.dev/api/live#turncoverage) instead
  of `TURN_INCLUDES_ONLY_ACTIVITY`. The model's turn now includes detected
  audio activity and all video frames. If your application currently sends a
  constant stream of video frames, you may want to update your application to
  only send video frames when there is audio activity to avoid incurring
  additional costs.

-   **Async function calling**: Not yet supported. Function calling is
  synchronous only. The model will not start responding until you've sent
  the tool response. See
  [Async function calling](/docs/live-api/tools#async-function-calling).

-   **Proactive audio and affective dialogue**: These features are not yet
  supported in Gemini 3.1 Flash Live. Remove any configuration for these
  features from your code. See
  [Proactive audio](/docs/live-api/capabilities#proactive-audio) and
  [Affective dialogue](/docs/live-api/capabilities#affective-dialog).


For a detailed feature comparison, see the
[Model comparison](/docs/live-api/capabilities#model-comparison) table in the capabilities
guide.

