Llama 3.1 8B Instant
llama-3.1-8b-instantPricing
List prices at Inference APIs, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $0.20 | $0.50 |
What it costs a month
At Inference APIs list prices, 30 days.
- Chat assistant5,000 requests a day, 2K in / 0.5K out$97.50
- RAG over documents2,000 requests a day, 8K in / 0.6K out$114
- Coding agent1,000 requests a day, 40K in / 2K out$270
- Overnight batch20,000 requests a day, 4K in / 0.4K out$600
Where to run it
1 host serve Llama 3.1 8B Instant. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
Inference APIsGateway llama-3.1-8b-instant | $0.20 / $0.50 | llama-3.1-8b-instant |
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 Inference APIs.
Smaller Meta models
- 55% less
- 27% less
Other frontier labs
- 27% less
- 27% less
- 5% less
Open-weight picks
- 5% less
- 8% less
- 35% less
- 42% less
Call it
Using Inference APIs's API.
from litellm import completion
response = completion(
model="inferenceapis/llama-3.1-8b-instant",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
How much does Llama 3.1 8B Instant cost?
On Inference APIs, Llama 3.1 8B Instant costs $0.20 per million input tokens and $0.50 per million output tokens.
Which APIs offer Llama 3.1 8B Instant?
Llama 3.1 8B Instant runs on 1 API: Inference APIs.
What is Llama 3.1 8B Instant's context window?
131K tokens, with up to 131K tokens in one reply.
Is Llama 3.1 8B Instant being retired?
No retirement date is scheduled for it on any API we track.
What are cheaper alternatives to Llama 3.1 8B Instant?
Models that cost less and keep most of what it can do: Muse Spark 1.3 Contributor on Meta Model API (55% less), Claude Haiku 5.5 on Anthropic (27% less), GPT-6 Luna on OpenAI (27% less) and Mistral Small 2603 on Mistral AI (5% less). Savings are on a mix of 3 input tokens to 1 output token.
What is Llama 3.1 8B Instant's API model id?
Use llama-3.1-8b-instant with Inference APIs.
Sources
Raw catalog entry for llama-3.1-8b-instant on Inference APIs
{
"input_cost_per_token": 2e-7,
"litellm_provider": "inferenceapis",
"max_input_tokens": 131072,
"max_output_tokens": 131072,
"mode": "chat",
"output_cost_per_token": 5e-7,
"source": "https://inferenceapis.com/pricing",
"supported_endpoints": [
"/v1/chat/completions",
"/v1/responses",
"/v1/messages"
],
"supports_function_calling": true,
"supports_native_streaming": true,
"supports_reasoning": false,
"supports_tool_choice": true,
"supports_vision": false
}