impulse

Llama 3.1 8B Instant

Open weights
API id llama-3.1-8b-instant
Input / 1M
$0.20
at Inference APIs
Output / 1M
$0.50
at Inference APIs
Context window
131K
tokens
Max output
131K
tokens per reply
Hosts
1
1 listings
Released
-
date not published

Pricing

List prices at Inference APIs, in US dollars per million tokens.

TierInput / 1MOutput / 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
Use your own numbers

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.

HostIn / out per 1M
llama-3.1-8b-instant
$0.20 / $0.50

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 License
Runtimes: 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

Other frontier labs

  • Claude Haiku 5.5
    Anthropic · on Anthropic
    $0.10 / $0.50
    Has every key capability
    27% less
  • GPT-6 Luna
    OpenAI · on OpenAI
    $0.10 / $0.50
    Has every key capability
    27% less
  • GPT-4o Mini
    OpenAI · on OpenAI
    $0.15 / $0.60
    Has every key capability
    5% less

Open-weight picks

  • Mistral Small 2603
    Mistral AI · on Mistral AI
    $0.15 / $0.60
    Has every key capability
    5% less
  • Qwen3.8 27B
    Alibaba Qwen · on EmpirioLabs AI
    $0.17 / $0.50
    Has every key capability
    8% less
  • Nemotron 3.5 Super VL
    NVIDIA · on Kyma API
    $0.081 / $0.472
    Has every key capability
    35% less
  • Gemma 4 31B IT
    Google · on W&B Inference
    $0.10 / $0.34
    Has every key capability
    42% less

Call it

Using Inference APIs's API.

Python
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
}