Meta-llama

Code Llama 34B Instruct API Pricing 2026

Compare pricing, benchmarks, and providers for Code Llama 34B 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 34B Instruct. Pricing starts at $0.776 per million input tokens and $0.776 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.776
Output$0.776
Cached$0.450
per 1M tokens
Speed
Output-
TTFT-
median latency
Capabilities
Text only

Code Llama 34B Instruct is priced at $0.776 per million input tokens and $0.776 per million output tokens. It has a context window of 16,384 tokens. It is available from 2 providers, with Together the cheapest at $0.776 per million input tokens (input prices range from $0.776 to $0.900).

Pricing Comparison

Compare Code Llama 34B 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.776
$0.776
—
—
—
16,384
Try
$0.700
$1.400
—
—
—
-
Try
$0.700
$2.100
—
—
—
1,048,576
Try
$0.720
$0.720
—
—
—
131,072
Try
$0.740
$2.960
—
—
—
256,000
Try
$0.750
$1.200
—
—
—
131,072
Try
$0.750
$0.800
—
41.6
2.0
131,072
Try
$0.750
$3.750
—
—
—
1,048,576
Try
$0.750
$3.750
—
—
—
1,048,576
Try
$0.750
$3.750
—
—
—
1,048,576
Try
$0.750
$3.750
—
—
95.3
1,048,576
Try

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

Compare Providers

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

2
Providers
$0.776
Cheapest Input/M
$0.776
Cheapest Output/M
Together
Best Price

Provider Pricing

2 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
Together
Together
Best Price
$0.776
$0.776
-
-
-
$0.900
$0.900
$0.450
-
-
Provider pricing data sourced from OpenRouter and Helicone

Community Rankings

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

Cost vs. Quality

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

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

Try Code Llama 34B Instruct

Use our Calculator

Estimate your costs based on expected token usage.

Open Cost Calculator

Try in Playground

Test Code Llama 34B Instruct directly in your browser.

Open Playground

Frequently Asked Questions

Code Llama 34B Instruct costs $0.000776 per 1,000 input tokens and $0.000776 per 1,000 output tokens.
Code Llama 34B Instruct is available from 2 providers. Together offers the best price.
Together offers Code Llama 34B Instruct at $0.776 per million input tokens, the lowest of 2 providers (input prices range from $0.776 to $0.900 per million tokens).
We compare Code Llama 34B 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 →