# Google: Gemini 3.1 Pro Preview — Use via Hanzo AI API

> Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliabil... Access via Hanzo&#x27;s OpenAI-compatible API. Context: 1M. Get started free.

[Models](https://hanzo.ai/models)/[Google](https://hanzo.ai/models/google)/gemini-3.1-pro-preview

# Google: Gemini 3.1 Pro Preview

[Google](https://hanzo.ai/models/google)

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...

text

[Get API Key](https://hanzo.ai/signup)[View Docs](https://docs.hanzo.ai)[Try in Chat](https://hanzo.ai/chat)

## Specifications

Context Window

1M

Modalities

text

Input

$2.40 / M tokens

Output

$14.40 / M tokens

Status

available

Category

third-party

Model ID

google/gemini-3.1-pro-preview

## Quick Start

TypeScript

```
import OpenAI from &#x27;openai&#x27; const client = new OpenAI({ apiKey: process.env.HANZO_API_KEY, baseURL: &#x27;https://api.hanzo.ai/v1&#x27; }) const response = await client.chat.completions.create({ model: &#x27;google/gemini-3.1-pro-preview&#x27;, messages: [{ role: &#x27;user&#x27;, content: &#x27;Hello!&#x27; }] }) console.log(response.choices[0].message.content)
```

Python

```
from openai import OpenAI client = OpenAI( api_key=os.environ["HANZO_API_KEY"], base_url="https://api.hanzo.ai/v1" ) response = client.chat.completions.create( model="google/gemini-3.1-pro-preview", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content)
```

cURL

```
curl https://api.hanzo.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $HANZO_API_KEY" \ -d &#x27;{ "model": "google/gemini-3.1-pro-preview", "messages": [{"role": "user", "content": "Hello!"}] }&#x27;
```

Go

```
package main import ( "context" "fmt" "os" "github.com/sashabaranov/go-openai" ) func main() { cfg := openai.DefaultConfig(os.Getenv("HANZO_API_KEY")) cfg.BaseURL = "https://api.hanzo.ai/v1" client := openai.NewClientWithConfig(cfg) resp, _ := client.CreateChatCompletion(context.Background(), openai.ChatCompletionRequest{ Model: "google/gemini-3.1-pro-preview", Messages: []openai.ChatCompletionMessage{ {Role: openai.ChatMessageRoleUser, Content: "Hello!"}, }, }, ) fmt.Println(resp.Choices[0].Message.Content) }
```

## More from Google

[Google: Gemini 2.5 Flash1MGemini 2.5 Flash is Google&#x27;s state-of-the-art workhorse model, specifically designed for advanced reasoning, coding, mathematics, and scientific tasks. It includes built-in "thinking" capabilities, enabling it to provide responses with greater...](https://hanzo.ai/models/google/gemini-2.5-flash)[Google: Nano Banana (Gemini 2.5 Flash Image)33KGemini 2.5 Flash Image, a.k.a. "Nano Banana," is now generally available. It is a state of the art image generation model with contextual understanding. It is capable of image generation,...](https://hanzo.ai/models/google/gemini-2.5-flash-image)[Google: Gemini 2.5 Flash Lite1MGemini 2.5 Flash-Lite is a lightweight reasoning model in the Gemini 2.5 family, optimized for ultra-low latency and cost efficiency. It offers improved throughput, faster token generation, and better performance...](https://hanzo.ai/models/google/gemini-2.5-flash-lite)[Google: Gemini 2.5 Flash Lite (batch)1MGemini 2.5 Flash-Lite is a lightweight reasoning model in the Gemini 2.5 family, optimized for ultra-low latency and cost efficiency. It offers improved throughput, faster token generation, and better performance...](https://hanzo.ai/models/google/gemini-2.5-flash-lite:batch)[Google: Gemini 2.5 Flash (batch)1MGemini 2.5 Flash is Google&#x27;s state-of-the-art workhorse model, specifically designed for advanced reasoning, coding, mathematics, and scientific tasks. It includes built-in "thinking" capabilities, enabling it to provide responses with greater...](https://hanzo.ai/models/google/gemini-2.5-flash:batch)[Google: Gemini 2.5 Pro1MGemini 2.5 Pro is Google’s state-of-the-art AI model designed for advanced reasoning, coding, mathematics, and scientific tasks. It employs “thinking” capabilities, enabling it to reason through responses with enhanced accuracy...](https://hanzo.ai/models/google/gemini-2.5-pro)

[View all Google models →](https://hanzo.ai/models/google)

## Use Google: Gemini 3.1 Pro Preview via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.

[Get Free API Key](https://hanzo.ai/signup)[Browse All Models](https://hanzo.ai/models)
