MetaPaidOperational
Llama 2 13B
API model name: llama-2-13b
Llama 2 13B is Meta's chat model, served on the Api.Airforce unified API. It is priced at $1.95 per million input tokens and $1.95 per million output tokens. Access it through the OpenAI-compatible API with one key, alongside 100+ other models on Api.Airforce.
Pricing
Specifications
- Provider
- Meta
- Type
- chat model
What is Llama 2 13B used for?
- Chatbots & assistants — conversational AI, drafting, summarizing and Q&A.
Llama 2 13B vs. similar models
| Model | Intelligence | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|
| Llama 2 13B | — | — | $1.95 | $1.95 |
| Aion Rp Llama 3.1 8B | — | — | $0.88 | $1.76 |
| Hermes 3 Llama 3.1 405B | — | — | $1.10 | $1.10 |
| Hermes 3 Llama 3.1 70B | 6.0 | — | $0.77 | $0.77 |
Prices are Api.Airforce pay-as-you-go rates per 1M tokens. Context is the maximum input length.
Related models
Aion Rp Llama 3.1 8BMeta · $0.88 / 1MHermes 3 Llama 3.1 405BMeta · $1.10 / 1MHermes 3 Llama 3.1 70BMeta · $0.77 / 1MLlama 2 70BMeta · $1.30 / 1MLlama 2 7BMeta · $1.30 / 1MLlama 3 70BMeta · $2.60 / 1MLlama 3 8BMeta · $1.30 / 1MLlama 3.1 405B InstructMeta · $5.85 / 1MLlama 3.1 70B InstructMeta · $0.44 / 1MLlama 3.1 8B InstructMeta · $0.06 / 1MLlama 3.2 1B InstructMeta · $0.04 / 1MLlama 3.2 3B InstructMeta · $0.06 / 1M
Llama 2 13B — frequently asked questions
- How much does Llama 2 13B cost?
- Llama 2 13B is billed pay-as-you-go at $1.95 per 1M input tokens and $1.95 per 1M output tokens. There is no subscription — you only pay for what you use.
- What can Llama 2 13B do?
- Llama 2 13B is Meta's chat model, accessible through the Api.Airforce API.
- Is Llama 2 13B free to use?
- Llama 2 13B is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use Llama 2 13B via the API?
- Llama 2 13B is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID llama-2-13b with your Api.Airforce API key.
- Who makes Llama 2 13B?
- Llama 2 13B is Meta's chat model, served through the unified Api.Airforce gateway alongside 100+ other models.
Loading live metrics…
Loading live metrics…
Loading live metrics…
Use Llama 2 13B via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass llama-2-13b as the model.
cURL
curl https://api.airforce/v1/chat/completions \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "llama-2-13b",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
r = client.chat.completions.create(
model="llama-2-13b",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const r = await client.chat.completions.create({
model: "llama-2-13b",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(r.choices[0].message.content);