Llama 3 8B Lunaris overview
Llama 3 8B Lunaris specs
- Model ID
sao10k/l3-lunaris-8b- Developer
- Sao10K
- Context window
- 8,192 tokens
- Max output
- 7,372 tokens
- Input
- Image, Text
- Output
- Text
- API
- OpenAI-compatible, base URL
https://api.aimlapi.com/v1
What is Llama 3 8B Lunaris API?
Where to Use Llama 3 8B Lunaris
Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.
Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.
Use cases
Roleplay and creative storytelling are documented use cases for Llama 3 8B Lunaris, which is described as a roleplaying model and as handling roleplay, creative storytelling, and multi-turn dialogue well.
General text generation and conversation are documented use cases, since the model is described as a versatile generalist with text generation and conversation capabilities.
Multi-turn dialogue is specifically called out as a strength, with the model noted for maintaining character consistency across multiple personas.
Multi-step prompts, planning, and deeper analysis are also documented as good fits for this model.
Capabilities
- Function calling
- Reasoning
- Streaming
- Structured outputs
- Web search
Llama 3 8B Lunaris API pricing
| Usage | Price | Unit |
|---|---|---|
| Input | $0.0529 | 1M tokens |
| Output | $0.0529 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
Llama 3 8B Lunaris vs other models: token prices
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| Llama 3 8B Lunaris | $0.0529 | $0.0529 |
| $0.0529 | $0.0846 | |
| $0.105 | $0.105 | |
| $0.0529 | $0.1058 | |
| Llama 3.1 Euryale 70B v2.2 | $1.53 | $1.53 |
How to use the Llama 3 8B Lunaris API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "sao10k/l3-lunaris-8b",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "sao10k/l3-lunaris-8b",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "sao10k/l3-lunaris-8b",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
Llama 3 8B Lunaris FAQ
What is the context window of Llama 3 8B Lunaris?
Llama 3 8B Lunaris has a 8,192 tokens context window and can return up to 16,384 tokens.
What inputs and outputs does Llama 3 8B Lunaris support?
Llama 3 8B Lunaris takes image, text as input and returns text.
What is the model ID for Llama 3 8B Lunaris?
Use sao10k/l3-lunaris-8b as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
How much does Llama 3 8B Lunaris cost?
Llama 3 8B Lunaris costs $0.0529 input and $0.0529 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Does Llama 3 8B Lunaris support streaming?
Yes, Llama 3 8B Lunaris can stream responses as they are generated.
Can Llama 3 8B Lunaris read images?
Yes, Llama 3 8B Lunaris accepts image input alongside text.

