Llama 3.1 8B Instruct Turbo API Pricing
As of October 10, 2026, Llama 3.1 8B Instruct Turbo costs $0.02 per 1M input tokens and $0.04 per 1M output tokens from DeepInfra, the lowest of 2 providers. It has a 131,072-token context window and returns up to 131,072 tokens per response.
- Input
- $0.02 / 1M tokens
- Output
- $0.04 / 1M tokens
- Context window
- 131,072 tokens
- Max output
- 131,072 tokens
- Providers
- 2
- Added to LiteLLM
- December 2024
Llama 3.1 8B Instruct Turbo pricing by provider
2 listings across 2 providers. 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 |
|---|---|---|---|---|
| DeepInfra | deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo | $0.02 | $0.04 | 128K |
| Together AI | together_ai/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo | $0.18 | $0.18 | 128K |
What Llama 3.1 8B Instruct Turbo costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| DeepInfra | $0.06 |
| Together AI | $0.45 |
100 long-document requests with 100,000 input and 2,000 output tokens each
| DeepInfra | $0.208 |
| Together AI | $1.836 |
Llama 3.1 8B Instruct Turbo features
- Function calling
Use Llama 3.1 8B Instruct Turbo with LiteLLM
Call Llama 3.1 8B Instruct Turbo through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: llama-3.1-8b-instruct-turbo
litellm_params:
model: deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo
api_key: os.environ/DEEPINFRA_API_KEYcurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-1234" \
-d '{
"model": "llama-3.1-8b-instruct-turbo",
"messages": [{"role": "user", "content": "Hello!"}]
}'Llama 3.1 8B Instruct Turbo FAQ
How much does Llama 3.1 8B Instruct Turbo cost?
Llama 3.1 8B Instruct Turbo costs $0.02 per 1M input tokens and $0.04 per 1M output tokens from DeepInfra, the lowest of 2 providers.
What is the context window of Llama 3.1 8B Instruct Turbo?
Llama 3.1 8B Instruct Turbo has a 131,072-token context window and returns up to 131,072 tokens per response.
Which providers offer Llama 3.1 8B Instruct Turbo?
Llama 3.1 8B Instruct Turbo is available from 2 providers through LiteLLM: DeepInfra and Together AI. The lowest price is on DeepInfra.
How do I call Llama 3.1 8B Instruct Turbo with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.
What features does Llama 3.1 8B Instruct Turbo support?
Llama 3.1 8B Instruct Turbo supports function calling.
When did LiteLLM add Llama 3.1 8B Instruct Turbo?
Llama 3.1 8B Instruct Turbo was added to LiteLLM's model price file in December 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. Provider pricing pages:
LiteLLM docs: DeepInfra, Together AI.
Provider pages: DeepInfra, Together AI.
