Meta logo

Meta: Llama 3.1 8B Instruct

meta-llama/llama-3.1-8b-instruct

Meta's latest class of model (Llama 3.1) launched with a variety of sizes & flavors. This 8B instruct-tuned version is fast and efficient. It has demonstrated strong performance compared to...

Modalities

TextText

In / out price

$0.050 / $0.080 per 1M

Context

131K

Released

Jul 23, 2024

Why use Llama 3.1 8B Instruct

  • Tool and function calling (agent-ready)
  • Structured (JSON) outputs

Pricing

Input$0.050 / 1M tokens
Output$0.080 / 1M tokens
Cached input (read)$0.025 / 1M tokens

List prices via OpenRouter, checked daily. Real cost depends on the provider and on reasoning tokens.

How it ranks

Coding index5.4

Source: Artificial Analysis (artificialanalysis.ai) via OpenRouter (openrouter.ai/rankings).

Cost calculator

Pick a task, set how often you run it, and compare what it costs on each model.

ModelPer runPer monthPer 1,000 runs
Meta: Llama 3.1 8B Instruct$0.0002$0.200$0.200

Estimates from list prices via OpenRouter; real bills vary by provider and reasoning tokens.

Will it fit? Context window simulator

Each square is about one page (500 words). Colored squares are your content; grey squares are free space in the model's context window.

Your content

  • Novel (90,000 words)

Total: about 120,000 tokens (≈ 90,226 words). Token counts are estimates.

Models

Meta: Llama 3.1 8B Instruct

131,072 tokens ≈ 198 pages

Fits: uses 92% of the window.

Write with the best model for the job

WordGPT picks and switches models for you: drafting, editing and files in one place. Free plan, no credit card.

Try it free

More from Meta