AI model comparison

Gemma 4 31B vs gpt-oss-120b

Pricing, context window, benchmarks, and features compared side by side. Or skip the guesswork and send one prompt to both.

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output.

Input / 1M
$0.09
Output / 1M
$0.34
Context
262K

gpt-oss-120b is an open-weight, 117B-parameter Mixture-of-Experts (MoE) language model from OpenAI designed for high-reasoning, agentic, and general-purpose production use cases.

Input / 1M
$0.04
Output / 1M
$0.17
Context
131K

At a glance

Quick verdict

How the two models stack up on the things people ask about most.

Lower price

openai logo

gpt-oss-120b

2.2x cheaper for a typical chat

Higher intelligence score

google logo

Gemma 4 31B

14.7 vs 11.6 on Artificial Analysis

Larger context window

google logo

Gemma 4 31B

262K vs 131K tokens

Newer release

google logo

Gemma 4 31B

Released April 2, 2026

Benchmarks

Benchmark scores

Independent scores from Artificial Analysis. Higher is better.

Intelligence index

google logoGemma 4 31B14.7
openai logogpt-oss-120b11.6

Coding index

google logoGemma 4 31B43.4
openai logogpt-oss-120b30.4

Agentic index

google logoGemma 4 31B4.2
openai logogpt-oss-120b3.7

Pricing

Gemma 4 31B vs gpt-oss-120b API pricing

Per-token API rates. Cheaper option highlighted.

Metricgoogle logoGemma 4 31Bopenai logogpt-oss-120b
Input tokensPer 1M tokens$0.09$0.04
Output tokensPer 1M tokens$0.34$0.17
Cached input (read)Per 1M tokens$0.05Not available
Cache writePer 1M tokensNot availableNot available

What it costs in practice

Estimated cost per 1,000 requests at standard rates. Coding and long-document figures also show the cost when the input is already cached.

Chat message

2K in, 500 out

google logoGemma 4 31B$0.35
openai logogpt-oss-120b$0.16

Coding task

30K in, 4K out

google logoGemma 4 31B$4.06$2.86 cached
openai logogpt-oss-120b$1.79

Long document summary

150K in, 2K out

google logoGemma 4 31B$14.18$8.18 cached
openai logogpt-oss-120b$5.89

Specs

Context window and capabilities

How much each model can read, how much it can write, and what it accepts as input.

Metricgoogle logoGemma 4 31Bopenai logogpt-oss-120b
Context window262K tokens131K tokens
Max output16K tokens118K tokens
Input typesImage, Text, VideoText
Output typesTextText
Reasoning effort levelsNot availableHigh, Medium, Low
Default reasoning effortNot availableMedium
Release dateApril 2, 2026August 5, 2025

Features

Supported features

API features available for each model.

Metricgoogle logoGemma 4 31Bopenai logogpt-oss-120b
Tool callingSupportedSupported
Structured outputsSupportedSupported
JSON modeSupportedSupported
ReasoningSupportedSupported
TemperatureSupportedSupported
Stop sequencesSupportedSupported
Deterministic seedSupportedSupported
Verbosity controlNot supportedNot supported

Our take

gpt-oss-120b is 2.2x cheaper for a typical chat. Gemma 4 31B scores higher on the Artificial Analysis Intelligence Index (14.7 vs 11.6). Gemma 4 31B has the larger context window (262K vs 131K tokens). The right pick depends on your workload, so the quickest way to settle it is to send the same prompt to both and compare.

FAQ

Frequently asked questions

Is Gemma 4 31B or gpt-oss-120b cheaper?

gpt-oss-120b is cheaper for a typical chat (2K input tokens and 500 output tokens). gpt-oss-120b costs $0.04 per 1M input tokens and $0.17 per 1M output tokens, while Gemma 4 31B costs $0.09 per 1M input tokens and $0.34 per 1M output tokens.

Which has a bigger context window, Gemma 4 31B or gpt-oss-120b?

Gemma 4 31B supports up to 262K tokens of context, compared with 131K for gpt-oss-120b.

Is Gemma 4 31B smarter than gpt-oss-120b?

On the Artificial Analysis Intelligence Index, Gemma 4 31B scores 14.7 and gpt-oss-120b scores 11.6, putting Gemma 4 31B ahead. Benchmarks don't capture everything, so the best test is running your own prompts through both.

Can I use Gemma 4 31B and gpt-oss-120b at the same time?

Yes. Shortcut Chat sends one prompt to multiple models at once, so you can see Gemma 4 31B and gpt-oss-120b answer side by side and keep the better response.

google logoopenai logo

Why choose? Ask both.

Send one prompt to Gemma 4 31B and gpt-oss-120b at the same time. Compare the answers side by side and keep the best one.