GPT-5.4 and GPT-5.4 Mini have been retired · Please switch to another available model
All models
Google · API

Gemini 3.1 Pro Preview API

Use 1M context with one OmniaKey API key.

Model ID
gemini-3.1-pro-preview
Context
1M
Provider
Google
Input · USD / 1M tokens
<=200K$0.8 USD200K-1M$1.6 USD
Official price $2 USD
Output · USD / 1M tokens
<=200K$4.8 USD200K-1M$7.2 USD
Official price $12 USD
Savings
60%
Last verified
2026-07-22

01

Where it fits

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
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

Cursor
Cline
Aider

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.

Gemini 3.1 Pro Preview API, Pricing & Coding Guide · OmniaKey