Skip to content
Rapid Router
← All models

Llama 2 70B Chat Hf

meta-llama/llama-2-70b-chat-hf

Meta model · Served by DeepInfra · live on the gateway

Input / 1M
$0.640
Output / 1M
$0.800

Pricing

Input tokens$0.640 per 1M
Output tokens$0.800 per 1M
Provider list priceExactly what your balance is debited; our fee is charged when you buy credits

Make a request

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

Frequently asked

How do I call Llama 2 70B Chat Hf through an OpenAI-compatible API?

Point any OpenAI-compatible client at https://rapidrouter.ai/api/v1 with a Rapid Router API key and set the model to meta-llama/llama-2-70b-chat-hf. The chat completions endpoint is https://rapidrouter.ai/api/v1/chat/completions.

More Llama models