LiteLLMModels

Llama3.1 70B API Pricing

As of October 10, 2026, Llama3.1 70B costs $0.60 per 1M input tokens and $0.60 per 1M output tokens from Cerebras, the lowest of 3 providers. It has a 128,000-token context window and returns up to 128,000 tokens per response.

By MetaModel ID cerebras/llama3.1-70bPrices updated Checked
Input
$0.60 / 1M tokens
Output
$0.60 / 1M tokens
Context window
128,000 tokens
Max output
128,000 tokens
Providers
3
Added to LiteLLM
September 2024

Llama3.1 70B pricing by provider

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

ProviderModel name in LiteLLMInputOutputContext
Cerebrascerebras/llama3.1-70b$0.60$0.60128K
Snowflake Cortexsnowflake/llama3.1-70b$0.72$0.72128K
Vercel AI Gatewayvercel_ai_gateway/meta/llama-3.1-70b$0.72$0.72128K

What Llama3.1 70B costs in practice

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

Cerebras$1.50
Snowflake Cortex$1.80
Vercel AI Gateway$1.80

100 long-document requests with 100,000 input and 2,000 output tokens each

Cerebras$6.12
Snowflake Cortex$7.344
Vercel AI Gateway$7.344

Llama3.1 70B features

Use Llama3.1 70B with LiteLLM

Call Llama3.1 70B 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="cerebras/llama3.1-70b",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: llama3.1-70b
    litellm_params:
      model: cerebras/llama3.1-70b
      api_key: os.environ/CEREBRAS_API_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-1234" \
  -d '{
    "model": "llama3.1-70b",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Llama3.1 70B FAQ

How much does Llama3.1 70B cost?

Llama3.1 70B costs $0.60 per 1M input tokens and $0.60 per 1M output tokens from Cerebras, the lowest of 3 providers.

What is the context window of Llama3.1 70B?

Llama3.1 70B has a 128,000-token context window and returns up to 128,000 tokens per response.

Which providers offer Llama3.1 70B?

Llama3.1 70B is available from 3 providers through LiteLLM: Cerebras, Snowflake Cortex and Vercel AI Gateway. The lowest price is on Cerebras.

How do I call Llama3.1 70B with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="cerebras/llama3.1-70b", 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 Llama3.1 70B support?

Llama3.1 70B supports function calling.

When did LiteLLM add Llama3.1 70B?

Llama3.1 70B was added to LiteLLM's model price file in September 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.

LiteLLM docs: Cerebras, Snowflake Cortex, Vercel AI Gateway.

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