llama-2-70b

Ollama · Chat

Conversation

NixAPI price, from

Input$1.69
Output$1.69

USD per 1M tokens · via group Self-Deployed-2 · Official list price $2 / $2Save 16%

Get your API key →

About llama-2-70b

A high-capacity Llama model suited for complex analysis and prediction tasks.

Price by routing group

Pick a group in the console when you create a key. Status is live from the router. Live status by group →

GroupGroup statusModel statusMultiplierInputOutputCache readCache write
Self-Deployed-2…×0.845$1.69$1.69——
Self-Deployed-3…×1.2675$2.535$2.535——

USD per 1M tokens

Supported endpoints

openai

Call llama-2-70b in one request

Works with the OpenAI SDK and any OpenAI-compatible client. Replace the key with your own.

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

Full API reference →

Questions about llama-2-70b

How much does llama-2-70b cost on NixAPI?

From $1.69 per 1M input tokens and $1.69 per 1M output tokens in the Self-Deployed-2 group, about 16% below the official list price. Prices are pay-as-you-go in USD with no monthly minimum.

How do I call llama-2-70b?

Point any OpenAI-compatible client at https://api.nixapi.com/v1, use your NixAPI key and set the model to "llama-2-70b".

Which routing groups serve llama-2-70b?

llama-2-70b is available in 2 routing groups: Self-Deployed-2, Self-Deployed-3. The lowest price is in Self-Deployed-2.

More from Ollama

Compare all Ollama models →