# gemini-3.1-pro-preview — API, Pricing & Context Window

gemini-3.1-pro-preview on Vivgrid: Google's high-end multimodal coding model with a ~1M-token context window across text, image, video, audio and PDF.

`gemini-3.1-pro-preview` is Google's high-end Gemini model, positioned for coding and complex multimodal reasoning. It accepts **text, image, video, audio, and PDF** within a **~1.05M-token context window**.

On Vivgrid it runs as a globally centralized model. Because it relies on Google's global endpoint, regional acceleration is limited — but it remains available through the same unified API as the rest of the catalog.

## Specifications

|     |     |
| --- | --- |
| **Provider** | Google |
| **Model ID** | `gemini-3.1-pro-preview` |
| **Best for** | Coding |
| **Context window** | 1,048,576 tokens |
| **Max output** | 65,536 tokens |
| **Modalities** | Text, Image, Video, Audio, Pdf |
| **Tool / function calling** | Yes |
| **Knowledge cutoff** | 2025-01 |
| **Acceleration** | 🌐 Global (Centralized) |

## Pricing

Pricing in USD per 1M tokens, matching the provider's rates.

| Input | Cached input | Output |
| --- | --- | --- |
| $3.00 | $0.30 | $12.00 |

## Quick start

Call `gemini-3.1-pro-preview` through Vivgrid's unified, OpenAI-compatible endpoint. Get an API key from the [Vivgrid Console](https://console.vivgrid.com/).

```
curl https://api.vivgrid.com/v1/chat/completions \
  -H "Authorization: Bearer $VIVGRID_API_KEY" \
  -H "Content-Type: application/json" \ 
  -d '{
    "model": "gemini-3.1-pro-preview",
    "messages": [\
      { "role": "user", "content": "Say hello in English, Chinese and Spanish." }\
    ],
    "stream": true
  }'
```

## Ideal use cases

- Multimodal coding and reasoning agents
- Tasks blending long text with images, video, audio, or PDFs
- Large-context analysis up to ~1M tokens
- Workflows that benefit from Gemini's native multimodality

## Related models

- [gemini-3.5-flash](/content/docs/models/gemini-3.5-flash/index.html) — faster Gemini sibling
- [gemini-3-pro-preview](/content/docs/models/gemini-3-pro-preview/index.html) — the prior pro release
- [gpt-5.5](/content/docs/models/gpt-5.5) — alternative flagship coding model
