Llama 2 7B Chat

Meta's Llama 2 7B chat model for conversational AI, hosted on TogetherAI.

Input price
$0.22
Output price
$0.22
Context
128K
Max output
4K
Modalities
InputTextOutputText
—
1053
—
Released
2025-02-17
Knowledge cutoff
—
Try in ChatCompare

Providers

Providers that serve this model. With Auto, each request goes to the best available provider. Prices in USD per 1M tokens; stats cover the last 30 days.

Pricing

All prices for this model, by service tier.

Input
$0.22
per 1M tokens
Output
$0.22
per 1M tokens

Make a request

Set your provider preferences, then copy the request. It reads your API key from OHMYGPT_API_KEY.

Later turns reuse the provider’s prompt cache, which can lower cost and latency.

curl https://api.ohmygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "meta-llama/llama-2-7b-chat",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'

Similar models

Other models with the same output types at a similar price.

  • Better value: more capable, lower price
  • Pareto frontier
  • Similar models

Capability scores are from Epoch AI’s Epoch Capabilities Index (CC BY 4.0, as of 2026-11-02), which combines dozens of benchmarks with GPT-5 set at 150. epoch.ai/eci

Price: our current input price per 1M tokens in USD, lowest across channels. Dated snapshots and resold copies of the same model are merged into one point; free models are not shown.

Shaded area: capability above and price below the median of all models. Pareto frontier: no other model is both cheaper and more capable.

Llama 2 7B ChatThis model
—
Input
$0.22
Output
$0.22
139
Input
$0.22–$0.242
Output
$0.66–$0.968
—
Input
$0.22
Output
$0.22
—
Input
$0.22
Output
$0.66
—
Input
$0.22
Output
$2.20

Human preference ratings are from the LMArena Text Arena (CC BY 4.0, as of 2026-10-28): Elo ratings from blind votes, on a different scale from capability scores. lmarena.ai/leaderboard/text