Gemini 3.1 Pro Preview API
LLMGemini 3.1 Pro Preview is the featured Gemini preview with 1M context, vision, and tool use.
- Input · <=200K$0.8 USDOfficial price
$2 USD - Output · <=200K$4.8 USDOfficial price
$12 USD - Input · 200K-1M$1.6 USDOfficial price
$4 USD - Output · 200K-1M$7.2 USDOfficial price
$18 USD - Savings60%
- Context1M
- Last verified2026-07-22
- View tool pricing and billing rules
What are we making today?
Bring an idea, a question, or a first draft.
01
Where it fits
Gemini 3.1 Pro Preview is the featured Gemini preview with 1M context, vision, and tool use.
Choose it when evaluating the 3.1 Pro preview line in long-context, multimodal agent workflows.
02
Model capabilities
Vision
Accepts visual input alongside text for multimodal coding and analysis tasks.
Tool use
Can select and call tools in agent workflows that support structured tool use.
03
OpenAI-compatible API
Keep your client and change the base URL, API key, and model ID.
curl https://api.omniakey.com/v1/chat/completions \
-H "Authorization: Bearer $OMNIAKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-pro-preview",
"messages": [{"role": "user", "content": "Explain this codebase"}],
"stream": true
}'04
Compatible coding tools
More Google models
Frequently asked questions
How much does Gemini 3.1 Pro Preview cost on OmniaKey?
Rates vary with input context length: <=200K: Input $0.8 USD, Output $4.8 USD, Cache hit / 1M $0.08 USD; 200K-1M: Input $1.6 USD, Output $7.2 USD, Cache hit / 1M $0.16 USD.
What is the context window for Gemini 3.1 Pro Preview?
The listed context window is 1M. Actual usable limits can also depend on the client and upstream request format.
Which coding tools work with Gemini 3.1 Pro Preview?
The current catalog lists compatibility with Cursor, Cline, Aider. Use the model ID shown on this page when the client supports model selection.