Meta-llama

Code Llama 70B Instruct API Pricing 2026

Compare pricing, benchmarks, and providers for Code Llama 70B 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 70B Instruct. Pricing starts at $0.900 per million input tokens and $0.900 per million output tokens. The model supports a context window of up to 4K tokens. API access is available through Meta-llama.

Context Window
4K
tokens
Pricing
Input$0.900
Output$0.900
Cached$0.450
per 1M tokens
Speed
Output-
TTFT-
median latency
Capabilities
Text only

Code Llama 70B Instruct is priced at $0.900 per million input tokens and $0.900 per million output tokens. It has a context window of 4,096 tokens. It is available from 1 provider, with Fireworks the cheapest at $0.900 per million input tokens.

Pricing Comparison

Compare Code Llama 70B 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.900
$0.900
—
—
—
4,096
Try
$0.880
$0.880
—
—
—
131,072
Try
$0.899
$2.825
—
—
—
202,752
Try
$0.900
$0.900
—
—
—
131,072
Try
$0.900
$1.900
—
—
—
262,144
Try
$0.900
$3.300
—
—
—
131,072
Try
$0.900
$0.900
—
—
—
123,000
Try
$0.900
$0.900
—
—
—
131,072
Try
$0.900
$0.900
—
—
—
16,384
Try
$0.900
$0.900
—
—
—
16,384
Try
$0.900
$0.900
—
—
—
4,096
Try

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

Compare Providers

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

1
Providers
$0.900
Cheapest Input/M
$0.900
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.900
$0.900
$0.450
-
-
Provider pricing data sourced from OpenRouter and Helicone

Community Rankings

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

Cost vs. Quality

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

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

Try Code Llama 70B Instruct

Use our Calculator

Estimate your costs based on expected token usage.

Open Cost Calculator

Try in Playground

Test Code Llama 70B Instruct directly in your browser.

Open Playground

Frequently Asked Questions

Code Llama 70B Instruct costs $0.000900 per 1,000 input tokens and $0.000900 per 1,000 output tokens.
Code Llama 70B Instruct is available from 1 provider. Fireworks offers the best price.
Fireworks offers Code Llama 70B Instruct at $0.900 per million input tokens.
We compare Code Llama 70B 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 →