Llama 3.1 8B Instruct API pricing
Standard tier, blended at 3:1 input to output: $0.025 per million tokens.
OpenRouter charges $0.020 per million input tokens and $0.040 per million output tokens for Llama 3.1 8B Instruct.
Against the models nearest in price
Standard tiers, blended at a 3:1 input to output ratio.
| Source | ||||||
|---|---|---|---|---|---|---|
| Llama 3.1 8B Instruct This model | OpenRouter | $0.020 | $0.040 | 131,072 | $0.025 | ↗ |
| Llama 3.2 1B Instruct | Together AI | $0.060 | $0.060 | 131,072 | $0.060 | ↗ |
| Llama 3.2 3B Instruct | Together AI | $0.060 | $0.060 | 131,072 | $0.060 | ↗ |
| GPT-5 nano | OpenAI | $0.050 | $0.400 | 272,000 | $0.138 | ↗ |
| Llama 4 Scout | OpenRouter | $0.100 | $0.300 | 1,310,720 | $0.150 | ↗ |
| Llama 3.3 70B Instruct | OpenRouter | $0.100 | $0.320 | 131,072 | $0.155 | ↗ |
| GPT-4.1 nano | OpenAI | $0.100 | $0.400 | 1,047,576 | $0.175 | ↗ |
| Gemini 2.5 Flash-Lite | Google AI | $0.100 | $0.400 | 1,048,576 | $0.175 | ↗ |
| Claude Haiku 5.5 | Anthropic | $0.100 | $0.500 | 1,000,000 | $0.200 | ↗ |
Prices last checked: . Methodology
Questions
How much does Llama 3.1 8B Instruct cost per million tokens?
$0.020 per million input tokens and $0.040 per million output tokens. At a 3:1 input to output mix that blends to $0.025. Checked 28 Oct 2026.
What would Llama 3.1 8B Instruct cost for a real workload?
A thousand requests a day at 2,000 input and 600 output tokens each comes to $1.92 a month on the standard tier.
What is the context window for Llama 3.1 8B Instruct?
131,072 tokens of input, with up to 16,384 tokens of output.
Llama 3.2 1B Instruct · Llama 3.2 3B Instruct · GPT-5 nano · Llama 4 Scout · Llama 3.3 70B Instruct · All OpenRouter models · Cost calculator