Skip to content

Gemini 3.1 Flash Lite vs Gemma 4 31B

Gemini 3.1 Flash Lite (Google) and Gemma 4 31B (Google) are listed at different prices. Gemma 4 31B costs less: $0.20 per 1M input tokens and $0.40 per 1M output tokens, against $0.25 and $1.50 for Gemini 3.1 Flash Lite. Gemini 3.1 Flash Lite has the larger context window, 1,048,576 tokens against 262,144 for Gemma 4 31B. Only Gemini 3.1 Flash Lite supports a reasoning effort setting. Gemini 3.1 Flash Lite accepts text, images, files, audio and video and produces text; Gemma 4 31B accepts text, images and video and produces text.

Google: Gemini 3.1 Flash Lite accepts text, images, video, files and audio, while Google: Gemma 4 31B accepts text, images and video. Both produce text and support tools, structured outputs, response formats and reasoning; Gemini 3.1 Flash Lite has a 1,048,576-token context, compared with Gemma 4 31B’s 262,144 tokens.

Compared from catalog data checked

Gemma 4 31B

$0.20 in
$0.40 out
262K context

Side by side

0.00 the better figure in a row
Gemini 3.1 Flash Lite and Gemma 4 31B specifications side by side
SpecificationGemini 3.1 Flash LiteGemma 4 31B
Maker Google Google
Added to catalog 7 May 2026 2 Apr 2026
Input, per 1M tokens $0.25 $0.20
Output, per 1M tokens $1.50 $0.40
Cached input read, per 1M $0.025 n/a
Context windowTokens 1,048,576 262,144
Max outputTokens 65,536 16,384
Accepts audio, file, image, text, video image, text, video
Produces text text
Tool calling Yes Yes
Structured outputs Yes Yes
Reasoning effort control Yes No

List prices through OpenRouter, in US dollars. Each model's page has its variants, price history and sample outputs.

What the same task costs

List price for one request, 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 Gemini 3.1 Flash Lite and Gemma 4 31B
TaskGemini 3.1 Flash LiteGemma 4 31B
Answer a short question500 in / 300 out $0.0006 $0.0002
Summarise a 50-page PDF25,000 in / 800 out $0.0075 $0.0053
Review a 2,000-line source file30,000 in / 2,000 out $0.011 $0.0068
Read a 300-page contract set150,000 in / 1,500 out $0.040 $0.031

Which to choose

Choose Gemini 3.1 Flash Lite if

  • Cached input costs less: $0.025 against n/a per 1M
  • You need the larger context window: 1,048,576 tokens against 262,144
  • You need longer answers in one response: 65,536 tokens against 16,384
  • It has to read files and audio, which the other model does not
  • You want to set how much it reasons before it answers
Gemini 3.1 Flash Lite details

Choose Gemma 4 31B if

  • Input tokens cost less: $0.20 against $0.25 per 1M
  • Output tokens cost less: $0.40 against $1.50 per 1M
Gemma 4 31B 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 Gemini 3.1 Flash Lite cheaper than Gemma 4 31B?

No, Gemma 4 31B is the cheaper of the two. Gemini 3.1 Flash Lite costs $0.25 per 1M input tokens and $1.50 per 1M output tokens; Gemma 4 31B costs $0.20 and $0.40 as checked on 22 Nov 2026.

Which has the larger context window, Gemini 3.1 Flash Lite or Gemma 4 31B?

Gemini 3.1 Flash Lite, at 1,048,576 tokens against 262,144 for Gemma 4 31B.

Which is better for coding, Gemini 3.1 Flash Lite or Gemma 4 31B?

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 Gemini 3.1 Flash Lite and Gemma 4 31B?

Neither is offered in the Upend chat today. Both are listed in the catalog through OpenRouter, with the figures shown here.

Find the model for your task.

Every comparison is computed from the live catalog.

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.