Llama 3.1 8B Instruct API pricing
Made by Meta
14 provider routes, checked 27 Nov 2026. For a sample chat workload, the cheapest is DeepInfra at $16.80 a month; the dearest costs $518.40, 30.9× as much.
- Input from
- $0.02
- Output from
- $0.03
- Context up to
- 131K tokens
- Batch rates
- 1 route
Every route, cheapest first
Prices per 1M tokens. Month is the sample workload: 300,000 requests, 2,000 tokens in and 400 out per request, half the input cached. Cache writes are not counted.
ProviderInputOutputCache readCache writeBatch in / outContextMonth