CodeLlama 13B
CodeLlama 13B 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
- 13B
- Architecture
- Decoder Only
- Knowledge cutoff
- 2022-09
- Specialization
- general
- Openness
- Open weights
- License
- Llama 2 CommunityCommercial use with conditions
- Training
- finetuned
Large-scale open-source AI for social technologies.
Cheapest of 4 routes · Fireworks AI
About
CodeLlama 13B is a state-of-the-art generative text model developed by Meta, specifically designed for code synthesis and understanding tasks. Released on August 24, 2023, this 13-billion-parameter model excels in general code generation and comprehension, making it suitable for a wide range of programming tasks, including code completion, infilling, and instruction following. It utilizes an optimized transformer architecture and has been trained on a diverse dataset similar to Llama 2, ensuring robust understanding of programming languages and coding practices. AI engineers can integrate CodeLlama 13B into various coding environments and tools for both commercial and research applications, leveraging its powerful capabilities to enhance productivity and streamline the coding process.
CodeLlama 13B is Meta's 13-billion-parameter general code generation model, released August 24, 2023. It is produced by further training Llama 2 13B on code-heavy data and supports code completion, fill-in-the-middle (FIM) infilling, and code understanding across multiple programming languages. This LLMReference seed row carries a 100K-token context, so it should be read as a long-context hosted listing for the 13B base model rather than a guarantee that every CodeLlama 13B endpoint exposes the same window.
At 13 billion parameters, CodeLlama 13B offers a meaningful capability improvement over the 7B variant: stronger handling of complex multi-function code, less common programming languages, and more accurate code completions for longer functions. The model covers Python, C, C++, Java, PHP, TypeScript, C#, and Bash, among others. The 100K context row is most relevant when a provider exposes extended code context for larger files, repository excerpts, or long autocomplete histories; verify the selected provider's cap before designing around full-window prompts.
CodeLlama 13B is available as open weights on Hugging Face (meta-llama/CodeLlama-13b-hf) under Meta's Code Llama Community License, and is hosted on Together AI, Fireworks AI, Azure AI Foundry, and Replicate. For Python specialization, the CodeLlama 13B Python variant is preferred. The 34B and 70B variants offer higher accuracy at greater compute cost.
CodeLlama 13B has a 100k-token context window.
CodeLlama 13B input tokens at $0.1/1M, output at $0.5/1M.
Top use-case fit
Classification
Included by capability and metadata signals in the decision map.
JSON / Tool use
Included by capability and metadata signals in the decision map.
Provider price ladder
Compare all 4Compare API pricing across 4 providers for input and output tokens, batch, and cached reads when available.
| Provider | Input / 1M | Output / 1M | Route |
|---|---|---|---|
| Fireworks AI | $0.200 | $0.200 | Provisioned |
| Together AI | $0.300 | $0.300 | Serverless |
| Replicate API | $0.100 | $0.500 | Serverless |
| Microsoft Foundry | $0.810 | $0.940 | Provisioned |
Available via routers & gateways(6)
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.
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.
Capabilities
Benchmark peer barsfor Classification
No task-mapped benchmark peers are available for this model yet.
Migration checks
No linked migration route is available for this model yet.
Large-scale open-source AI for social technologies.
Cheapest of 4 routes · Fireworks AI