Gemma 4 31B vs GPT-6 Luna
Gemma 4 31B (Google) and GPT-6 Luna (OpenAI) are listed at different prices. GPT-6 Luna costs less for input, $0.15 per 1M tokens against $0.30; Gemma 4 31B costs less for output, $0.60 per 1M tokens against $0.75. GPT-6 Luna has the larger context window, 1,050,000 tokens against 262,144 for Gemma 4 31B. GPT-6 Luna charges $0.30 and $1.125 per 1M once a prompt passes 272,000 tokens; Gemma 4 31B keeps one price across its window. Gemma 4 31B accepts text, images and video and produces text; GPT-6 Luna accepts text, images and files and produces text.
Google: Gemma 4 31B accepts text, images, and video, while OpenAI: GPT-6 Luna accepts text, images, and files. Both produce text and support tools, structured outputs, response formats, and reasoning; their context windows are 262,144 and 1,050,000 tokens, respectively.
Compared from catalog data checked
Side by side
0.00 the better figure in a row| Specification | Gemma 4 31B | GPT-6 Luna |
|---|---|---|
| Maker | OpenAI | |
| Added to catalog | 2 Apr 2026 | 22 Sep 2026 |
| Input, per 1M tokens | $0.30 | $0.15 |
| Output, per 1M tokens | $0.60 | $0.75 |
| Input above 272K tokensPer 1M; long prompts | n/a | $0.30 |
| Output above 272K tokens | n/a | $1.125 |
| Cached input read, per 1M | n/a | $0.015 |
| Context windowTokens | 262,144 | 1,050,000 |
| Max outputTokens | 16,384 | 128,000 |
| Accepts | image, text, video | file, image, text |
| Produces | text | text |
| Tool calling | Yes | Yes |
| Structured outputs | Yes | Yes |
| Reasoning effort control | No | Yes |
Prices on Upend, in US dollars. Each model's page has its variants, price history and sample outputs.
What the same task costs
The price of one request on Upend, from the token counts shown. The same four tasks are priced on every model page.
| Task | Gemma 4 31B | GPT-6 Luna |
|---|---|---|
| Answer a short question500 in / 300 out | $0.0003 | $0.0003 |
| Summarise a 50-page PDF25,000 in / 800 out | $0.0080 | $0.0044 |
| Review a 2,000-line source file30,000 in / 2,000 out | $0.010 | $0.0060 |
| Read a 300-page contract set150,000 in / 1,500 out | $0.046 | $0.024 |
Which to choose
Choose GPT-6 Luna if
- Input tokens cost less: $0.15 against $0.30 per 1M
- Cached input costs less: $0.015 against n/a per 1M
- You need the larger context window: 1,050,000 tokens against 262,144
- You need longer answers in one response: 128,000 tokens against 16,384
- You want to set how much it reasons before it answers
Neither maker's quality claims are repeated here. The reliable test is your own task: ask both the same question and read the two answers.