Skip to content

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

Gemma 4 31B

$0.30 in
$0.60 out
Under 0.1¢ a message
262K context

GPT-6 Luna

$0.15 in
$0.75 out
Under 0.1¢ a message
1.05M context

Side by side

0.00 the better figure in a row
Gemma 4 31B and GPT-6 Luna specifications side by side
SpecificationGemma 4 31BGPT-6 Luna
Maker Google 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.

Check the provider's pageToken counts are estimates, and the two models count tokens differently.
Cost of the same task on Gemma 4 31B and GPT-6 Luna
TaskGemma 4 31BGPT-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 Gemma 4 31B if

  • Output tokens cost less: $0.60 against $0.75 per 1M
Gemma 4 31B details

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
GPT-6 Luna details

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.

Comparison questions

Is Gemma 4 31B cheaper than GPT-6 Luna?

It depends on the job: one costs less for input and the other for output. Gemma 4 31B costs $0.30 per 1M input tokens and $0.60 per 1M output tokens; GPT-6 Luna costs $0.15 and $0.75 as checked on 23 Nov 2026.

Which has the larger context window, Gemma 4 31B or GPT-6 Luna?

GPT-6 Luna, at 1,050,000 tokens against 262,144 for Gemma 4 31B.

Which is better for coding, Gemma 4 31B or GPT-6 Luna?

This page does not rank models on quality, and it does not repeat either maker's claims. The table shows what each accepts, supports and costs; the reliable test is your own task: give both the same piece of code and compare the answers.

Can I use both Gemma 4 31B and GPT-6 Luna?

GPT-6 Luna can be chosen in the Upend chat today; Gemma 4 31B is listed in the catalog but not offered in the chat.

Put the same question to both.

Open the chat with one, then switch model and ask again.

Sign in to Upend

Use an account you already have, or get a one-time code by email.

Use a password instead

For accounts that already have a password. Forgotten it? An emailed code signs you in just the same.