Skip to content
llmmodels

Codestral (latest) vs Gemma 2 27B

Which is better, Codestral (latest) or Gemma 2 27B?

Codestral (latest) is about 1.4× cheaper on a blended (3:1 input:output) token price. Codestral (latest) has the larger context window (250K vs 8K).

SpecCodestral (latest)Gemma 2 27B
ProviderMistral AIGoogle DeepMind
ReleasedMay 29, 2024Jul 13, 2024 (better)
TypeChat LLMChat LLM
Parameters22B27B
Context window250K (better)8K
Max output4K (better)2K
Input price / 1M$0.3 (better)$0.65
Output price / 1M$0.9$0.65 (better)
Input modalitiestext, pdf (better)text
Open weightsYesYes
LicenseOpen (non-commercial)gemma
Reasoning modeNoNo
Tool callingYesNo
API providers44
Epoch Capabilities Index—118.6
GPQA Diamond—36.5%
Aider Polyglot11.1%—
OTIS Mock AIME—1.4%
MATH Level 5—27.9%
LiveBench—38.2%
MMLU—75.7%

Cost example

For a workload of 10M input + 2M output tokens per month: Codestral (latest) costs $4.80 and Gemma 2 27B costs $7.80 at list price (Mistral AI / openrouter pricing).

About Codestral (latest)

Codestral (latest) is an open-weight chat llm from Mistral AI, released May 29, 2024. It has 22B parameters, a 250K-token context window and accepts text, pdf input. API pricing starts at $0.3 per million input tokens and $0.9 per million output tokens. It is available from 4 API providers. Full Codestral (latest) 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

More from Mistral AI and Google DeepMind · Categories: domain-specific llms, coding & software engineering llms, open-weight llms, agentic & tool-calling llms

FAQ

Which is better, Codestral (latest) or Gemma 2 27B?

Codestral (latest) is about 1.4× cheaper on a blended (3:1 input:output) token price. Codestral (latest) has the larger context window (250K vs 8K).

Is Codestral (latest) cheaper than Gemma 2 27B?

Codestral (latest) costs $0.3 input / $0.9 output per 1M tokens; Gemma 2 27B costs $0.65 / $0.65. Codestral (latest) is cheaper overall.

Which has a bigger context window?

Codestral (latest): 256,000 tokens. Gemma 2 27B: 8,192 tokens.

Are Codestral (latest) and Gemma 2 27B open source?

Codestral (latest) is open-weight; Gemma 2 27B is open-weight.