How Google's Gemini 3.1 Pro stacks up against OpenAI's GPT-5.4 on price

By TechCompare · Updated · How we check

Gemini 3.1 Pro for short prompts where its lower base rates help, or workloads that need native audio and video input. GPT-5.4 for workloads that need mature tooling, structured outputs, or the lower base rate between Gemini's 200,000 tier boundary and GPT-5.4's 272,000 long-context boundary. Both offer about 1M tokens of context, so benchmark your actual prompt length.

Google: Gemini 3.1 Pro Preview

Google AI Studio's own price

Input
$2
Output
$12
Cached
$0.20

per 1M tokens

Batch availableFlex available

Price checked 2026-12-02

A newer version is out: Gemini 4 Carbon

OpenAI: GPT-5.4

OpenAI's own price

Input
$2.50
Output
$15
Cached
$0.25

per 1M tokens

Flex available

Price checked 2026-12-02

A newer version is out: GPT-5.5

Cost Comparison

Based on 100,000 input tokens (50% cached), 5,000 output tokens, and 100 requests.Prices come live from OpenRouter at each maker's own price where it's listed. Temporary deals are left out.

Loading model prices

Gemini 3.1 Pro is Google's answer to GPT-5.4, with competitive tiered pricing, a roughly 1M token context window, and native text, image, audio, and video input. GPT-5.4 has a nearly identical context window, broader ecosystem support, mature tooling, and image input. Both are strong general-purpose models, and the choice comes down to prompt length, input modes, and ecosystem fit rather than context size.

Two near 1M context windows with different input modes and tooling ecosystems.

Side-by-side specs

SpecGemini 3.1 ProGPT-5.4
Input cost (per M, base rate)
$2.00 (better on this spec)
$2.50
Output cost (per M, base rate)
$12.00 (better on this spec)
$15.00
Context window
1,048,576 tokens
1,050,000 tokens
Cached input (per M)Cached input is text the provider has already processed. It costs less than fresh input.
$0.20 (better on this spec)
$0.25
Batch input / output (per M)
$1 / $6
None
Native multimodality
Yes (image, audio, video) (better on this spec)
Image only
Ecosystem maturity
Growing
Established (better on this spec)

How they differ

Gemini 3.1 Pro costs $2.00/M input and $12.00/M output for prompts up to 200,000 tokens, then $4.00/M input and $18.00/M output above 200,000 tokens. Cached input is $0.20/M or $0.40/M at those tiers, a 90% discount, and batch processing is 50% off. GPT-5.4 costs $2.50/M input, $15.00/M output, and $0.25/M cached input. Prompts above 272,000 input tokens use GPT-5.4's long-context rates of $5/M input and $22.50/M output, a multiplier of 2x input and 1.5x output. The context windows are nearly identical at 1,048,576 tokens for Gemini and 1,050,000 for GPT-5.4.

Gemini accepts text, images, audio, and video, while GPT-5.4 accepts text and images. GPT-5.4's ecosystem includes function calling, structured outputs, and broad SDK support.

Verdict

For prompts up to 200,000 tokens, Gemini wins the base price rows. Cached input is lower on Gemini at $0.20/M against $0.25/M. Their context windows tie in practice at 1,048,576 and 1,050,000 tokens.

Gemini's other win is native audio and video input, while GPT-5.4's is its mature tooling ecosystem. Prompt length matters because Gemini moves to $4.00/M input and $18.00/M output above 200,000 tokens, while GPT-5.4 applies its own higher long-context rates above 272,000 tokens.

Which should you pick?

Choose Gemini 3.1 Pro

Native image, audio, or video input. Short prompts that benefit from the lower base rates. You're already in the Google Cloud ecosystem and want tight Vertex AI integration.

Choose GPT-5.4

Structured output with strict JSON schemas. Mature function calling and Assistants API. Broadest third-party tooling and community support.

Frequently asked questions

Is Gemini 3.1 Pro or GPT-5.4 cheaper for short-context workloads?
Gemini 3.1 Pro is cheaper for prompts up to 200,000 tokens. It costs $2.00/M input and $12.00/M output against GPT-5.4's $2.50/M and $15.00/M. Above 200,000 tokens, Gemini rises to $4.00/M input and $18.00/M output. GPT-5.4's base rates stay unchanged until prompts exceed 272,000 input tokens, when its 2x input and 1.5x output multiplier applies.
When does GPT-5.4 beat Gemini 3.1 Pro despite higher short-context prices?
GPT-5.4 is cheaper on base tokens for prompts above 200,000 and up to 272,000 tokens, where Gemini has moved to $4.00/M input and $18.00/M output but GPT-5.4 remains $2.50/M and $15.00/M. GPT-5.4 offers mature function calling, strict structured outputs, and broad SDK support. Both models provide a 90% caching discount.
What's the context window difference and why does it matter?
The difference is negligible. Gemini 3.1 Pro supports 1,048,576 tokens and GPT-5.4 supports 1,050,000, a gap of just 1,424 tokens. Both are about 1M-token models, so prompt pricing, input modes, and tooling matter far more than context capacity.