Compare

Gemma 4 31b It Thinking vs GPT-4o

Pricing is only the shared seller matrix below. Best rates and catalog map are separate sections, so no chart is embedded in pricing. Open the calculator for the same workload on each side.

Google

Model

Gemma 4 31b It Thinking

Image inputTool calling

Best $0.150 in · $0.400 out

Context window 262K

Pricing
OpenAI

Model

GPT-4o

Image inputTool calling

Best $2.50 in · $10.00 out

Context window 128K

Pricing

Gemma 4 31b It Thinking is cheaper across the board — 94% cheaper on input and 96% cheaper on output.

Pricing matrix

Shared sellers only. Each row is a host that lists both models. Dollar amounts are per 1M tokens. Lowest in each pair of columns is emphasized.

ProviderGemma 4 31b It Thinking inGemma 4 31b It Thinking outGPT-4o inGPT-4o out
AzureN/AN/A$2.50$10.00
Github CopilotN/AN/AN/AN/A
GmiN/AN/A$2.50$10.00
Libertai$0.150$0.400N/AN/A
OpenAIN/AN/A$2.50$10.00
OpenrouterN/AN/A$2.50$10.00
ReplicateN/AN/A$2.50$10.00
Vercel Ai GatewayN/AN/A$2.50$10.00

Best listed rates (this pair)

Same "best row in current pricing" logic as model pages: a compact view of the lowest input and output we show for each side. This is not the seller matrix.

Catalog map · Google · OpenAI

Each chart uses real catalog rows that include both list input and list output ($/1M). Larger green dots are the models on this comparison page; accent dots are other active models from that provider.

Google · input vs output

Scatter chart: X = input $/M, Y = output $/M. This page's models are labeled on the green dots; hover others for detail.

ListedoutputUSD/1M

One dot per catalog row that has both list prices. Green dots are labeled with the models on this page; hover any dot for name and prices. Upper-right means higher cost on both axes ($/1M).

OpenAI · input vs output

ListedoutputUSD/1M

One dot per catalog row that has both list prices. Green dots are labeled with the models on this page; hover any dot for name and prices. Upper-right means higher cost on both axes ($/1M).

Specifications

Each column header is the full model name. Tint marks the favorable value where we compute a winner.

Spec
Gemma 4 31b It Thinking
GPT-4o
Context window
262,144 tokens
128,000 tokens
Max output tokens
262,144 tokens
16,384 tokens
Vision
Yes
Yes
Function calling
Yes
Yes
Streaming
No
Yes
Release date
N/A
May 2024

Cost calculator

Same requests, input tokens, and output tokens for both columns. Pick the provider row that matches how you buy.

Gemma 4 31b It Thinking
Monthly
$105
Annual
$1.3K
GPT-4o
Monthly
$2.3K
Annual
$27.4K
Save $2.1K/month with Gemma 4 31b It Thinking

When to pick which

Short takeaways: no cards, just the points. Validate with your own workloads.

  • Long-context tasks

    Use Gemma 4 31b It Thinking. Its 262K context window handles large codebases and documents better than 128K.

  • High-volume text generation

    Use Gemma 4 31b It Thinking. Output tokens are 96% cheaper, which compounds significantly at scale.

  • Long output (reports, code files)

    Use Gemma 4 31b It Thinking. Its 262K max output limit reduces the need to split requests.

Frequently asked questions

Gemma 4 31b It Thinking is cheaper on both input and output tokens.

More comparisons

Other popular head-to-head matchups.