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 |
| Llama 2 70b | — | — | $1.95 | $1.95 |
| Llama 2 7b | — | — | $1.30 | $1.30 |
| Llama 3 70b | — | — | $3.90 | $7.80 |
Prices are Api.Airforce pay-as-you-go rates per 1M tokens. Context is the maximum input length.
Related models
Llama 2 70bMeta · $1.95 / 1MLlama 2 7bMeta · $1.30 / 1MLlama 3 70bMeta · $3.90 / 1MLlama 3 8bMeta · $1.95 / 1MLlama 3.1 405b InstructMeta · $5.85 / 1MLlama 3.3 70bMeta · $0.42 / 1MLlama 3.3 70b Instruct Fp8 FastMeta · FreeLlama 4 Scout 17b 16e InstructMeta · FreeMistral MediumMistral AI · FreeMistral MediumMistral AI · FreeMistral MediumMistral AI · FreeMistral MediumMistral AI · Free
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);