Llama 3.1 8B Instant API Pricing
- Input / output
- $0.20 / $0.50 per 1M tokens
- Context
- 128K tokens
- Max output
- 128K tokens
As of December 6, 2026, Llama 3.1 8B Instant costs $0.20 per 1M input tokens and $0.50 per 1M output tokens on Inference APIs. It has a 131,072-token context window and returns up to 131,072 tokens per response.
Llama 3.1 8B Instant pricing by provider
1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Context |
|---|---|---|---|---|
| Inference APIs | inferenceapis/llama-3.1-8b-instant | $0.20 | $0.50 | 128K |
What Llama 3.1 8B Instant costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| Inference APIs | $0.65 |
100 long-document requests with 100,000 input and 2,000 output tokens each
| Inference APIs | $2.10 |
Llama 3.1 8B Instant cost calculator
At Inference APIs's price ($0.20 input, $0.50 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $4.50 a day, about $135 a month. Change the numbers for your workload, or compare it with other models.
- Per request
- $0.00045
- Per day
- $4.50
- Per month (30 days)
- $135
Llama 3.1 8B Instant features
Input: text. Output: text.
- Function calling
- Image input
- Reasoning
Use Llama 3.1 8B Instant with LiteLLM
Call Llama 3.1 8B Instant through the LiteLLM Python SDK, or configure it on the LiteLLM proxy and send a POST /v1/chat/completions request. API documentation
from litellm import completion
response = completion(
model="inferenceapis/llama-3.1-8b-instant",
messages=[{"role":"user","content":"Hello!"}],
)model_list:
- model_name: llama-3.1-8b-instant
litellm_params:
model: inferenceapis/llama-3.1-8b-instant
# credentials: see the provider's LiteLLM docs pagecurl http://0.0.0.0:4000/v1/chat/completions \
-H "Authorization: Bearer $LITELLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "llama-3.1-8b-instant",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}'Llama 3.1 8B Instant FAQ
How much does Llama 3.1 8B Instant cost?
Llama 3.1 8B Instant costs $0.20 per 1M input tokens and $0.50 per 1M output tokens on Inference APIs.
What is the context window of Llama 3.1 8B Instant?
Llama 3.1 8B Instant has a 131,072-token context window and returns up to 131,072 tokens per response.
Which providers offer Llama 3.1 8B Instant?
Llama 3.1 8B Instant is available from Inference APIs through LiteLLM, using the model name inferenceapis/llama-3.1-8b-instant.
How do I use Llama 3.1 8B Instant with LiteLLM?
Call completion() in the LiteLLM Python SDK with model="inferenceapis/llama-3.1-8b-instant", or configure the model on the LiteLLM proxy and send a POST request to /v1/chat/completions.
What features does Llama 3.1 8B Instant support?
Llama 3.1 8B Instant supports function calling. It does not support image input and reasoning.
When did LiteLLM add Llama 3.1 8B Instant?
Llama 3.1 8B Instant was added to LiteLLM's model price file in July 2024.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:
LiteLLM docs: Inference APIs.
Provider pages: Inference APIs.