Compare AI models
| Specifications | ||
ParametersThe learned values that shape how a model responds. B means billion and T means trillion. For mixture-of-experts models, the total count is larger than the number active for each token. Parameter count alone does not measure quality. | 9B/27B | 7B/13B/34B |
Context windowHow much information the model can work with in one request, measured in tokens — pieces of words or other data. This includes your question, attachments, conversation and reply. Limits can vary by model variant and provider. | 8k | 16k |
| API pricingUSD per 1M tokens · lower wins | ||
Cheapest inputLowest input rate across every provider on OpenRouter, the lab included. The cheapest endpoint may run a quantised build or a shorter context — see "Available from" on the model page. | $0.65NextBit | — |
Cheapest outputLowest output rate across every provider on OpenRouter, the lab included. May come from a different provider than the cheapest input. | $0.65NextBit | — |
| $163NextBit · int4 | — | |
| Overview | ||
| Company | Meta | |
| Release date | Jun 27 2024 | Aug 24 2023 |
| Access | Open Weight | Open Weight |
| Model details | View model | View model |
Other comparisons
Gemma 2vsClaude Haiku 5.5Code LlamavsClaude Haiku 5.5Gemma 2vsGPT-6.1 SolCode LlamavsGPT-6.1 SolGemma 2vsGrok 4.7Code LlamavsGrok 4.7Gemma 2vsDeepSeek-V4.1-Flash-1017Code LlamavsDeepSeek-V4.1-Flash-1017Gemma 2vsMistral Large 4Code LlamavsMistral Large 4Gemma 2vsKimi K3Code LlamavsKimi K3Frequently asked questions
Gemma 2 and Code Llama don't publish scores on any of the same benchmarks, so there's no direct head-to-head comparison. Code Llama shipped 308 days before Gemma 2, so benchmark comparisons should account for the intervening progress.
Gemma 2 has 9B/27B parameters, while Code Llama has 7B/13B/34B. Context windows are 8k (Gemma 2) vs 16k (Code Llama).
Direct benchmark comparisons are unavailable — Gemma 2 and Code Llama don't publish scores on any of the same benchmarks.