CodeLlama 34B
CodeLlama 34B is worth evaluating for classification and json / tool use when its provider route and context window match the workload.
Use it for
- Teams evaluating classification and json / tool use
- Workloads that can use a 100k context window
- Buyers comparing 4 tracked provider routes
Do not use it for
- Vision or document-understanding workloads
- Family
- Code Llama
- Released
- 2023-08-24
- Context
- 100k
- Parameters
- 34B
- Architecture
- Decoder Only
- Knowledge cutoff
- 2024-03
- Specialization
- general
- Openness
- Open weights
- License
- Llama 2 CommunityCommercial use: conditional
- Weights
- Available
- Code
- Unknown
- Training
- Fine-tuned
Large-scale open-source AI for social technologies.
Cheapest of 6 routes · DeepInfra
About
CodeLlama 34B is a powerful generative text model developed by Meta, specifically tailored for code synthesis and understanding. With 34 billion parameters, it excels in code completion, infilling, and instruction following, particularly for Python programming. The model utilizes an auto-regressive transformer architecture and has been trained on a diverse dataset of programming languages, making it versatile for various coding tasks. Designed for both commercial and research applications, CodeLlama 34B offers AI engineers a robust tool for integrating advanced code generation capabilities into their projects. More details can be found on the model's Hugging Face page .
CodeLlama 34B is an open-weight model in the Code Llama family. The structured metadata tracks a 100k-token context window and structured outputs. This page tracks provider routes through Together AI, DeepInfra, Fireworks AI, and 3 more, with the cheapest tracked route listed at $0.2 input and $0.45 output per 1M tokens. Headline tracked benchmarks include Massive Multitask Language Understanding 68.9.
Top use-case fit
Classification
Q/$ C1 relevant benchmark in the decision map.
JSON / Tool use
Included by capability and metadata signals in the decision map.
Provider price ladder
Compare all 6Compare API pricing across 4 providers for input and output tokens, batch, and cached reads when available.
| Provider | Input / 1M | Output / 1M | Route |
|---|---|---|---|
| DeepInfra | $0.200 | $0.450 | Serverless |
| Together AI | $0.800 | $0.800 | Serverless |
| Fireworks AI | $0.900 | $0.900 | Provisioned |
| Replicate API | $0.200 | $1.00 | Serverless |
Available via routers & gateways(6)
LiteLLM
GatewayOpen-source Python SDK and proxy server that unifies 100+ LLM APIs behind a single OpenAI-compatible interface, with load balancing, cost tracking, and configurable failover.
OpenRouter
HybridUnified hybrid gateway to 400+ models from 60+ providers via a single OpenAI-compatible API, with optional auto-routing that selects the best model per prompt.
Portkey
GatewayProduction AI gateway routing to 1,600+ LLMs with failover, load balancing, semantic caching, and guardrails; Apache 2.0 core is fully self-hostable with the complete feature set.
Azure AI Foundry Model Router
RouterMicrosoft Azure AI Foundry's native model router that uses a trained ML model to route each prompt in real time to the optimal Azure-hosted model, with Balanced/Cost/Quality mode selection and automatic failover.
Helicone
GatewayObservability-first AI gateway with routing, caching, rate limiting, and request tracing; Apache 2.0 open-source core with a managed hosted tier for logging and analytics.
Kong AI Gateway
GatewayMulti-LLM AI gateway built on Kong Gateway 3.x, adding semantic routing, load balancing, guardrails, and MCP traffic analytics as plugins over Kong's existing API management platform.
Capabilities
Benchmark peer barsfor Classification
Benchmark scores(1)
| Benchmark | Score | Version | Evaluation | Source |
|---|---|---|---|---|
| Massive Multitask Language Understanding | 68.9 | 5-shotObserved 2026-03-07 | — | Source |
Migration checks
No linked migration route is available for this model yet.
Frequently asked questions
What is the context window of CodeLlama 34B?
CodeLlama 34B has a context window of 100k tokens.
How much does CodeLlama 34B cost?
CodeLlama 34B pricing ranges from $0.20/1M to $1.8/1M input tokens depending on the provider.
When was CodeLlama 34B released?
CodeLlama 34B was released on 2023-08-24.
Which providers offer CodeLlama 34B?
CodeLlama 34B is available from 6 providers: Together AI, DeepInfra, Fireworks AI, IBM watsonx, Microsoft Foundry, Replicate API.
What benchmarks has CodeLlama 34B been tested on?
CodeLlama 34B has been evaluated on 1 benchmark, including Massive Multitask Language Understanding.
Large-scale open-source AI for social technologies.
Cheapest of 6 routes · DeepInfra