> ## Documentation Index
> Fetch the complete documentation index at: https://docs.verlon.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google

> Every Gemini and Gemma model Verlon supports — plus quickstart and how to reach them through the SDK you already use.

Gemini 1.5 through 3.5 (chat and reasoning), plus Gemma open-weights and the full multimodal lineup — image, video, TTS, audio, embeddings — all routable through Verlon in whichever SDK you already use. No Google-specific SDK required.

## Chat models

| Model ID | Type | Context |
| - | - | - |
| `gemini-2.5-flash` | chat | 1000K |
| `gemini-2.5-flash-lite` | chat | 1000K |
| `gemini-2.5-pro` | chat | 1000K |
| `gemini-3-flash-preview` | chat | 1000K |
| `gemini-3.1-flash-lite` | chat | 1000K |
| `gemini-3.1-flash-lite-preview` | chat | 1000K |
| `gemini-3.1-pro-preview` | chat | 2000K |
| `gemini-3.1-pro-preview-customtools` | chat | 2000K |
| `gemini-3.5-flash` | chat | 1049K |
| `gemini-3.5-flash-lite` | chat | 1000K |
| `gemini-3.6-flash` | chat | 1000K |
| `gemini-3.7-flash` | chat | 1049K |
| `gemini-flash-latest` | chat | 1000K |
| `gemini-flash-lite-latest` | chat | 1000K |
| `gemini-pro-latest` | chat | 2000K |
| `gemini-robotics-er-2-preview` | chat | 32K |
| `gemma-4-26b-a4b-it` | chat | 262K |
| `gemma-4-31b-it` | chat | 262K |

