<!-- Lazu · Gemini 3.1 Pro Preview · https://lazu.ai/models/google/gemini-3.1-pro-preview -->

# Gemini 3.1 Pro Preview (`gemini-3.1-pro-preview`)

Call gemini-3.1-pro-preview on Lazu for $2.00 per million input tokens and $12.00 per million output tokens, the same as the Google official price. 1M context, up to 66k output tokens, with Tool calling, Vision, Reasoning and Structured output.

Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows. Building on the multimodal foundation...

## Facts

- **Context:** 1M
- **Max output:** 66k
- **Knowledge cutoff:** 2025-01
- **Input:** Text · Image · Audio · Video · PDF
- **Output:** Text
- **Endpoints:** /v1beta/models/gemini-3.1-pro-preview:generateContent · /v1/chat/completions

## Prices (USD per million tokens)

| Lane | Input | Output | Cache read | Cache write 5m | 7-day availability |
|---|---|---|---|---|---|
| Google official price | $2.00 | $12.00 | — | — | — |
| Google official, input over 200k tokens | $4.00 | $18.00 | — | — | — |
| Stable | $2.00 | $12.00 | $0.20 | — | 97.0% |

A request whose input tokens (cache reads and writes included) pass the threshold is billed entirely at the long-context prices, not only for the tokens above it.

Prices checked 2026-10-03 17:36 UTC

## Capabilities

Tool calling, Vision, Reasoning, Structured output, PDF input, Audio input

Reasoning effort: low, medium, high

## Example request (POST /v1beta/models/gemini-3.1-pro-preview:generateContent)

```bash
curl -X POST https://api.lazu.ai/v1beta/models/gemini-3.1-pro-preview:generateContent \
  -H "Authorization: Bearer $LAZU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{ "parts": [{ "text": "Hello from Lazu" }] }]
  }'
```

Any OpenAI SDK works: set `base_url` to `https://api.lazu.ai/v1`. Docs: https://lazu.ai/docs

## Questions

### What is the difference between the stable and discount lanes?

The stable lane runs on each maker's official API, is billed at the list price, has the highest availability and suits every use. The discount lane is a reverse-engineered route: a third-party supplier serves the model through its official client, not the official API. It costs far less, but availability varies, a failed request does not fall back to the stable lane, and the supplier may add its own system prompt. So use it only inside the matching agent tool: Claude models in Claude Code, GPT models in Codex, Gemini models in Antigravity. For your own code, or anywhere the output must be controlled exactly, use the stable lane. Both lanes work with the same key, and each key picks the lane per model.

### Can I call gemini-3.1-pro-preview with the OpenAI SDK?

Yes. Point the SDK's base URL at https://api.lazu.ai/v1 and use gemini-3.1-pro-preview as the model name. The native Gemini endpoint /v1beta/models/gemini-3.1-pro-preview:generateContent works as well.

### How is it billed?

Per token actually used — input, output and cache — deducted from your wallet balance. There is no monthly fee, and every request shows up itemized in your usage log.

