Skip to content
llmmodels

Anthropic: Claude 3.5 Haiku vs Gemma 2 27B

Anthropic: Claude 3.5 Haiku wins 5 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (124.8 vs 118.6). Gemma 2 27B is about 2.1× cheaper on a blended (3:1 input:output) token price. Anthropic: Claude 3.5 Haiku has the larger context window (200K vs 8K). Gemma 2 27B has open weights, so you can self-host and fine-tune it; Anthropic: Claude 3.5 Haiku is API-only.

SpecAnthropic: Claude 3.5 HaikuGemma 2 27B
ProviderAnthropicGoogle DeepMind
ReleasedOct 22, 2024 (better)Jul 13, 2024
TypeChat LLMChat LLM
Parameters—27B
Context window200K (better)8K
Max output8K (better)2K
Input price / 1M$0.68$0.65 (better)
Output price / 1M$3.40$0.65 (better)
Input modalitiestext, image (better)text
Open weightsNoYes
LicenseProprietarygemma
Reasoning modeNoNo
Tool callingYesNo
API providers44
Epoch Capabilities Index124.8 (better)118.6
GPQA Diamond38.1% (better)36.5%
Aider Polyglot28.0%—
OTIS Mock AIME4.3% (better)1.4%
MATH Level 546.4% (better)27.9%
LiveBench43.5% (better)38.2%
MMLU74.3%75.7% (better)

Cost example

For a workload of 10M input + 2M output tokens per month: Anthropic: Claude 3.5 Haiku costs $13.60 and Gemma 2 27B costs $7.80 at list price (poe / openrouter pricing).

About Anthropic: Claude 3.5 Haiku

Anthropic: Claude 3.5 Haiku is a proprietary chat llm from Anthropic, released Oct 22, 2024. It has a 200K-token context window and accepts text, image input. API pricing starts at $0.68 per million input tokens and $3.40 per million output tokens. It is available from 4 API providers. It scores 124.8 on the Epoch Capabilities Index. Full Anthropic: Claude 3.5 Haiku specs →

About Gemma 2 27B

Gemma 2 27B is an open-weight chat llm from Google DeepMind, released Jul 13, 2024. It has 27B parameters and a 8K-token context window. API pricing starts at $0.65 per million input tokens and $0.65 per million output tokens. It is available from 4 API providers. It scores 118.6 on the Epoch Capabilities Index. Full Gemma 2 27B specs →

Compare other models

FAQ

Which is better, Anthropic: Claude 3.5 Haiku or Gemma 2 27B?

Anthropic: Claude 3.5 Haiku wins 5 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (124.8 vs 118.6). Gemma 2 27B is about 2.1× cheaper on a blended (3:1 input:output) token price. Anthropic: Claude 3.5 Haiku has the larger context window (200K vs 8K). Gemma 2 27B has open weights, so you can self-host and fine-tune it; Anthropic: Claude 3.5 Haiku is API-only.

Is Anthropic: Claude 3.5 Haiku cheaper than Gemma 2 27B?

Anthropic: Claude 3.5 Haiku costs $0.68 input / $3.40 output per 1M tokens; Gemma 2 27B costs $0.65 / $0.65. Gemma 2 27B is cheaper overall.

Which has a bigger context window?

Anthropic: Claude 3.5 Haiku: 200,000 tokens. Gemma 2 27B: 8,192 tokens.

Are Anthropic: Claude 3.5 Haiku and Gemma 2 27B open source?

Anthropic: Claude 3.5 Haiku is proprietary; Gemma 2 27B is open-weight.