Back to All Models
Google · Reasoning

Gemini 3.1 Pro Preview

google/gemini-3.1-pro-preview
Use Model Now

Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficien...

Input Price / 1M Tokens
$2.44
Output Price / 1M Tokens
$14.64
Context Window
1.0M
VisionToolsReasoningLong Context
Python Example — google/gemini-3.1-pro-preview
from openai import OpenAI

client = OpenAI(
    base_url="https://relaystack-ai.vercel.app/v1",
    api_key="sk-rs-your-key-here",
)

response = client.chat.completions.create(
    model="google/gemini-3.1-pro-preview",
    messages=[{"role": "user", "content": "Hello from RelayStack!"}],
)
print(response.choices[0].message.content)