GPT-5.6 is here 🎉 20% off all GPT 🎉 All July 🔥Learn more
Gemini

Google: Gemini 3.1 Pro Preview

Chat
google/gemini-3.1-pro-preview
CompareGet Started

Gemini 3.1 Pro Preview is the next generation of Google's Gemini series: a natively multimodal reasoning model positioned as Google's most advanced option for complex tasks. It can comprehend vast datasets and difficult problems spanning several information sources at once — text, audio, images, video and entire code repositories — and adds tool use, prompt caching, PDF input and web search on top. Context window: 1M tokens, output: 64K. This is a preview release, so behaviour may still change. Available via OpenAI and Gemini protocols.

Context Window
1M
Max Output Tokens
66K
Released
2026-02-19
Capabilities
VisionFunction CallingReasoningPrompt CachingWeb SearchAudio InputVideo InputPDF Input
Available Providers
GoogleCloudVertex
Supported Protocols
OpenAIopenaiGeminigemini

Providers

GoogleCloudVertex
Input Tokens
$2/M
Output Tokens
$12/M
Cache Read
$0.2/M
Cache Write
$4.5/M
Audio Input
$2/M
Cached Audio
$0.2/M
Web Search
$0.014/R
Protocols
OpenAIopenai/v1/chat/completions
Geminigemini

Code Examples

from google import genai
client = genai.Client(
api_key="YOUR_OFOX_API_KEY",
http_options={"api_version": "v1beta", "base_url": "https://api.ofox.ai/gemini"},
)
response = client.models.generate_content(
model="google/gemini-3.1-pro-preview",
contents="Hello!",
)
print(response.text)

Uptime & Status

Benchmarks

LMArenaEvaluated as gemini-3.1-pro-preview

Google: Gemini 3.1 Pro Preview scores 1486 in the Overall category of the LMArena text leaderboard (style control), ranking #9 of 374 models based on 79,682 human preference votes (updated 2026-07-12).

Benchmark scores for gemini-3.1-pro-preview on LMArena
CategoryArena Score95% CIRankVotes
Overall148614821489#9 of 37479,682
Hard Prompts150615021511#9 of 37450,878
Coding152115151527#18 of 36921,775
Math149114811501#12 of 3624,320
Creative Writing147814721485#8 of 37213,330
Instruction Following148114761486#10 of 37426,008
Chinese152715171538#11 of 3444,170

Source: LMArena · CC BY 4.0 · Updated 2026-07-12 · Methodology · Ranks compare models within each category of the LMArena text leaderboard (style control). Scores come from third-party human preference evaluations, not from OFOX.

Frequently Asked Questions

Google: Gemini 3.1 Pro Preview on Ofox.ai costs $2/M per million input tokens and $12/M per million output tokens. Pay-as-you-go, no monthly fees.