Llama 2 7B Chat

Released
2023-07-18
Last refreshed
2026-10-09
Status
Researched 226d ago
Open weightsCommercial use: restrictedClassificationJSON / Tool use

Ask AI about Llama 2 7B Chat

AI at Meta releases · 12 in the last 12 monthsChangelog →
Specifications
Family
Llama 2
Released
2023-07-18
Context
4K
Parameters
7B
Architecture
Decoder Only
Knowledge cutoff
2022-09
Specialization
general
Openness
Open weights
License
Llama 2 CommunityRestricted
Weights
Available
Code
Unknown
Training
Fine-tuned
Created by

Large-scale open-source AI for social technologies.

Menlo Park, California, United States
Founded 2013
Website
Pricing
Output / 1M
$0.240
Input / 1M
$0.080

Cheapest of 5 routes · GCP Vertex AI

About

The Llama 2 7B Chat model is a fine-tuned variant of Meta's Llama 2 series, optimized for conversational AI applications. Built on an auto-regressive transformer architecture, it boasts 7 billion parameters and has been trained on a diverse dataset of 2 trillion tokens. The model underwent supervised fine-tuning and reinforcement learning with human feedback to enhance its performance in dialogue scenarios. It demonstrates competitive capabilities in terms of helpfulness and safety compared to both open-source and closed-source alternatives like ChatGPT and PaLM.

Providers(5)

Compare all 5

Compare API pricing across 5 tracked provider routes for input and output tokens, batch, and cached reads when available.

ProviderInput / 1MOutput / 1MRoute
GCP Vertex AI$0.080$0.240
Serverless
Replicate API$0.050$0.250
Serverless
Alibaba Cloud PAI-EAS--
ServerlessPartial
Baseten API--
ServerlessPartial
Fireworks AI--
ProvisionedPartial

Deprecated provider routes(5)

ProviderStatusCatalog ID
Microsoft Foundry
DeprecatedRetired June 30, 2025
—
Cloudflare Workers AI
Deprecated
@cf/meta/llama-2-7b-chat-fp16
DeepInfra
Deprecated
—
Lepton AI API
Deprecated
—
Together AI
DeprecatedRetired August 22, 2024
meta-llama/Llama-2-7b-chat-hf

Available via routers & gateways(14)

LiteLLM

Gateway

Open-source Python SDK and proxy server that unifies 100+ LLM APIs behind a single OpenAI-compatible interface, with load balancing, cost tracking, and configurable failover.

Free OSSGCP Vertex AIMicrosoft Foundry

OpenRouter

Hybrid

Unified hybrid gateway to 500+ models from 80+ providers via a single OpenAI-compatible API, with an optional Auto Router that selects a model per prompt from market spend data.

Passthrough + feeGCP Vertex AITogether AIFireworks AI

Portkey

Gateway

Production AI gateway routing to 1,600+ LLMs with failover, load balancing, caching, and guardrails; MIT-licensed open-source core is self-hostable. Now part of Palo Alto Networks as Prisma AIRS AI Gateway.

SubscriptionGCP Vertex AIMicrosoft Foundry

AIRouter

Router

Commercial LLM router (branded "AI Router" on its site) that picks the best model per request via a Decision API or an OpenAI-compatible Chat Completions endpoint, with a private selection mode that routes on anonymized patterns; sold as BYOK subscription plans priced by routed tokens.

SubscriptionGCP Vertex AI

Azure AI Foundry Model Router

Router

Microsoft Azure AI Foundry's native model router that uses a trained ML model to route each prompt in real time to the optimal Azure-hosted model, with Balanced/Cost/Quality mode selection and automatic failover.

Passthrough + feeMicrosoft Foundry

Helicone

Gateway

Observability-first AI gateway with routing, caching, rate limiting, and request tracing; Apache-2.0 open-source platform with a managed hosted tier for logging and analytics.

SubscriptionMicrosoft FoundryGCP Vertex AI

Capabilities

Structured Outputs

Benchmark peer barsfor Classification

No task-mapped benchmark peers are available for this model yet.

Benchmark scores(2)

Scores are benchmark-specific and are direction-aware: the same numeric gap can mean very different outcomes across suites. Use the leaderboard context and this model's provider route to decide whether the winning margin is meaningful for your workload.
BenchmarkScoreVersionEvaluationSource
1108.0text_style_control overall 2026-10-22 (style control, default view)Observed 2026-10-26
Configuration: Llama 2 7B Chat
Harness: LMArena blind pairwise human votes, Bradley-Terry
Evaluator: LMArena
Confidence: confirmed
Notes: LMArena text style control leaderboard, overall category, published 2026-10-22 (HF lmarena-ai/leaderboard-dataset @9761a3ce, latest split). Board entry 'Llama 2 7B Chat': rank 402, Arena Score 1108.0 (95% CI 1101.0-1115.0), 14148 votes. Retrieved 2026-10-26.
Source

Source: LMArena (lmarena.ai), CC BY 4.0

1033.0text creative_writing 2026-10-22Observed 2026-10-22
Configuration: Llama 2 7B Chat
Harness: LMArena blind pairwise human votes, Bradley-Terry
Evaluator: LMArena
Confidence: confirmed
Notes: LMArena Text arena, Creative Writing category (no style control), board published 2026-10-22 (HF lmarena-ai/leaderboard-dataset @a467e6b9, text config, latest split). Board entry 'Llama 2 7B Chat' (category creative_writing in text/latest-00000-of-00001.parquet): rank 389 of 416, rating 1033.0 (95% CI 1019.4-1046.6), 2341 votes. Source: LMArena (CC BY 4.0). Retrieved 2026-10-27.
Source

Source: LMArena (lmarena.ai), CC BY 4.0

Migration checks

No linked migration route is available for this model yet.

Compare Llama 2 7B Chat with other models

Show all 29 popular comparisonssorted by 7-day search impressions