Atlas / Models / Meta / meta-llama/Llama-3.1-8B-Instruct

meta-llama/Llama-3.1-8B-Instruct✓ Catalog verified

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 leading closed-source models in human evaluations. To read more about the model release, click here. Usage of this model is subject to Meta's Acceptable Use Policy.

Input price
$0.02 /1M
Output price
$0.05 /1M
Context
16K
Modalities
text
Released
Jul 23, 2024
Tool calling
✓ Yes
Atlas signal
76/100
01

Overview

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 leading closed-source models in human evaluations. To read more about the model release, click here. Usage of this model is subject to Meta's Acceptable Use Policy.

Access: available through the official Meta API. Context window: 16K.

Pricing and metadata from the ModelsAtlas catalog.Last refreshed Aug 5, 2026
02

Specifications

API identifiermeta-llama/llama-3.1-8b-instruct
ProviderMeta
Model typeText LLM
Context window16K catalog
Input modalitiestext
Output modalitiestext
ReleasedJul 23, 2024
TokenizerLlama3
Instruction formatllama3
ModeratedNo
Architecture modalitytext->text
Supported parameters
frequency_penaltylogprobsmax_tokensmin_ppresence_penaltyrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p
Source: provider documentation + catalog feedMethodology →
03

Pricing

Live pricing components for meta-llama/llama-3.1-8b-instruct as published in the catalog.

$0.02
Input /1M
$0.05
Output /1M
Per request
Per image
Pricing componentRaw unit priceNormalizedUnit
Prompt tokens$2e-8$0.02 / 1MPer input token
Completion tokens$5e-8$0.05 / 1MPer output token
Request feeN/AN/APer request
Image feeN/AN/APer image unit
Web search feeN/AN/APer search request
Source: catalog pricing feedCompare all pricing →Cheapest models →
04

Cost calculator

Estimate monthly spend from your own token volumes.

Scale / Volume

Estimated Total Cost

$0.02Calculated from current list pricing in the ModelsAtlas catalog.
05

Capabilities

CapabilityStatusWhat it means
Visual UnderstandingNot advertisedImage and document analysis support
Audio ProcessingNot advertisedSpeech and voice aligned flows
Tool Calling✓ SupportedSupports tools / function calling
Self-Hosting✓ SupportedDeploy outside managed APIs
Derived from catalog capability tags and supported parameters
06

Capability signals

Directional signals derived from model metadata and capability tags — not official benchmark submissions.

meta-llama/Llama-3.1-8B-Instruct
MMLU Signal (Reasoning)
74signal
Coding Signal (HumanEval proxy)
83signal
Math Signal (GSM8K proxy)
74signal
Science Signal (GPQA proxy)
74signal
Estimated from metadata — not an official benchmark runAll benchmarks →Methodology →
07

Quick start

Call meta-llama/Llama-3.1-8B-Instruct through an OpenAI-compatible client.

from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="meta-llama/llama-3.1-8b-instruct",
    messages=[{"role": "user", "content": "Explain quantum physics."}]
)

print(response.choices[0].message.content)
08

Alternatives

Closest models by context window from a different provider.

09

Sources & attribution

Pricing and metadata are maintained in the ModelsAtlas catalog.

Capability bars use metadata tags — directional estimates onlyHow we source and verify data →
10

Frequently asked questions

How much does meta-llama/Llama-3.1-8B-Instruct cost?

$0.02 per 1M input tokens and $0.05 per 1M output tokens on the official Meta API.

What is the context window of meta-llama/Llama-3.1-8B-Instruct?

meta-llama/Llama-3.1-8B-Instruct supports up to 16K tokens of context.

Does meta-llama/Llama-3.1-8B-Instruct support tool / function calling?

Yes, meta-llama/Llama-3.1-8B-Instruct supports tool / function calling — you can register tools and the model will emit structured tool calls.

How do I access meta-llama/Llama-3.1-8B-Instruct?

Use the official Meta API with the model id `meta-llama/llama-3.1-8b-instruct`. See the Quick start section above for code examples.