aiapicompareaiapicompare
aiapicompare › All models › Llama 2 13b chat hf

Llama 2 13b chat hf: API pricing compared

Llama 2 13b chat hf is available from 1 provider(s). Cheapest: DeepInfra at $0.130 per 1M input tokens and $0.130 per 1M output tokens. Context window: up to 4 096 tokens. Developer: Meta.

ProviderInput $/1MOutput $/1MContext
DeepInfra
meta-llama/Llama-2-13b-chat-hf
$0.130$0.1304KGo to provider ↗ Set up

Sorted by price only – there are no paid placements. Data as of 2026-11-25 09:03 UTC. Prices in USD, excluding taxes. No guarantee.

How we compare → · Wrong price? Report it

Price history (cheapest provider)

Price history is recorded daily – the chart appears after the first price change.

Quick start with DeepInfra

from openai import OpenAI
import os

client = OpenAI(base_url="https://api.deepinfra.com/v1/openai", api_key=os.environ["DEEPINFRA_API_KEY"])
r = client.chat.completions.create(
    model="meta-llama/Llama-2-13b-chat-hf",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)

FAQ

Where is Llama 2 13b chat hf cheapest?

Currently at DeepInfra ($0.130 / 1M). Prices are updated daily; the provider’s website is authoritative.

How do I use Llama 2 13b chat hf in my tools?

All listed providers offer an OpenAI-compatible API. See the setup guide for Hermes Agent, VS Code, Cursor and more.

More models from Meta

Llama 3.3 70B InstructMuse Spark 1.3Muse Glimmer 30BMuse WonderLlama 3.2 3B InstructMuse Spark 1.2Llama 4 MaverickMuse Spark OpenLlama 3.1 8B InstructMuse Spark 1.3 ContributorMuse Spark 1.1Llama 4 Scout