LiteLLMLiteLLM/ MODELS

Gemini 3 Pro vs Gemini 3.1 Pro Preview

As of November 23, 2026, Gemini 3 Pro and Gemini 3.1 Pro Preview cost the same: $2.00 per 1M input tokens and $12.00 per 1M output tokens, and both have a 1M-token context window.

Prices from LiteLLM's price fileChecked

Gemini 3 Pro vs Gemini 3.1 Pro Preview side by side

Headline prices in US dollars per 1M tokens: each model's own lab where it sells it, otherwise its cheapest provider. Source: LiteLLM model price file, as of November 23, 2026.
Gemini 3 ProGemini 3.1 Pro Preview
Input, per 1M tokens$2.00$2.00
Output, per 1M tokens$12.00$12.00
Cache read, per 1M tokens–$0.20
Cache write, per 1M tokens––
Context window1,048,576 tokens1,048,576 tokens
Max output65,536 tokens65,536 tokens
Image inputYesYes
Tool callingNoYes
Structured output (JSON)NoYes
Prompt cachingYesYes
ReasoningYesYes
Providers on LiteLLM25
Price shown is fromReplicateGoogle AI Studio
Added to LiteLLMJanuary 2026February 2026

Cheapest provider for each

When to pick which

Pick Gemini 3.1 Pro Preview for

  • Supports function calling, which Gemini 3 Pro doesn't list.
  • Supports structured output, which Gemini 3 Pro doesn't list.

From differences in the data above only; where the data is equal, no reason is given.

Call Gemini 3 Pro or Gemini 3.1 Pro Preview with LiteLLM

Both use the OpenAI format through LiteLLM, so switching is a model name change. Set each provider's API key in the environment first.

Python SDK
from litellm import completion

messages = [{"role": "user", "content": "Hello!"}]

# Gemini 3 Pro
response = completion(model="replicate/google/gemini-3-pro", messages=messages)

# Gemini 3.1 Pro Preview
response = completion(model="gemini/gemini-3.1-pro-preview", messages=messages)

# Gemini 3 Pro, falling back to Gemini 3.1 Pro Preview if the call fails
response = completion(model="replicate/google/gemini-3-pro", messages=messages, fallbacks=["gemini/gemini-3.1-pro-preview"])

FAQ

Which is cheaper, Gemini 3 Pro or Gemini 3.1 Pro Preview?

They cost the same: $2.00 per 1M input tokens and $12.00 per 1M output tokens, as of November 23, 2026.

Which has the larger context window, Gemini 3 Pro or Gemini 3.1 Pro Preview?

Both have a 1,048,576-token context window.

Can I switch from Gemini 3 Pro to Gemini 3.1 Pro Preview without changing my code?

Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "replicate/google/gemini-3-pro" to "gemini/gemini-3.1-pro-preview", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.