Codellama 7 B pricing
Source: litellm · updated 2026-10-27
Short answer: Codellama 7 B costs $0.060 per million input tokens and $0.120 per million output tokens. That is a 3:1 blended rate of $0.075 per million tokens, ranking it #86 of 704 tracked models by input price.
Price breakdown
| Metric | USD |
|---|---|
| Input, per 1M tokens | $0.060 |
| Output, per 1M tokens | $0.120 |
| Output รท input multiple | 2.00× |
| 3:1 blended, per 1M tokens | $0.075 |
| Context window | 16,384 tokens |
What a typical workload costs
| Monthly volume | Input cost | Output cost | Total | 1M in / 250K out | $0.060 | $0.030 | $0.090 |
|---|---|---|---|
| 10M in / 2.5M out | $0.600 | $0.300 | $0.900 |
| 100M in / 25M out | $6.00 | $3.00 | $9.00 |
Other llamagate models
| Model | Input | Output |
|---|---|---|
| Llama 3.1.8 B | $0.030 | $0.050 |
| Gemma 3.4 B | $0.030 | $0.080 |
| Llama 3.2.3 B | $0.040 | $0.080 |
| Qwen 3.8 B | $0.040 | $0.140 |
| DeepSeek Coder 6.7 B | $0.060 | $0.120 |
Compare against
Cheaper alternatives
Next cheaper option: Trinity Mini at $0.045 per 1M input tokens. Next step up: DeepSeek V4.1 Flash at $0.050 per 1M input tokens.