Code Llama 7B
codellama-7bPricing
List prices at LlamaGate, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $0.06 | $0.12 |
What it costs a month
At LlamaGate list prices, 30 days.
- Chat assistant5,000 requests a day, 2K in / 0.5K out$27.00
- RAG over documents2,000 requests a day, 8K in / 0.6K out$33.12
- Coding agent1,000 requests a day, 40K in / 2K out$79.20
- Overnight batch20,000 requests a day, 4K in / 0.4K out$173
Where to run it
1 host serve Code Llama 7B. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
LlamaGateGateway codellama-7b | $0.06 / $0.12 | codellama-7b |
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 LlamaGate.
Smaller Meta models
No cheaper Meta model keeps its key capabilities.
Other frontier labs
No cheaper match from another frontier lab.
Open-weight picks
- 13% less
- 33% less
- 35% less
- 43% less
Call it
Using LlamaGate's API.
from litellm import completion
response = completion(
model="llamagate/codellama-7b",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
How much does Code Llama 7B cost?
On LlamaGate, Code Llama 7B costs $0.06 per million input tokens and $0.12 per million output tokens.
Which APIs offer Code Llama 7B?
Code Llama 7B runs on 1 API: LlamaGate.
What is Code Llama 7B's context window?
16K tokens, with up to 4K tokens in one reply.
Is Code Llama 7B being retired?
No retirement date is scheduled for it on any API we track.
What are cheaper alternatives to Code Llama 7B?
Models that cost less and keep most of what it can do: Command R7B on Cohere Chat (13% less). Savings are on a mix of 3 input tokens to 1 output token.
What is Code Llama 7B's API model id?
Use codellama-7b with LlamaGate.
Sources
Raw catalog entry for codellama-7b on LlamaGate
{
"max_input_tokens": 16384,
"max_output_tokens": 4096,
"input_cost_per_token": 6e-8,
"output_cost_per_token": 1.2e-7,
"litellm_provider": "llamagate",
"mode": "chat",
"supports_function_calling": true,
"supports_response_schema": true
}