impulse

Gemini 3.1 Pro

Frontier lab
API id gemini-3.1-pro
Input / 1M
$2.00
at DeepInfra
Output / 1M
$12.00
at DeepInfra
Context window
1M
tokens
Max output
1M
tokens per reply
Hosts
4
4 listings
Released
-
date not published

Pricing

List prices at DeepInfra, in US dollars per million tokens.

TierInput / 1MOutput / 1M
Standard$2.00$12.00

What it costs a month

At DeepInfra list prices, 30 days.

  • Chat assistant5,000 requests a day, 2K in / 0.5K out$1,500
  • RAG over documents2,000 requests a day, 8K in / 0.6K out$1,392
  • Coding agent1,000 requests a day, 40K in / 2K out$3,120
  • Overnight batch20,000 requests a day, 4K in / 0.4K out$7,680
Use your own numbers

Where to run it

4 hosts serve Gemini 3.1 Pro. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
DeepInfraInference
gemini-3.1-pro
$2.00 / $12.00
ReplicateInference
gemini-3.1-pro
$2.00 / $12.00
databricks-gemini-3-1-pro
$2.50 / $15.00
+25% vs headline
gemini-3.1-pro
$2.70 / $16.20
+35% vs headline

Capabilities

Core

  • Streaming
  • Function calling
  • JSON mode
  • Structured outputs

Multimodal

  • Vision
  • Image input
  • Audio
  • Image generation
  • Video

Advanced

  • Reasoning
  • Tool calling
  • MCP
  • Prompt caching
  • Batch API
  • Embeddings
Takes in
TextImagesAudio
Produces
Text
Features
Audio input

Cheaper alternatives

Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.

Same model, cheaper host

No host sells it for less than DeepInfra.

Smaller Google models

  • Gemini 4 Carbon
    Google · on Google AI Studio
    $2.00 / $10.00
    Has every key capability
    11% less
  • Gemini 4 Argon
    Google · on Google AI Studio
    $2.00 / $10.00
    Has every key capability
    11% less
  • Gemini 4 Hydrogen
    Google · on Google AI Studio
    $1.50 / $7.50
    Has every key capability
    33% less

Other frontier labs

  • GPT-6.2 Sol
    OpenAI · on OpenAI
    $2.00 / $10.00
    Has every key capability
    11% less
  • Claude Sonnet 5.5
    Anthropic · on Anthropic
    $2.00 / $10.00
    Has every key capability
    11% less
  • Grok 4.7
    xAI · on xAI
    $2.00 / $6.00
    Has every key capability
    33% less
  • GPT-6.1 Terra
    OpenAI · on OpenAI
    $1.00 / $5.00
    Has every key capability
    56% less

Open-weight picks

  • Command A Plus
    Cohere · on AIHubMix
    $2.50 / $10.00
    Has every key capability
    3% less
  • Kimi K3.1 Pro
    Moonshot AI · on Databricks
    $2.00 / $10.00
    Has every key capability
    11% less
  • Qwen4 Max
    Alibaba Qwen · on Alibaba DashScope
    $1.50 / $4.50
    Has every key capability
    50% less
  • Inkling
    Independent · on DeepInfra
    $0.95 / $4.05
    Has every key capability
    62% less

Model line

Newer and older versions, at each lab's own price.

  1. UndatedGemini 3.1 ProLatest$2.00 / $12.00
  2. UndatedGemini 3 Pro$2.00 / $12.00
  3. Jun 2025Gemini 2.5 Pro$1.25 / $10.00

Call it

Using DeepInfra's API.

Python
from litellm import completion

response = completion(
    model="deepinfra/gemini-3.1-pro",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Quick answers

How much does Gemini 3.1 Pro cost?

On DeepInfra, Gemini 3.1 Pro costs $2.00 per million input tokens and $12.00 per million output tokens.

Which APIs offer Gemini 3.1 Pro?

Gemini 3.1 Pro runs on 4 APIs: DeepInfra, Replicate, Databricks and Kyma API.

What is Gemini 3.1 Pro's context window?

1M tokens, with up to 1M tokens in one reply.

Is Gemini 3.1 Pro being retired?

No retirement date is scheduled for it on any API we track.

Is there a newer version of Gemini 3.1 Pro?

No. Gemini 3.1 Pro is the newest model in its line.

What are cheaper alternatives to Gemini 3.1 Pro?

Models that cost less and keep most of what it can do: Gemini 4 Carbon on Google AI Studio (11% less), GPT-6.2 Sol on OpenAI (11% less), Claude Sonnet 5.5 on Anthropic (11% less) and Command A Plus on AIHubMix (3% less). Savings are on a mix of 3 input tokens to 1 output token.

What is Gemini 3.1 Pro's API model id?

Use gemini-3.1-pro with DeepInfra. Other hosts use their own ids: databricks-gemini-3-1-pro on Databricks.

Sources

Raw catalog entry for gemini-3.1-pro on DeepInfra
{
  "max_output_tokens": 1000000,
  "max_input_tokens": 1000000,
  "input_cost_per_token": 0.000002,
  "output_cost_per_token": 0.000012,
  "litellm_provider": "deepinfra",
  "mode": "chat",
  "supports_function_calling": true,
  "supports_tool_choice": true,
  "supports_response_schema": true,
  "supports_reasoning": true,
  "supports_vision": true,
  "source": "https://deepinfra.com/pricing",
  "supports_audio_input": true
}