LiteLLMModels

Llama 2 13B Chat API Pricing

As of October 10, 2026, Llama 2 13B Chat costs $0.10 per 1M input tokens and $0.50 per 1M output tokens from Replicate, the lowest of 2 providers. It has a 4,096-token context window and returns up to 4,096 tokens per response.

By MetaModel ID replicate/meta/llama-2-13b-chatPrices updated Checked
Input
$0.10 / 1M tokens
Output
$0.50 / 1M tokens
Context window
4,096 tokens
Max output
4,096 tokens
Providers
2

Llama 2 13B Chat 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.

ProviderModel name in LiteLLMInputOutputContext
Replicatereplicate/meta/llama-2-13b-chat$0.10$0.504K
Amazon Bedrockmeta.llama2-13b-chat-v1$0.75$1.004K

What Llama 2 13B Chat costs in practice

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

Replicate$0.45
Amazon Bedrock$2.00

Use Llama 2 13B Chat with LiteLLM

Call Llama 2 13B Chat 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-2-13b-chat",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: llama-2-13b-chat
    litellm_params:
      model: replicate/meta/llama-2-13b-chat
      # 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 sk-1234" \
  -d '{
    "model": "llama-2-13b-chat",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Llama 2 13B Chat FAQ

How much does Llama 2 13B Chat cost?

Llama 2 13B Chat costs $0.10 per 1M input tokens and $0.50 per 1M output tokens from Replicate, the lowest of 2 providers.

What is the context window of Llama 2 13B Chat?

Llama 2 13B Chat has a 4,096-token context window and returns up to 4,096 tokens per response.

Which providers offer Llama 2 13B Chat?

Llama 2 13B Chat is available from 2 providers through LiteLLM: Replicate and Amazon Bedrock. The lowest price is on Replicate.

How do I call Llama 2 13B Chat with an OpenAI-compatible API?

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

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: Replicate, Amazon Bedrock.

Provider pages: Replicate, Amazon Bedrock.