LLM Reference

CodeLlama 13B

Released
2023-08-24
Last refreshed
2026-06-01
Status
Researched 12d ago
Open WeightsCommercial use with conditionsClassificationJSON / Tool use

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
Specifications
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
Created by

Large-scale open-source AI for social technologies.

Menlo Park, California, United States
Founded 2013
Website
Pricing
Output / 1M
$0.200
Input / 1M
$0.200

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 4

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

ProviderInput / 1MOutput / 1MRoute
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)

Capabilities

Structured Outputs

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.