Llama 3.1 8B Instruct
Meta's latest class of model (Llama 3.1) launched with a variety of sizes & flavors. This 8B instruct-tuned version is fast and efficient. It has demonstrated strong performance compared to…
Full description at the source- Input price
- per 1M tokens
- Output price
- per 1M tokens
- Context
- 131.1K16.4K max output
- Cost / request
- 8K in · 500 out
01Routes and pricing
02Capabilities
- Input
- text
- Output
- text
- Context
- 131.1K
- Max output
- 16.4K
JSON modeSeeded sampling
03Quick start
Call it with your RProuter key
Any OpenAI-compatible SDK works. Point it at the RProuter base URL from your API keys page and use this model ID.
Catalog source: openrouter.ai · checked 2026-09-16
const response = await client.chat.completions.create({
model: "meta-llama/llama-3.1-8b-instruct",
messages: [{ role: "user", content: "A story begins…" }],
max_tokens: 500,
stream: true,
});
for await (const chunk of response) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}