Gemini 3.1 Pro (preview)

Preview of the 3.1 Pro flagship. 2M context. Price for ≤200k tokens tier; scales ~2x above that.

ChatGoogle2M tokens$2.1801 / $13.0807 · 1M

google/gemini-3.1-pro-preview

Context
2M tokens
Completion cap
65,536
Tools
Yes
JSON
Yes
Released
2026-02-19
ZDR
Verified

Call it from Geek Hub

Same OpenAI SDK. Change the base URL and the model id.

curl https://api.geekhub.mx/v1/chat/completions \
  -H "Authorization: Bearer $GEEKHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-3.1-pro-preview",
    "messages": [{"role": "user", "content": "Hola"}]
  }'
Get an API key

Frequently asked questions

What is Gemini 3.1 Pro (preview)?
Preview of the 3.1 Pro flagship. 2M context. Price for ≤200k tokens tier; scales ~2x above that. Gemini 3.1 Pro (preview) runs on the Geek Hub API (OpenAI-compatible). Model id: google/gemini-3.1-pro-preview.
Is Gemini 3.1 Pro (preview) free?
No. Input is $2.1801 per 1M tokens and output is $13.0807 per 1M tokens on Geek Hub (markup included).
What is the context length of Gemini 3.1 Pro (preview)?
Gemini 3.1 Pro (preview) has a 2M tokens context window. It supports up to 65,536 completion tokens.
Does Gemini 3.1 Pro (preview) support tool calling and structured outputs?
Gemini 3.1 Pro (preview) accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
When was Gemini 3.1 Pro (preview) released?
Gemini 3.1 Pro (preview) was released on 2026-02-19.

More models from Google