Gemma 4 31B
google/gemma-4-31b-it
- Input
- $0.1200 / 1M
- Output
- $0.3700 / 1M
- Context
- 262.1k
- Model page
- Details
Compare Gemma 4 31B vs GPT-5 Codex side by side by input/output token price, context window, benchmark signals, capabilities, and example monthly API cost.
This page compares Gemma 4 31B vs GPT-5 Codex in one matrix. Current records: Gemma 4 31B on OpenRouter: $0.12/$0.37 per 1M tokens, 262K context window; GPT-5 Codex on OpenRouter: $1.25/$10 per 1M tokens, 400K context window. Prices are estimates—verify official provider pages before production use.
Google: Gemma 4 31B
OpenAI: GPT-5 Codex
Compare input and output prices per 1M tokens side by side. The same underlying model can list different prices by route (Direct API vs OpenRouter); this table uses the selected route records.
Scenario cost depends on your input/output mix. The example monthly cost in the table uses default token volumes—adjust with the cost calculator for your traffic.
Independent or provider-reported benchmark signals appear when available. Benchmarks do not replace price analysis—evaluate both for your quality requirements.
Open high-intent model matchups directly with ready-made links.