gpt-oss-20b is 3.8× cheaper per million tokens (blended). Gemma 4 31B has the larger context window (262,144 vs 131,072 tokens, 2.0×).

Gemma 4 31B vs gpt-oss-20b

Live catalog fields. Best-in-row is highlighted.

Gemma 4 31Bopen

Google · google__gemma-4-31b-it

gpt-oss-20bopen

OpenAI · openai__gpt-oss-20b

Identity

Fieldgoogle__gemma-4-31b-itopenai__gpt-oss-20b
ProviderGoogleOpenAI
Sluggoogle__gemma-4-31b-itopenai__gpt-oss-20b
Statuslivelive
Open weightsYesYes
License——
HuggingFacegoogle/gemma-4-31B-itopenai/gpt-oss-20b

Quality

Fieldgoogle__gemma-4-31b-itopenai__gpt-oss-20b
Quality index (0–100)——

Cost

Fieldgoogle__gemma-4-31b-itopenai__gpt-oss-20b
Input $ / 1M tokens$0.20$0.03
Cached input $ / 1M—$0.03
Output $ / 1M tokens$0.40$0.13

Context

Fieldgoogle__gemma-4-31b-itopenai__gpt-oss-20b
Max context tokens262,144131,072
Max output tokens16,384117,964

Modalities

Fieldgoogle__gemma-4-31b-itopenai__gpt-oss-20b
Inputimage, text, videotext
Outputtexttext