# Google Gemini Live Translate (/en/ai/models/mllm/gemini-live-translate)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

> Documentation: Conversational AI.
> Documentation version: Main.
> This document describes only this version. [Version index](/llms/doc-versions-convoai-guides-v1.txt).


Google Gemini Live Translate translates the user's speech into a target language and speaks the translation, without separate ASR, LLM, or TTS components. The model detects the source language automatically. You set only the target language. This page explains how to integrate Gemini Live Translate through the Gemini Developer API.

> **Info: Preview endpoint**
>
> `gemini-4-live-translate` runs on a preview endpoint. The Agora Agents SDKs send sessions that use this model to the preview endpoint automatically. This requires Python SDK 2.16.0, TypeScript SDK 2.16.1, Go SDK 2.16.0, or later.
>
> If you call the REST API directly, send your [Start a conversational AI agent](/en/api-reference/api-ref/conversational-ai/join) request to the following preview endpoint instead of the standard endpoint, and include the required header:
>
> - **URL**: `https://us-west-1-preview.ai.agora.io/api/conversational-ai-agent/v2/projects/<APP_ID>/join`
> - **Header**: `agora-feature: gemini`
>
> Send all later requests for this agent to the preview host with the same header.

### Sample configuration

To start a translation session, set `model` to `gemini-4-live-translate` and set `translate_to` to the target language code. The following examples translate the user's speech into Spanish:

**Python SDK**

```python
from agora_agent import Agent
from agora_agent.agentkit.vendors import GeminiLive

# client is your configured Agora client
agent = (
    Agent(client)
    .with_mllm(GeminiLive(
        api_key='your-google-api-key',
        model='gemini-4-live-translate',
        translate_to='es',
        echo_target_language=False,
        transcribe_agent=True,
        transcribe_user=True,
    ))
)
```

**TypeScript SDK**

```typescript
import { Agent, GeminiLive } from 'agora-agents';

// client is your configured Agora client
const agent = new Agent({ client })
  .withMllm(new GeminiLive({
    apiKey: 'your-google-api-key',
    model: 'gemini-4-live-translate',
    translateTo: 'es',
    echoTargetLanguage: false,
    transcribeAgent: true,
    transcribeUser: true,
  }));
```

**Go SDK**

```go
import (
    Agora "github.com/AgoraIO/agora-agents-go/v2"
    "github.com/AgoraIO/agora-agents-go/v2/agentkit"
    "github.com/AgoraIO/agora-agents-go/v2/agentkit/vendors"
)

// client is your configured Agora client
agent := agentkit.NewAgent(client).WithMllm(
    vendors.NewGeminiLive(vendors.GeminiLiveOptions{
        APIKey:             "your-google-api-key",
        Model:              "gemini-4-live-translate",
        TranslateTo:        "es",
        EchoTargetLanguage: Agora.Bool(false),
        TranscribeAgent:    Agora.Bool(true),
        TranscribeUser:     Agora.Bool(true),
    }),
)
```

**REST API**

Use the following `mllm` configuration in your request:

```json
"mllm": {
  "enable": true,
  "api_key": "<GOOGLE_GEMINI_API_KEY>",
  "params": {
    "model": "gemini-4-live-translate",
    "translate_to": "es",
    "echo_target_language": false,
    "transcribe_agent": true,
    "transcribe_user": true
  },
  "vendor": "gemini"
}
```

For a complete working example, see the Gemini Live Translate quickstart for [Next.js](https://github.com/AgoraIO-Community/agora-gemini-4-live-translate-nextjs), [Python](https://github.com/AgoraIO-Community/agora-gemini-4-live-translate-python), or [Go](https://github.com/AgoraIO-Community/agora-gemini-4-live-translate-go).

### Supported languages

`translate_to` takes a language code, such as `en`, `es`, `fr`, `ja`, `ko`, `de`, `hi`, or `ar`. It also accepts some regional codes, such as `pt-BR`, `pt-PT`, `zh-Hans`, and `zh-Hant`. For the complete list of supported languages, see [Supported languages](https://aistudio.google.com/docs/live-api/live-translate#supported-languages) in the Gemini API documentation.

> **Warning: Translation limitations**
>
> - If you set an unsupported language code, the agent starts, but the Gemini Live session closes with an error.
> - The model doesn't use a greeting, `instructions`, `thinking_level`, or the tools you configure in `mllm.tools`.

### Key parameters

**mllm required**

**`enable` (boolean) optional**

Enables the MLLM module. Replaces the deprecated `advanced_features.enable_mllm`.

**`api_key` (string) required**

The Google Gemini API key used to authenticate requests. You can generate an API key in [Google AI Studio](https://aistudio.google.com/apikey).

**`params` (object) required**

Configuration object for the Gemini Live Translate model.

**`model` (string) required**

Possible values: `gemini-4-live-translate`

The Gemini Live Translate model identifier.

**`translate_to` (string) required**

The language code to translate the user's speech into. For supported codes, see [Supported languages](#supported-languages).

**`echo_target_language` (boolean) optional**

Default value: `false`

Controls what the model does when the user already speaks the target language. If `true`, the model repeats the speech. If `false`, the model stays silent.

**`voice` (string) optional**

The voice identifier for the translated speech. For example, `Puck`.

**`transcribe_agent` (boolean) optional**

Whether to transcribe the translated speech in real time.

**`transcribe_user` (boolean) optional**

Whether to transcribe the user's speech, in the source language, in real time.

**`vendor` (string) required**

The MLLM provider identifier. Set to `"gemini"`.

For details on translation behavior and limitations, see [Live translation with Gemini Live API](https://aistudio.google.com/docs/live-api/live-translate).
