Meta

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
DeepInfrafp8 · OpenRouter$0.02$0.04———131K$16.80
NovitaLiteLLM$0.02$0.05———16K$18.00
NebiusLiteLLM$0.02$0.06———128K$19.20
LambdaLiteLLM$0.025$0.04———131K$19.80
NscaleLiteLLM$0.03$0.03————$21.60
GroqOpenRouter$0.05$0.08$0.025——131K$32.10
OVHcloudLiteLLM$0.10$0.10———131K$72.00
HyperbolicLiteLLM$0.12$0.30———33K$108.00
PerplexityLiteLLM$0.20$0.20———131K$144.00
DatabricksLiteLLM$0.15$0.45$0.15$0.15—128K$144.01
Amazon BedrockOpenRouter$0.22$0.22——$0.11 / $0.11131K$158.40
CoreWeavebf16 · OpenRouter$0.22$0.22$0.22——131K$158.40
Weights & BiasesLiteLLM$0.22$0.22———128K$158.40
Oracle CloudLiteLLM$0.72$0.72———128K$518.40

Other Llama models