HomeAI Models › Llama 3.1 8B

Llama 3.1 8B API Pricing

Open-weight · 128K context · Available from 7 hosts. Cheapest: Novita at $0.04 input / $0.064 output per 1M tokens.

Llama 3.1 8B price by host (7 providers)

HostInput /1MOutput /1MIn+Out
Novita$0.04$0.064$0.104
DeepInfra$0.0425$0.068$0.1105
Groq$0.0475$0.076$0.1235
Meta$0.05$0.08$0.13
Together$0.05$0.08$0.13
OpenRouter$0.05$0.08$0.13
Fireworks$0.0525$0.084$0.1365

Prices per 1M tokens, USD. Snapshot 2026-07 — verify with the provider before relying on them.

Llama 3.1 8B cost calculator

Frequently asked

How much does Llama 3.1 8B cost per 1M tokens?

Llama 3.1 8B costs $0.04 per 1M input tokens and $0.064 per 1M output tokens at its cheapest host (Novita).

What is Llama 3.1 8B's context window?

Llama 3.1 8B supports a context window of about 128K tokens. Remember every token in the context is billed on each call.

Where is Llama 3.1 8B cheapest to run?

Across 7 hosts, Novita is currently cheapest at $0.04/$0.064 per 1M tokens, versus Fireworks at $0.0525/$0.084. Prices change often — use the comparison table above.

Related models

Compare all 387 models →