LiteLLMLiteLLM/ MODELS

Llama 3.1 8B Instruct Turbo API Pricing

By Meta · 2 providersdeepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct-TurboCompare
Input / output
$0.02 / $0.04 per 1M tokens
Context
128K tokens
Max output
128K tokens

As of November 24, 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.

Prices updated Checked

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.

Llama 3.1 8B Instruct Turbo prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputContext
DeepInfradeepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo$0.02$0.04128K
Together AItogether_ai/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo$0.18$0.18128K

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 cost calculator

At DeepInfra's price ($0.02 input, $0.04 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $0.40 a day, about $12.00 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.00004
Per day
$0.40
Per month (30 days)
$12.00

Llama 3.1 8B Instruct Turbo features

Input: text. Output: text.

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.

Python SDK
from litellm import completion

response = completion(
    model="deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
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_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -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. 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: DeepInfra, Together AI.

Provider pages: DeepInfra, Together AI.