impulse

Llama 3 8B

Open weights
API id llama-3-8b
Input / 1M
$0.05
at Vercel AI Gateway
Output / 1M
$0.08
at Vercel AI Gateway
Context window
8K
tokens
Max output
8K
tokens per reply
Hosts
3
3 listings
Released
-
date not published

Pricing

List prices at Vercel AI Gateway, in US dollars per million tokens.

TierInput / 1MOutput / 1M
Standard$0.05$0.08

What it costs a month

At Vercel AI Gateway list prices, 30 days.

  • Chat assistant5,000 requests a day, 2K in / 0.5K out$21.00
  • RAG over documents2,000 requests a day, 8K in / 0.6K out$26.88
  • Coding agent1,000 requests a day, 40K in / 2K out$64.80
  • Overnight batch20,000 requests a day, 4K in / 0.4K out$139
Use your own numbers

Where to run it

3 hosts serve Llama 3 8B. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
llama-3-8b
$0.05 / $0.08
ReplicateInference
llama-3-8b
$0.05 / $0.25
+74% vs headline
Fireworks AIInference
llama-v3-8b
$0.20 / $0.20
+248% vs headline

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 Vercel AI Gateway.

Smaller Meta models

No cheaper Meta model keeps its key capabilities.

Other frontier labs

No cheaper match from another frontier lab.

Open-weight picks

  • Gemma 3 4B IT
    Google · on Amazon Bedrock
    $0.04 / $0.08
    Has every key capability
    13% less
  • Llama 3.2 3B
    Meta · on LlamaGate
    $0.04 / $0.08
    Has every key capability
    13% less
  • Qwen3.7 Flash Variant1
    Alibaba Qwen · on EmpirioLabs AI
    $0.028 / $0.11
    Has every key capability
    16% less
  • Granite 4.0 H Micro
    IBM · on Cloudflare Workers AI
    $0.017 / $0.112
    Has every key capability
    29% less

Model line

Newer and older versions, at each lab's own price.

  1. UndatedLlama 3.1 8BLatest$0.03 / $0.05
  2. UndatedLlama3.1 8B$0.10 / $0.10
  3. UndatedLlama 3 8BThis page$0.05 / $0.08
  4. UndatedLlama3 8BNot listed

Call it

Using Vercel AI Gateway's API.

Python
from litellm import completion

response = completion(
    model="vercel_ai_gateway/llama-3-8b",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Quick answers

How much does Llama 3 8B cost?

On Vercel AI Gateway, Llama 3 8B costs $0.05 per million input tokens and $0.08 per million output tokens.

Which APIs offer Llama 3 8B?

Llama 3 8B runs on 3 APIs: Vercel AI Gateway, Replicate and Fireworks AI.

What is Llama 3 8B's context window?

8K tokens, with up to 8K tokens in one reply.

Is Llama 3 8B being retired?

No retirement date is scheduled for it on any API we track.

Is there a newer version of Llama 3 8B?

Yes. Llama 3.1 8B is the newest model in this line.

What are cheaper alternatives to Llama 3 8B?

Models that cost less and keep most of what it can do: Gemma 3 4B IT on Amazon Bedrock (13% less). Savings are on a mix of 3 input tokens to 1 output token.

What is Llama 3 8B's API model id?

Use llama-3-8b with Vercel AI Gateway. Other hosts use their own ids: llama-v3-8b on Fireworks AI.

Sources

Raw catalog entry for llama-3-8b on Vercel AI Gateway
{
  "input_cost_per_token": 5e-8,
  "litellm_provider": "vercel_ai_gateway",
  "max_input_tokens": 8192,
  "max_output_tokens": 8192,
  "mode": "chat",
  "output_cost_per_token": 8e-8,
  "supports_tool_choice": true
}