Code Llama 7B.
1× Nvidia GeForce RTX 4060 · $0.051/hr.
Most-aggressive quantisation we have a working recommendation for. Lower precision = less VRAM = cheaper hardware, at a small accuracy cost.
Cheapest hosted endpoints.
| Provider | Access | $/M in | $/M out | Context | |
|---|---|---|---|---|---|
| Ollama | self hosted | — | — | — | Launch ↗ |
Variants in the Code Llama family.
Cheapest hardware per quantisation.
Each row is one quantisation tier (the same weights compressed differently). Lower precision → lower VRAM → cheaper hardware, at the cost of small accuracy loss. $/hr is the cheapest rate on offer now. A multi-card setup uses a real instance of that size when one is rented; otherwise it is the single-card rate times the count.
| Quantisation | Cheapest GPU config | Total VRAM | Live $/hr | tokens/sec | |
|---|---|---|---|---|---|
|
FP16
FP16 — half precision (default)
|
24 GB |
$0.14/hr
Vast.ai · on-demand
|
33.6 | Compare → | |
|
FP8
FP8 — 8-bit float (Hopper / Blackwell)
|
12 GB |
$0.038/hr
Nosana · on-demand
|
36.0 | Compare → | |
|
INT4
INT4 — 4-bit integer (~4× VRAM saving)
|
8 GB |
$0.051/hr
Nosana · on-demand
|
54.4 | Compare → |
What it costs per month across providers.
Estimate your monthly bill for Code Llama 7B across every host that publishes per-token pricing. Slide your token volumes; the chart + table re-rank cheapest-first.
No priced API access rows on file for Code Llama 7B yet.
Rent the GPU instead of paying per token.
For an open-weights model like Code Llama 7B, you can rent a GPU and serve inference yourself. The math: cheapest GPU rental × 730 hours/month. Power is included in a rental's hourly price.
Assumes the GPU runs 24/7 at ~85% utilisation. If your traffic is bursty, you'll pay less for the API and probably more for the GPU (idle hours still cost rental). The breakeven analysis lives on the Self-host vs API breakeven tool.