Llama3.1 8B
llama3.1-8bPricing
List prices at Cerebras, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $0.10 | $0.10 |
What it costs a month
At Cerebras list prices, 30 days.
- Chat assistant5,000 requests a day, 2K in / 0.5K out$37.50
- RAG over documents2,000 requests a day, 8K in / 0.6K out$51.60
- Coding agent1,000 requests a day, 40K in / 2K out$126
- Overnight batch20,000 requests a day, 4K in / 0.4K out$264
Where to run it
2 hosts serve Llama3.1 8B. The comparison is on blended price, 3 parts input to 1 part output.
Capabilities
Core
- Streaming
- Function calling
- JSON mode
- Structured outputs
Multimodal
- Vision
- Image input
- Audio
- Image generation
- Video
Advanced
- Reasoning
- Tool calling
- MCP
- Prompt caching
- Batch API
- Embeddings
- Takes in
- Text
- Produces
- Text
- Open weights
- License: Llama Community LicenseRuntimes: Ollama, TGI, llama.cpp, vLLM
Cheaper alternatives
Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.
Same model, cheaper host
No host sells it for less than Cerebras.
Smaller Meta models
No cheaper Meta model keeps its key capabilities.
Other frontier labs
No cheaper match from another frontier lab.
Open-weight picks
- 5% less
- 10% less
- 13% less
- 3% less
Model line
Newer and older versions, at each lab's own price.
- UndatedLlama 3.1 8BLatest$0.03 / $0.05
- UndatedLlama3.1 8BThis page$0.10 / $0.10
- UndatedLlama 3 8B$0.05 / $0.08
- UndatedLlama3 8BNot listed
Call it
Using Cerebras's API.
from litellm import completion
response = completion(
model="cerebras/llama3.1-8b",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
How much does Llama3.1 8B cost?
On Cerebras, Llama3.1 8B costs $0.10 per million input tokens and $0.10 per million output tokens.
Which APIs offer Llama3.1 8B?
Llama3.1 8B runs on 2 APIs: Cerebras and Snowflake.
What is Llama3.1 8B's context window?
128K tokens, with up to 128K tokens in one reply.
Is Llama3.1 8B being retired?
No retirement date is scheduled for it on any API we track.
Is there a newer version of Llama3.1 8B?
Yes. Llama 3.1 8B is the newest model in this line.
What are cheaper alternatives to Llama3.1 8B?
Models that cost less and keep most of what it can do: GLM 5.3 Flash on CLF AI Gateway (5% less). Savings are on a mix of 3 input tokens to 1 output token.
What is Llama3.1 8B's API model id?
Use llama3.1-8b with Cerebras.
Sources
Raw catalog entry for llama3.1-8b on Cerebras
{
"deprecation_date": "2026-05-27",
"input_cost_per_token": 1e-7,
"litellm_provider": "cerebras",
"max_input_tokens": 128000,
"max_output_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 1e-7,
"supports_function_calling": true,
"supports_tool_choice": true
}