Llama 2 13B Chat

Meta chat Free

API ID: meta-llama/llama-2-13b-chat

Input Price
Free
/1M tokens
Output Price
Free
/1M tokens

About Llama 2 13B Chat

Llama 2 is Meta's second-generation open language model, released in 2023 as a major advancement in open-source AI. Available in 7B, 13B, and 70B parameter versions, it delivers strong performance across general language tasks. Llama 2 features a 4K context window and excels at conversation, content generation, and basic coding. While superseded by Llama 3, it remains widely used due to its proven reliability and extensive ecosystem. The model's open weights enable self-hosting and fine-tuning. For applications with established Llama 2 workflows, the model continues to provide dependable performance.

๐Ÿ†
Price Ranking
#1 lowest price among 950 Chat models โ€” Top 20% cheapest!

Model Specifications

Context Length
4k
Max Output
โ€”
Release Date
2023-06-20
Capabilities
chat
Input Modalities
text
Output Modalities
text

Best For

  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)
๐ŸŽ‰

This model is completely free!

No token costs - use it without worrying about API bills.

Estimate Token Usage

Meta Model Lineup

Compare all models from Meta to find the best fit

Model Input Output Context Capabilities
Llama 2 13B Chat Current Free Free 4k chat
Llama 3.2 3B Instruct Free Free 80k chat tool_use
Llama 3 70B (Base) Free Free 8k chat
Llama 3 70B (Base) Free Free 8k chat
LlamaGuard 2 8B Free Free 8k chat
Llama 3 8B (Base) Free Free 8k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Google Gemma 3n 4B
Input: Free
Output: Free
Context: 33k
Alibaba Qwen Qwen2.5-VL 7B Instruct
Input: Free
Output: Free
Context: 33k
ByteDance Seedream 4.5
Input: Free
Output: Free
Context: 4k
Black Forest Labs FLUX.2 Max
Input: Free
Output: Free
Context: 47k

๐Ÿš€ Quick Start

Get started with Llama 2 13B Chat API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="meta-llama/llama-2-13b-chat",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)