---
title: Meta Llama/Llama 2 7b Chat Hf API | LLM | ModelsLab
description: Build with Meta Llama/Llama 2 7b Chat Hf API. Language model for chat, code, and content. Pay-per-use. Free tier.
url: https://modelslab.com/models/together_ai/meta-llama-Llama-2-7b-chat-hf.md
canonical: https://modelslab.com/models/together_ai/meta-llama-Llama-2-7b-chat-hf.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-09T03:11:49.379591Z
---

meta-llama/Llama-2-7b-chat-hf

 [LLMs.txt](https://modelslab.com/models/together_ai/meta-llama-Llama-2-7b-chat-hf/llms.txt) [.md](https://modelslab.com/models/meta-llama/meta-llama-Llama-2-7b-chat-hf.md)

meta-llama/Llama-2-7b-chat-hf
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### meta-llama/Llama-2-7b-chat-hf

meta-llama meta-llama-Llama-2-7b-chat-hf

Copy model ID

PricingInput $0.00 / 1M tokens

Output $0.00 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-09*