Meta, released Jul 23, 2024

Llama 3.1 8B Instruct

Llama 3.1 8B Instruct is Meta's small, instruct-tuned text model from July 2024, sitting below Llama 3.1 70B Instruct, Llama 3.3 70B Instruct and the newer Llama 4 Scout and Maverick models in both size and price. It's built for fast, everyday text jobs where you still want a large context window, tool calling and structured JSON output. It's also dirt cheap to run.

Already paying for ChatGPT or Claude?

Llama 3.1 8B Instruct costs $0.08 per 1M output tokens. Use GPT-6 and Claude through your plan instead, $0 per token.

Get your API key Free plan, no card needed

Updated

Llama 3.1 8B Instruct pricing and specs

Input
$0.05per 1M tokens
Output
$0.08per 1M tokens
Cached input
$0.025per 1M tokens
Context window
131K131,072 tokens
Max output
118K117,964 tokens
Released
Jul 23, 2024
Knowledge cutoff
Dec 2023
Accepts
Text
Features
Tool callingStructured outputsOpen weights

What Llama 3.1 8B Instruct is good at

  • Pulling structured data out of text. It supports structured JSON output natively and costs next to nothing per call, so throwing it at big batches is painless.
  • Simple agent routing and tool calls. Tool calling is built in, so you can have it pick a function or route a user request before handing heavier work off to a bigger model like Llama 3.3 70B Instruct or Llama 4 Maverick.
  • Long-document work on a budget. The context window is huge for an 8B model, and it can return pretty long replies too.
  • Projects you might self-host later. The weights are open (published as meta-llama/Meta-Llama-3.1-8B-Instruct), so you can prototype over an API now and move it onto your own machines down the road.

Good to know

  • Text only. You can't send it images or other media, so look elsewhere if your app needs multimodal input.
  • Its knowledge cuts off in December 2023. Anything newer than that has to go into the prompt (or come from a tool call).
  • It's from July 2024, and Meta has shipped several models since then, including Llama 3.2 3B Instruct, Llama 3.3 70B Instruct, Llama 4 Scout and Llama 4 Maverick. If it starts struggling with trickier prompts, stepping up to Llama 4 Scout or one of the 70B models is the obvious move, though you'll pay more for it.

Llama 3.1 8B Instruct vs similar models

API price per 1M tokens
ModelInputOutputPlan2APIContext
Llama 3.1 8B Instruct$0.05$0.08Not available131K
Muse Ember$0.10$0.50Not available1M
Muse Spark Open$1.25$4.25Not available1M
Muse Wonder$4$20Not available1M
gpt-oss-120b$0.03$0.187$0 on Gemini131K
Mistral Small 3$0.05$0.08Not available33K

Llama 3.1 8B Instruct cost per month

Tokens a month at $0.05 input and $0.08 output per 1M
WorkloadAPI price
Side project2M in, 500K out$0.14
Production app25M in, 5M out$1.65
Agents at scale250M in, 50M out$16.50

FAQ

How much does the Llama 3.1 8B Instruct API cost?

Llama 3.1 8B Instruct costs $0.05 per 1M input tokens and $0.08 per 1M output tokens, and cached input costs $0.025 per 1M.

What is the Llama 3.1 8B Instruct context window?

Llama 3.1 8B Instruct takes 131,072 tokens of context, with up to 117,964 output tokens per request.

When was Llama 3.1 8B Instruct released?

Meta released Llama 3.1 8B Instruct on Jul 23, 2024.

Can I use Llama 3.1 8B Instruct with my subscription?

Plan2API turns Claude, ChatGPT, Gemini and Kimi subscriptions into one OpenAI-compatible API. GPT-6 and Claude models run through your ChatGPT or Claude plan at $0 per token instead.

Can I download and self-host Llama 3.1 8B Instruct?

Yes. Meta released it with open weights under meta-llama/Meta-Llama-3.1-8B-Instruct, so you're not stuck on an API if you ever want to run it yourself.

Should I pick this over a newer Meta model like Llama 4 Scout?

Start with this one if you just need basic text processing, JSON extraction or simple tool calls as cheaply as possible. But if you want something newer than a July 2024 release, or you're hitting quality limits on harder instructions, moving up to Llama 4 Scout or Llama 3.3 70B Instruct makes more sense.

More Meta models

All 16 Meta models

Already paying for ChatGPT or Claude? Use GPT-6 and Claude through your plan, $0 per token.

  • Free: 1 subscription, no daily cap, no card
  • Pro: $12 a month

GPT-6 and Claude at $0 per tokenFree plan, no card needed

Get your API key

Guides

80