Skip to content

Claude Haiku 5.5 vs Gemma 4 31B

Claude Haiku 5.5 (Anthropic) and Gemma 4 31B (Google) are listed at different prices. Claude Haiku 5.5 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. Claude Haiku 5.5 has the larger context window, 1,000,000 tokens against 262,144 for Gemma 4 31B. Claude Haiku 5.5 charges $0.75 and $3.75 per 1M once a prompt passes 100,000 tokens; Gemma 4 31B keeps one price across its window. Claude Haiku 5.5 accepts text, images and files and produces text; Gemma 4 31B accepts text, images and video and produces text.

Anthropic: Claude Haiku 5.5 accepts text, images, and files, while Google: Gemma 4 31B accepts text, images, and video; both produce text and support tools, structured outputs, response formats, and reasoning. Claude Haiku 5.5 has a 1,000,000-token context and 128,000-token output limit; Gemma 4 31B has a 262,144-token context and 16,384-token output limit.

Compared from catalog data checked

Claude Haiku 5.5

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

Gemma 4 31B

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

Side by side

0.00 the better figure in a row
Claude Haiku 5.5 and Gemma 4 31B specifications side by side
SpecificationClaude Haiku 5.5Gemma 4 31B
Maker Anthropic Google
Added to catalog 7 Oct 2026 2 Apr 2026
Input, per 1M tokens $0.15 $0.30
Output, per 1M tokens $0.75 $0.60
Input above 100K tokensPer 1M; long prompts $0.75 $0.30
Output above 100K tokens $3.75 $0.60
Cached input read, per 1M $0.015 n/a
Context windowTokens 1,000,000 262,144
Max outputTokens 128,000 16,384
Accepts file, image, text image, text, video
Produces text text
Tool calling Yes Yes
Structured outputs Yes Yes
Reasoning effort control Yes No

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 Claude Haiku 5.5 and Gemma 4 31B
TaskClaude Haiku 5.5Gemma 4 31B
Answer a short question500 in / 300 out $0.0003 $0.0003
Summarise a 50-page PDF25,000 in / 800 out $0.0044 $0.0080
Review a 2,000-line source file30,000 in / 2,000 out $0.0060 $0.010
Read a 300-page contract set150,000 in / 1,500 out $0.118 $0.046

Which to choose

Choose Claude Haiku 5.5 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,000,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
Claude Haiku 5.5 details

Choose Gemma 4 31B if

  • Output tokens cost less: $0.60 against $0.75 per 1M
  • Your prompts often run past 100K tokens: $0.30 against $0.75 per 1M input tokens there
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 Claude Haiku 5.5 cheaper than Gemma 4 31B?

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

Which has the larger context window, Claude Haiku 5.5 or Gemma 4 31B?

Claude Haiku 5.5, at 1,000,000 tokens against 262,144 for Gemma 4 31B.

Which is better for coding, Claude Haiku 5.5 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 Claude Haiku 5.5 and Gemma 4 31B?

Claude Haiku 5.5 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.