Textby Meta

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...

  • By price it is among the cheapest of the 345 text models GenMagic runs (4th cheapest).
  • Among the models GenMagic runs, it places in the top 10 on 1 of its 21 benchmarks: 8th of 10 on GSM8K.
  • It was listed on Jul 23, 2024.

Data last changed Nov 9, 2026 · tracked since Oct 29, 2026 · Every model change

Try Llama 3.1 8B Instruct

Generate with Llama 3.1 8B Instruct right here. Verify your email to start with free credits.

<$0.01
Try

Specifications

Context window

131K tokens

Max output

16K tokens

Knowledge cutoff

2023-12-31

Input price

$0.03 / 1M tokens

Output price

$0.06 / 1M tokens

Benchmarks

How Llama 3.1 8B Instruct scores on public benchmarks. Each card links to the benchmark explainer and to the original source.

5.4

source date 2026-11-11
Source: openrouter
AIMEMathematics

1.7%± 0.9

source date 2026-08-27
Source: epoch
BALROGAgentic & Tool Use

15.1%

Source: epoch
Chess PuzzlesReasoning & Knowledge

0%± 0.0

source date 2026-08-27
Source: epoch
DTBenchReasoning & Knowledge

50.9%

Source: epoch
GPQA DiamondReasoning & Knowledge

27.9%± 2.1

source date 2026-10-31
Source: openrouter
GSM8KMathematics

82.4%

Source: epoch
LMArena (Coding)Instruction & Preference

1195 Elo

source date 2026-11-11
Source: lmarena
LMArena: Creative WritingInstruction & Preference

1154 Elo

source date 2026-11-11
Source: lmarena
LMArena: Hard PromptsInstruction & Preference

1175 Elo

source date 2026-11-11
Source: lmarena

1181 Elo

source date 2026-11-11
Source: lmarena
LMArena: MathMathematics

1180 Elo

source date 2026-11-11
Source: lmarena
LMArena: Multi-TurnInstruction & Preference

1172 Elo

source date 2026-11-11
Source: lmarena
LMArena (Overall)Instruction & Preference

1187 Elo

source date 2026-11-11
Source: lmarena
LMCAReasoning & Knowledge

5.4

Source: epoch
MATH (Level 5)Mathematics

22.9%± 0.9

source date 2025-01-27
Source: epoch
MMLUReasoning & Knowledge

56.1%

Source: epoch
PIQAReasoning & Knowledge

81.2%

Source: epoch
tau-bench (Airline)Agentic & Tool Use

23.5%± 6.1

source date 2026-10-24
Source: openrouter
WeirdMLCoding

1.7%± 0.0

Source: epoch

Compare against every model in the full benchmark matrix.

Capabilities

Tool use

Can call functions and tools, enabling agentic and structured workflows.

Structured output

Returns validated JSON that conforms to a schema you define.

Use Llama 3.1 8B Instruct through the API

The model id is meta-llama/llama-3.1-8b-instruct. Requests bill your GenMagic balance at the price above, and each response reports what it cost.

curl
curl https://genmagic.co/api/v1/chat/completions \
  -H "Authorization: Bearer $GENMAGIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "meta-llama/llama-3.1-8b-instruct",
    "messages": [{ "role": "user", "content": "Explain vector databases in two sentences." }]
  }'
Python (openai SDK)
from openai import OpenAI

client = OpenAI(base_url="https://genmagic.co/api/v1", api_key="YOUR_GENMAGIC_API_KEY")

resp = client.chat.completions.create(
    model="meta-llama/llama-3.1-8b-instruct",
    messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)
print(resp.choices[0].message.content)

From an AI agent, call generate_text with "model": "meta-llama/llama-3.1-8b-instruct" on the GenMagic MCP server. Keys, limits and every endpoint are in the API documentation.

Use Llama 3.1 8B Instruct in n8n

  1. In n8n, open the nodes panel, search for GenMagic and install it (a verified community node), then add it to your workflow.
  2. Set Resource to Text and Operation to Generate.
  3. In Model Name or ID, pick Meta: Llama 3.1 8B Instruct, or enter meta-llama/llama-3.1-8b-instruct as an expression.
  4. Connect your GenMagic API key (get one free). Each run is billed at the price above, and the node returns what it cost.

Ready-to-import workflows that already use the node are on GenMagic for n8n.

Similar-priced text models from other providers

Other text models GenMagic runs at a comparable price, on the same balance and API key.

ModelProviderPriceContext
Meta: Llama 3.1 8B Instruct (this model)Meta$0.03 in / $0.06 out per 1M tokens131K
inclusionAI: Ling 3.0 TinyinclusionAI$0.022 in / $0.068 out per 1M tokens262K
Mistral: Mistral NemoMistral AI$0.043 in / $0.045 out per 1M tokens131K
ScaleDown: SummarizeScaledown$0.06 in / Free out per 1M tokens1M
Sao10K: Llama 3 8B LunarisSao10K$0.06 in / $0.075 out per 1M tokens8K
Z.ai: GLM Flash LatestZ.AI$0.06 in / $0.12 out per 1M tokens1M

More from Meta

All 18 Meta models

Price and listing history

Every change GenMagic has recorded for Llama 3.1 8B Instruct since it began tracking the model on Oct 29, 2026. Prices are GenMagic's, the same the studio and the API charge.

DateChangeBeforeAfter
Nov 9, 2026Price down 60%$0.075 in / $0.12 out per 1M tokens$0.03 in / $0.06 out per 1M tokens
Nov 9, 2026Updated: max output--
Nov 1, 2026Price up 36%$0.055 in / $0.088 out per 1M tokens$0.075 in / $0.12 out per 1M tokens

Where these figures come from

  • Price: GenMagic's own price, what the studio and the API charge, recomputed from the provider's price list every few minutes and recorded daily. How pricing works.
  • Specs and description: as Meta publishes them (model card on Hugging Face), checked daily.
  • Benchmarks: 21 scores from Artificial Analysis and OpenRouter, Epoch AI, LMArena, re-read daily. Each score above links to its source.
  • Changes: the data on this page last changed on Nov 9, 2026, tracked since Oct 29, 2026. Every model's new listings, price changes and retirements are in the model changes log, and how every figure on GenMagic is sourced is on our sources page.

Generate with Llama 3.1 8B Instruct today

One GenMagic plan unlocks Llama 3.1 8B Instruct and every other model across text, image, audio, and video.