Llama API Cost Calculator
Estimate hosted Llama 4 Maverick and Scout API costs.
With the default inputs, $0.000645 per request — ~$19.35/month at 1,000 requests/day. Enter your own numbers below to recompute instantly; the full step-by-step math is shown under the worked example.
Results update automatically as you type.
- Input cost
- $0.000220
- Output cost
- $0.000425
- Per request
- $0.000645
- Per day
- $0.6450
- Per month
- $19.35
Estimate the cost of running Meta's Llama models through a hosted API. Llama is open-weight, so prices vary by provider; these are representative rates for Llama 4 Maverick, Scout and Llama 3.3 70B.
How this is calculated
Cost per request = (input tokens ÷ 1,000,000 × input price) + (output tokens ÷ 1,000,000 × output price) using representative hosted rates for the Llama model you pick. Because Llama is open-weight, prices vary by provider — treat these as a planning baseline. Monthly cost scales by requests per day × 30.
Is this a good result? What to do next
Hosted Llama is cheap relative to closed flagships, but the bigger decision is buy-vs-build: because the weights are open you can shop across hosts or self-host. Self-hosting only wins above a break-even volume once you add DevOps time.
Typical planning ranges
- Hosted Llama
- cheap vs closed flagships
- Price by provider
- varies — shop hosts
- Self-hosting
- wins only above break-even
Ranges are typical planning figures to sanity-check your result, not authoritative benchmarks. Your numbers will vary with use case, volume, and vendor.
How to improve this number
- Compare multiple hosts for the same model.
- Self-host at high, steady volume (check the break-even).
- Use a smaller Llama variant for simple tasks.
Common mistakes
- Assuming a single canonical Llama price.
- Ignoring DevOps and idle-GPU cost when weighing self-hosting.
When to use a different approach
To find the self-host crossover, use the self-hosted vs API calculator. To rank all models, use the model cost comparison.
Worked example (defaults)
With the default inputs above, here is the result:
- Input cost
- $0.000220
- Output cost
- $0.000425
- Per request
- $0.000645
- Per day
- $0.6450
- Per month
- $19.35
- input: 1,000 / 1e6 x $0.22/M = $0.000220
- output: 500 / 1e6 x $0.85/M = $0.000425
- monthly = $0.000645 x 1,000 x 30 days
Sources & references
Frequently asked questions
Why do Llama prices vary?+
Llama weights are open, so many providers host it at different prices. You can also self-host — use the self-hosted vs API calculator to find the break-even.
Related calculators
Answering a real question?
This calculator powers these problem-solving guides: