Gemma 4 31B IT vs GPT-6 Luna
GPT-6 Luna wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (156.4 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. GPT-6 Luna has the larger context window (1.1M vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; GPT-6 Luna is API-only.
| Spec | Gemma 4 31B IT | GPT-6 Luna |
|---|---|---|
| Provider | Google DeepMind | OpenAI |
| Released | Apr 2, 2026 | Sep 22, 2026 (better) |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | 31B | — |
| Context window | 256K | 1.1M (better) |
| Max output | 32K | 125K (better) |
| Input price / 1M | Free (better) | $0.1 |
| Output price / 1M | Free (better) | $0.5 |
| Input modalities | text, image, video | text, image, pdf, file (better) |
| Open weights | Yes | No |
| License | apache-2.0 | Proprietary |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 51 | 51 |
| Epoch Capabilities Index | 144.1 | 156.4 (better) |
| GPQA Diamond | 75.8% | 90.5% (better) |
| WebDev Arena | 1364 | 1582 (better) |
| OTIS Mock AIME | 73.3% | 98.9% (better) |
| FrontierMath | — | 78.9% |
| ARC-AGI-2 | — | 59.3% |
| SimpleQA Verified | 10.4% | 41.4% (better) |
Cost example
For a workload of 10M input + 2M output tokens per month: Gemma 4 31B IT costs $0.00 and GPT-6 Luna costs $2.00 at list price (Google DeepMind / openai pricing).
About Gemma 4 31B IT
Gemma 4 31B IT is an open-weight reasoning llm from Google DeepMind, released Apr 2, 2026. It has 31B parameters, a 256K-token context window and accepts text, image, video input. It can be used for free via API. It is available from 51 API providers. It scores 144.1 on the Epoch Capabilities Index. Full Gemma 4 31B IT specs →
About GPT-6 Luna
GPT-6 Luna is a proprietary reasoning llm from OpenAI, released Sep 22, 2026. It has a 1.1M-token context window and accepts text, image, pdf, file input. API pricing starts at $0.1 per million input tokens and $0.5 per million output tokens. It is available from 51 API providers. It scores 156.4 on the Epoch Capabilities Index. Full GPT-6 Luna specs →
Compare other models
FAQ
Which is better, Gemma 4 31B IT or GPT-6 Luna?
GPT-6 Luna wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (156.4 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. GPT-6 Luna has the larger context window (1.1M vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; GPT-6 Luna is API-only.
Is Gemma 4 31B IT cheaper than GPT-6 Luna?
Gemma 4 31B IT costs Free input / Free output per 1M tokens; GPT-6 Luna costs $0.1 / $0.5. Gemma 4 31B IT is cheaper overall.
Which has a bigger context window?
Gemma 4 31B IT: 262,144 tokens. GPT-6 Luna: 1,050,000 tokens.
Are Gemma 4 31B IT and GPT-6 Luna open source?
Gemma 4 31B IT is open-weight; GPT-6 Luna is proprietary.