Meta

Llama 3.1 8B API pricing

Made by Meta

5 provider routes, checked 27 Nov 2026. For a sample chat workload, the cheapest is Llamagate at $24.00 a month; the dearest costs $158.40, 6.6× as much.

Input from
$0.03
Output from
$0.05
Context up to
131K tokens
Batch rates
None listed

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
LlamagateLiteLLM$0.03$0.05———131K$24.00
Vercel AI GatewayLiteLLM$0.05$0.08———131K$39.60
CerebrasLiteLLM$0.10$0.10———128K$72.00
Together AILiteLLM$0.20$0.20———16K$144.00
SnowflakeLiteLLM$0.22$0.22———128K$158.40

Other Llama models