Meta-llama

Code Llama 7B Instruct API Pricing 2026

Compare pricing, benchmarks, and providers for Code Llama 7B Instruct. Find the best value for your use case.

8 Ways to Use Fewer Tokens
Last updated: November 21, 2026 at 08:43 AM

Overview

Code Llama 7B Instruct. Pricing starts at $0.200 per million input tokens and $0.200 per million output tokens. The model supports a context window of up to 16K tokens. API access is available through Meta-llama.

Context Window
16K
tokens
Pricing
Input$0.200
Output$0.200
Cached$0.100
per 1M tokens
Speed
Output-
TTFT-
median latency
Capabilities
Text only

Code Llama 7B Instruct is priced at $0.200 per million input tokens and $0.200 per million output tokens. It has a context window of 16,384 tokens. It is available from 1 provider, with Fireworks the cheapest at $0.200 per million input tokens.

Pricing Comparison

Compare Code Llama 7B Instruct with 10 similar models by price.

Current Pricing (per 1M tokens)

11 models

Sponsored The Grid | Spot Priced LLM API
The Grid | Spot Priced LLM API — Why pay list price when providers will bid for your API usage? Up to 80% off.
View spot prices
Provider
Model
Input $/M
Output $/M
Coding
MMLU
GPQA
Context
Actions
$0.200
$0.200
—
—
—
16,384
Try
$0.180
$0.180
—
—
—
131,072
Try
$0.180
$0.200
—
—
—
131,072
Try
$0.180
$9.500
—
—
84.2
1,048,576
Try
$0.188
$1.125
—
—
—
1,000,000
Try
$0.195
$0.975
—
—
—
1,000,000
Try
$0.195
$0.900
—
—
—
262,144
Try
$0.200
$0.200
—
—
—
131,072
Try
$0.200
$0.600
—
—
—
65,536
Try
$0.200
$0.200
—
—
—
262,144
Try
$0.200
$0.200
—
—
—
32,768
Try

* Some models use tiered pricing based on prompt length. Displayed prices are for prompts ≤ 200k tokens.

Compare Providers

Code Llama 7B Instruct is available from multiple providers with different pricing and availability.

1
Providers
$0.200
Cheapest Input/M
$0.200
Cheapest Output/M
Fireworks
Best Price

Provider Pricing

1 models

Sponsored The Grid | Spot Priced LLM API
The Grid | Spot Priced LLM API — Why pay list price when providers will bid for your API usage? Up to 80% off.
View spot prices
Provider
Input $/M
Output $/M
Cache Read $/M
Cache Write $/M
Uptime
Fireworks
Fireworks
Best Price
$0.200
$0.200
$0.100
-
-
Provider pricing data sourced from OpenRouter and Helicone

Community Rankings

How does Code Llama 7B Instruct perform? Vote based on your experience.

Cost vs. Quality

Compare Code Llama 7B Instruct's benchmark performance against all models.

X-axis:
Y-axis:
Loading chart...
Other models

Try Code Llama 7B Instruct

Use our Calculator

Estimate your costs based on expected token usage.

Open Cost Calculator

Try in Playground

Test Code Llama 7B Instruct directly in your browser.

Open Playground

Frequently Asked Questions

Code Llama 7B Instruct costs $0.000200 per 1,000 input tokens and $0.000200 per 1,000 output tokens.
Code Llama 7B Instruct is available from 1 provider. Fireworks offers the best price.
Fireworks offers Code Llama 7B Instruct at $0.200 per million input tokens.
We compare Code Llama 7B Instruct with 10 similarly-priced models. See the benchmark scatter plot above to compare quality vs cost.

All Meta-llama Models

See pricing for all Meta-llama models.

View all Meta-llama models →