LLM Reference

Gemma 2 9B

Released
2024-06-27
Last refreshed
2026-05-19
Status
Researched 24d ago
Open WeightsCommercial use with conditionsCodingClassificationJSON / Tool use

Gemma 2 9B is worth evaluating for coding, classification, and json / tool use when its provider route and context window match the workload.

Use it for

  • Teams evaluating coding, classification, and json / tool use
  • Workloads that can use a 8k context window
  • Buyers comparing 3 tracked provider routes

Do not use it for

  • Vision or document-understanding workloads
Specifications
Family
Gemma 2
Released
2024-06-27
Context
8k
Parameters
9B
Architecture
Decoder Only
Specialization
general
Openness
Open weights
License
GemmaCommercial use with conditions
Training
finetuned
Created by

Pioneering artificial intelligence research.

London, United Kingdom
Founded 2014
Website
Pricing
Output / 1M
$0.180
Input / 1M
$0.060

Cheapest of 3 routes · GCP Vertex AI

About

Gemma 2 9B is Google DeepMind's Gemma 2 model. It offers an 8K-token context window with weights openly available for self-hosting and scores 52.1 on MMLU PRO.

Gemma 2 9B is an open-weight model in the Gemma 2 family. The structured metadata tracks a 8k-token context window and structured outputs. This page tracks provider routes through GCP Vertex AI, Fireworks AI, and Bitdeer AI, with the cheapest tracked route listed at $0.06 input and $0.18 output per 1M tokens. Headline tracked benchmarks include HumanEval 58.4, Massive Multitask Language Understanding 71.5, and MMLU PRO 52.1.

Top use-case fit: coding, agents, and build tasks

Coding

Q/$ A

1 relevant benchmark in the decision map.

Classification

Q/$ B

2 relevant benchmarks in the decision map.

JSON / Tool use

Included by capability and metadata signals in the decision map.

Provider price ladder

Compare all 3

Compare API pricing across 3 providers for input and output tokens, batch, and cached reads when available.

ProviderInput / 1MOutput / 1MRoute
GCP Vertex AI$0.060$0.180
Serverless
Fireworks AI$0.200$0.200
Serverless
Bitdeer AI$0.080$0.240
Serverless

Available via routers & gateways(13)

Capabilities

Structured Outputs

Benchmark peer barsfor Coding

Benchmark scores(3)

Scores are benchmark-specific and are direction-aware: the same numeric gap can mean very different outcomes across suites. Use the leaderboard context and this model's provider route to decide whether the winning margin is meaningful for your workload.
BenchmarkScoreVersionSource
HumanEval58.4pass@1https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard
Massive Multitask Language Understanding71.55-shothttps://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard
MMLU PRO52.1https://huggingface.co/spaces/TIGER-Lab/MMLU-Pro

Migration checks

No linked migration route is available for this model yet.