google/gemini-3.1-pro-preview
Google's GA flagship model. Ranks #1 on 12 of 18 tracked benchmarks. 2x+ reasoning improvement over Gemini 3 Pro. 1M-token context with strong coding, math, and multimodal input. Best for complex reasoning, advanced coding pipelines, and research-grade tasks.
Source: gemini_x0.5 · Verified 2026-06-05
Cache read $0.100/M · Cache write $—/M
Use either ID to call this model via the API.
google/gemini-3.1-pro-previewReplace the ONEHOP_KEY placeholder with your API key. Create one →
from openai import OpenAI
client = OpenAI(
base_url="https://api.onehop.ai/v1",
api_key="<ONEHOP_KEY>",
)
completion = client.chat.completions.create(
model="google/gemini-3.1-pro-preview",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)0 requests · last 30 days