Code Llama 7B Instruct
codellama-7b-instruct-awqPricing
List prices at Cloudflare Workers AI, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $1.92 | $1.92 |
What it costs a month
At Cloudflare Workers AI list prices, 30 days.
- Chat assistant5,000 requests a day, 2K in / 0.5K out$721
- RAG over documents2,000 requests a day, 8K in / 0.6K out$992
- Coding agent1,000 requests a day, 40K in / 2K out$2,423
- Overnight batch20,000 requests a day, 4K in / 0.4K out$5,077
Where to run it
1 host serve Code Llama 7B Instruct. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
codellama-7b-instruct-awq | $1.92 / $1.92 | codellama-7b-instruct-awq |
Capabilities
Core
- Streaming
- Function calling
- JSON mode
- Structured outputs
Multimodal
- Vision
- Image input
- Audio
- Image generation
- Video
Advanced
- Reasoning
- Tool calling
- MCP
- Prompt caching
- Batch API
- Embeddings
- Takes in
- Text
- Produces
- Text
- Open weights
- License: Llama Community LicenseRuntimes: Ollama, TGI, llama.cpp, vLLM
Cheaper alternatives
Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.
Same model, cheaper host
No host sells it for less than Cloudflare Workers AI.
Smaller Meta models
- 93% less
- 90% less
Other frontier labs
- 12% less
- 19% less
- 22% less
- 90% less
Open-weight picks
- 10% less
- 55% less
- 58% less
- 59% less
Call it
Using Cloudflare Workers AI's API.
from litellm import completion
response = completion(
model="cloudflare/codellama-7b-instruct-awq",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
How much does Code Llama 7B Instruct cost?
On Cloudflare Workers AI, Code Llama 7B Instruct costs $1.92 per million input tokens and $1.92 per million output tokens.
Which APIs offer Code Llama 7B Instruct?
Code Llama 7B Instruct runs on 1 API: Cloudflare Workers AI.
What is Code Llama 7B Instruct's context window?
4K tokens, with up to 4K tokens in one reply.
Is Code Llama 7B Instruct being retired?
No retirement date is scheduled for it on any API we track.
What are cheaper alternatives to Code Llama 7B Instruct?
Models that cost less and keep most of what it can do: Muse Spark 1.3 Contributor on Meta Model API (93% less), GPT-5.4 Mini on OpenAI (12% less), Grok 4.20 Multi Agent on xAI (19% less) and Inkling on DeepInfra (10% less). Savings are on a mix of 3 input tokens to 1 output token.
What is Code Llama 7B Instruct's API model id?
Use codellama-7b-instruct-awq with Cloudflare Workers AI.
Sources
Raw catalog entry for codellama-7b-instruct-awq on Cloudflare Workers AI
{
"input_cost_per_token": 0.000001923,
"litellm_provider": "cloudflare",
"max_input_tokens": 4096,
"max_output_tokens": 4096,
"mode": "chat",
"output_cost_per_token": 0.000001923,
"rpm": 300
}