LiteLLMLiteLLM/ MODELS

Gemini 3.1 Pro API Pricing

By Google · 4 providersdeepinfra/google/gemini-3.1-proCompare
Input / output
$2.00 / $12.00 per 1M tokens
Context
1M tokens
Max output
1M tokens

As of November 24, 2026, Gemini 3.1 Pro costs $2.00 per 1M input tokens and $12.00 per 1M output tokens from DeepInfra, the lowest of 4 providers. It has a 1,000,000-token context window and returns up to 1,000,000 tokens per response.

Prices updated Checked

Gemini 3.1 Pro pricing by provider

4 listings across 4 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

Gemini 3.1 Pro prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readCache writeContext
DeepInfradeepinfra/google/gemini-3.1-pro$2.00$12.00––1M
Databricksdatabricks/databricks-gemini-3-1-pro$2.50$15.00$0.25$2.501M
Kyma APIkyma/gemini-3.1-pro$2.70$16.20$0.27–1M
Replicatereplicate/google/gemini-3.1-pro$2.00$12.00–––

What Gemini 3.1 Pro costs in practice

1,000 requests with 2,000 input and 500 output tokens each

DeepInfra$10.00
Replicate$10.00
Databricks$12.50
Kyma API$13.50

100 long-document requests with 100,000 input and 2,000 output tokens each

DeepInfra$22.40
Replicate$22.40
Databricks$28.00
Kyma API$30.24

Gemini 3.1 Pro cost calculator

At DeepInfra's price ($2.00 input, $12.00 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $80.00 a day, about $2,400 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.008
Per day
$80.00
Per month (30 days)
$2,400

Gemini 3.1 Pro features

Input: text, image, pdf, audio, video. Output: text.

Use Gemini 3.1 Pro with LiteLLM

Call Gemini 3.1 Pro through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="deepinfra/google/gemini-3.1-pro",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: gemini-3-1-pro
    litellm_params:
      model: deepinfra/google/gemini-3.1-pro
      api_key: os.environ/DEEPINFRA_API_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -d '{
    "model": "gemini-3-1-pro",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Gemini 3.1 Pro FAQ

How much does Gemini 3.1 Pro cost?

Gemini 3.1 Pro costs $2.00 per 1M input tokens and $12.00 per 1M output tokens from DeepInfra, the lowest of 4 providers.

What is the context window of Gemini 3.1 Pro?

Gemini 3.1 Pro has a 1,000,000-token context window and returns up to 1,000,000 tokens per response.

Which providers offer Gemini 3.1 Pro?

Gemini 3.1 Pro is available from 4 providers through LiteLLM: DeepInfra, Databricks, Kyma API and Replicate. The lowest price is on DeepInfra.

How do I call Gemini 3.1 Pro with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="deepinfra/google/gemini-3.1-pro", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does Gemini 3.1 Pro support?

Gemini 3.1 Pro supports function calling, structured output, image input, PDF input, audio input, video input, reasoning and prompt caching.

When did LiteLLM add Gemini 3.1 Pro?

Gemini 3.1 Pro was added to LiteLLM's model price file on August 18, 2026.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:

LiteLLM docs: DeepInfra, Databricks, Kyma API, Replicate.

Provider pages: DeepInfra, Databricks, Kyma API, Replicate.