LiteLLMLiteLLM/ MODELS

Llama 3 8B API Pricing

By Meta · 3 providersreplicate/meta/llama-3-8bCompare
Input / output
$0.05 / $0.25 per 1M tokens
Context
8K tokens
Max output
8K tokens

As of November 24, 2026, Llama 3 8B costs $0.05 per 1M input tokens and $0.25 per 1M output tokens from Replicate, the lowest of 3 providers. It has an 8,086-token context window and returns up to 8,086 tokens per response.

Prices updated Checked

Llama 3 8B pricing by provider

4 listings across 3 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

Llama 3 8B 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
Replicatereplicate/meta/llama-3-8b$0.05$0.258K
Replicatereplicate/meta/meta-llama-3-8b$0.05$0.25–
Snowflake Cortexsnowflake/llama3-8b––8K
Vercel AI Gatewayvercel_ai_gateway/meta/llama-3-8b$0.05$0.088K

What Llama 3 8B costs in practice

1,000 requests with 2,000 input and 500 output tokens each

Replicate$0.225
Vercel AI Gateway$0.14

Llama 3 8B cost calculator

At Replicate's price ($0.05 input, $0.25 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $1.75 a day, about $52.50 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.000175
Per day
$1.75
Per month (30 days)
$52.50

Llama 3 8B features

Input: text. Output: text.

Use Llama 3 8B with LiteLLM

Call Llama 3 8B 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="replicate/meta/llama-3-8b",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: llama-3-8b
    litellm_params:
      model: replicate/meta/llama-3-8b
      # credentials: see the provider's LiteLLM docs page
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-8b",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Llama 3 8B FAQ

How much does Llama 3 8B cost?

Llama 3 8B costs $0.05 per 1M input tokens and $0.25 per 1M output tokens from Replicate, the lowest of 3 providers.

What is the context window of Llama 3 8B?

Llama 3 8B has an 8,086-token context window and returns up to 8,086 tokens per response.

Which providers offer Llama 3 8B?

Llama 3 8B is available from 3 providers through LiteLLM: Replicate, Snowflake Cortex and Vercel AI Gateway.

How do I call Llama 3 8B with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="replicate/meta/llama-3-8b", 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.

When did LiteLLM add Llama 3 8B?

Llama 3 8B was added to LiteLLM's model price file in May 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: Replicate, Snowflake Cortex, Vercel AI Gateway.

Provider pages: Replicate, Snowflake Cortex, Vercel AI Gateway.