> [!NOTE]
>
> This table is auto-generated from the Verlon model registry on every sync —
> see the [live registry](https://docs.verlon.ai/provider-compatibility/models.md#live-registry) for
> pricing, benchmarks, and deprecation dates.

## Other modalities

* **audio** — 5 models
* **embeddings** — 3 models
* **image generation** — 7 models
* **text-to-speech** — 3 models
* **video generation** — 3 models

Non-chat Gemini models are called through the OpenAI SDK using the same model IDs — Verlon mirrors `/v1/embeddings`, `/v1/images/generations`, and `/v1/audio/speech` as drop-in routes. Video generation is drop-in too: the `openai` package's async Videos surface (`videos.create()` / `retrieve()` / `downloadContent()`) works against `/v1/videos`.

## Quickstart

> [!NOTE]
>
> First time? [Create a gate](https://docs.verlon.ai/platform/gates.md) and grab an [API
> key](https://docs.verlon.ai/getting-started/authentication.md) — the examples below need a `GATE_ID`
> and `VERLON_API_KEY`.

The fastest path — the official OpenAI SDK, pointed at Verlon:

```typescript theme={null}
import OpenAI from 'openai';

const openai = new OpenAI({
  baseURL: 'https://api.verlon.ai/v1',
  apiKey: process.env.VERLON_API_KEY,
});

// @ts-ignore - gateId is a Verlon AI extension
const response = await openai.chat.completions.create({
  gateId: process.env.GATE_ID,
  model: 'gemini-2.5-pro', // optional — overrides the gate's configured model
  messages: [{ role: 'user', content: 'Hello!' }],
});

console.log(response.choices[0].message.content);
```

Any chat model from the table above works — swap `gemini-2.5-pro` for `gemini-3.5-flash`, `gemini-flash-latest`, or any other ID.

## SDK compatibility

Any SDK with a Verlon drop-in endpoint can reach every model on this page — today that's the [OpenAI SDK](https://docs.verlon.ai/provider-compatibility/openai.md) and the [Anthropic SDK](https://docs.verlon.ai/provider-compatibility/anthropic.md): point it at Verlon, reference a gate that routes here, and your code stays unchanged. The [quickstart above](#quickstart) is all it takes. Verlon also mirrors Gemini's native API at `/v1beta/models/...`, so tooling that speaks the Gemini REST shape works unchanged too. The [Verlon SDK](https://docs.verlon.ai/sdk-reference/overview.md) isn't needed for inference — its home is agent tracing, observability, and the model registry.

### Streaming

```typescript theme={null}
const stream = await openai.chat.completions.create({
  gateId: process.env.GATE_ID,
  messages: [{ role: 'user', content: 'Tell me a joke.' }],
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content ?? '');
}
```

## What's supported

> [accordion] Streaming
>
> Full support for `stream: true` in every supported SDK — identical semantics
> to the source SDK.

> [accordion] Tool / function calling
>
> Fully supported. Verlon translates the tool-call shape between OpenAI /
> Anthropic / Gemini native formats.

> [accordion] Vision
>
> Image inputs work with any vision-capable Gemini model — including the
> multimodal Gemini 2.5 Flash and Pro lines.

> [accordion] Standard parameters
>
> `temperature`, `max_tokens`, `top_p`, `stop_sequences`, and the rest are
> passed through and mapped to Gemini's native fields.

> [accordion] Usage + cost tracking
>
> Every response includes token usage plus Verlon's `cost` field with per-call
> dollar amount.

## How it works

1. **You send** a request in your chosen SDK's format
2. **Verlon receives** — validates the gate, applies routing rules
3. **Verlon translates** to Gemini's native format and dispatches to Google's API
4. **Google responds** with the raw Gemini response
5. **Verlon normalizes** back to your SDK's expected shape (OpenAI, Anthropic, or Gemini-native)
6. **You receive** a response in the format your code already handles, with an added `cost` field

Your existing code doesn't know it's talking to Gemini.

## Errors

| Status | Meaning | What to check |
| - | - | - |
| `400` | Invalid request | Malformed body or missing `gateId` |
| `401` | Invalid API key | Your `VERLON_API_KEY` value and the `Authorization: Bearer` header |
| `404` | Gate not found | Your `GATE_ID` — the error message names the offending ID |
| `429` | Rate limit exceeded | Back off and retry; the body includes `reset_at`, and every response carries `X-RateLimit-*` headers |

The error shape always matches the SDK you're calling with. Through the OpenAI SDK it surfaces as a thrown `APIError`:

```typescript theme={null}
try {
  await openai.chat.completions.create({
    gateId: process.env.GATE_ID,
    messages: [{ role: 'user', content: 'Hello!' }],
  });
} catch (error) {
  // error.status and error.message carry the API's answer,
  // e.g. 404 'Gate with ID "…" not found'
  console.error(error.status, error.message);
}
```

## Full non-chat model list

Every non-chat Google model Verlon routes to, grouped by modality. Chat models are in the table near the top of this page.

### Audio

| Model ID |
| - |
| `gemini-2.5-flash-native-audio-latest` |
| `gemini-2.5-flash-native-audio-preview-12-2025` |
| `gemini-3.5-live-translate-preview` |
| `lyria-3-clip-preview` |
| `lyria-3-pro-preview` |

### Embeddings

| Model ID |
| - |
| `gemini-embedding-001` |
| `gemini-embedding-2` |
| `gemini-embedding-2-preview` |

### Image generation

| Model ID |
| - |
| `gemini-2.5-flash-image` |
| `gemini-3-pro-image` |
| `gemini-3-pro-image-preview` |
| `gemini-3.1-flash-image` |
| `gemini-3.1-flash-image-preview` |
| `gemini-3.1-flash-lite-image` |
| `nano-banana-pro-preview` |

### Text-to-speech

| Model ID |
| - |
| `gemini-2.5-flash-preview-tts` |
| `gemini-2.5-pro-preview-tts` |
| `gemini-3.1-flash-tts-preview` |

### Video generation

| Model ID |
| - |
| `veo-3.1-fast-generate-preview` |
| `veo-3.1-generate-preview` |
| `veo-3.1-lite-generate-preview` |

## Related

* [OpenAI](https://docs.verlon.ai/provider-compatibility/openai.md) · [Anthropic](https://docs.verlon.ai/provider-compatibility/anthropic.md) · [Mistral](https://docs.verlon.ai/provider-compatibility/mistral.md)
* [Verlon SDK reference](https://docs.verlon.ai/sdk-reference/overview.md) — agent tracing, observability, and the model registry
* [Gates](https://docs.verlon.ai/platform/gates.md) — set up routing rules and model configuration
* [Bring your own key](https://docs.verlon.ai/platform/byok.md) — use your own Google account for provider costs
* [Google's Gemini API docs ↗](https://ai.google.dev/gemini-api/docs)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.