Llama 2 7B (Legacy)

Text Chat

Meta open-source model — versatile, community-driven, reliable.

Open Source

Pricing

Context Window
128K
tokens
Input Price
Free
/ million tokens
Output Price
Free
/ million tokens

Code Examples

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

Start for Free

Meta open-source model — versatile, community-driven, reliable.

Start for Free

Invite a friend, both get free tokens!

💡 Login to get your personal referral link

Read our referral program policy