BroadRouter

Llama 3.1 8B Instruct API pricing

Updated

Among the 6 providers we checked (prices read 2026-11-14 to 2026-11-15), the lowest blended standard price for Llama 3.1 8B Instruct is DeepInfra at USD 0.02 per 1M input tokens and USD 0.04 per 1M output tokens. The median across 6 standard prices is USD 0.21 / USD 0.22. Meta sells no API of its own for it.

Meta · slug llama-3.1-8b-instruct · up to 131,072 tokens of context · 6 providers with a standard price. Every price is read from the provider's own pricing page and linked in its row, checked 2026-11-15. No aggregator feed. Download all prices (every provider and model, with sources, CSV or JSON). How it compares with the market: the LLM API price index. Archived list prices since 2024-08-01 (10 archived price points, 2 list-price changes): LLM API price history.

Does Meta sell Llama 3.1 8B Instruct directly?

No. Meta does not sell Llama models through an API of its own: llama.com now redirects to Meta's developer site, whose Model API lists only Meta's Muse models. Llama is available only from third-party hosts. Checked 2026-11-14.

Llama 3.1 8B Instruct model facts

Facts from Meta's model card for meta-llama/Llama-3.1-8B-Instruct and the Hugging Face model API, read 2026-11-16. BroadNet did not verify them, and hosts may serve the model at a different precision. BroadRouter is BroadNet's site.

Llama 3.1 8B Instruct: facts as stated by the model card and the Hugging Face model API, with sources
FactAs statedSource
Open weightsYes, with gated access. meta-llama/Llama-3.1-8B-Instruct is public, but Hugging Face asks you to request access and accept the terms before you download (gated: manual).Hugging Face model API, checked 2026-11-16
Quote
“"private": false, "gated": "manual", 4 .safetensors files listed”
LicenceLlama 3.1 Community License (custom commercial license)Meta model card, checked 2026-11-16
Quote
“A custom commercial license, the Llama 3.1 Community License”
Parameters in the weight files (Hugging Face count, not the maker's figure)About 8.0 billion (8,030,261,248)Hugging Face model API, checked 2026-11-16
Quote
“"safetensors": { "total": 8030261248 }”
Context lengthNot found on Meta's model card when we read it; see the context column in the price tablechecked 2026-11-16
Input and outputText in, text out (the card's task tag is text-generation)Meta model card metadata, checked 2026-11-16
Quote
“pipeline_tag: text-generation”
Tool callingYesMeta model card, checked 2026-11-16
Quote
“LLaMA-3.1 supports multiple tool use formats.”
Release date2024-07-23Meta model card, checked 2026-11-16
Quote
“Model Release Date: July 23, 2024.”
First published on Hugging Face (not necessarily the release date)2024-07-18Hugging Face model API, checked 2026-11-16
Quote
“"createdAt": "2024-07-18T08:56:00.000Z"”

Llama 3.1 8B Instruct price per provider

USD per 1M tokens. Standard prices are ranked on a blend of 3 input tokens to 1 output token, cheapest first; the dearest standard price is 16.7× the cheapest. Free rows, the maker's serving version and other service tiers follow, tagged and unranked.

Llama 3.1 8B Instruct API prices by provider
#ProviderInputCached inputOutputBlended 3:1ContextPrecisionSource
1DeepInfra cheapest
meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo
Notes and source quote

DeepInfra Turbo variant (quantized).

“$0.02 in $0.04 out / 1M tokens”
USD 0.02not publishedUSD 0.04USD 0.025131,072FP8DeepInfra page
checked 2026-11-14
re-checked 2026-11-16
2Novita AI
meta-llama/llama-3.1-8b-instruct
Notes and source quote
“Llama 3.1 8B Instruct 16K $0.02 /Mt $0.05 /Mt”
USD 0.02not publishedUSD 0.05USD 0.027516,384not statedNovita AI page
checked 2026-11-14
re-checked 2026-11-16
3Amazon Bedrock
Notes and source quote

Shown for region US East (N. Virginia) on the pricing page (values filled from AWS's published price list for us-east-1).

“Llama 3.1 Instruct (8B) $0.22 $0.22 $0.11 $0.11”
USD 0.22not publishedUSD 0.22USD 0.22not statednot statedAmazon Bedrock page
checked 2026-11-14
re-checked 2026-11-16
4CoreWeave Forge
meta-llama/Llama-3.1-8B-Instruct
Notes and source quote
“Meta Llama 3.1 8B $0.22 $0.22 -”
USD 0.22not publishedUSD 0.22USD 0.22131,072not statedCoreWeave Forge page
checked 2026-11-15
re-checked 2026-11-16
5Featherless
meta-llama/Llama-3.1-8B-Instruct
Notes and source quote

Developer plan (per-token billing, from 50 USD a month in credits). The older repo name meta-llama/Meta-Llama-3.1-8B-Instruct is listed separately at 0.05 input / 0.08 output (model API).

“PRICING: INPUT $0.2 / CACHED $0.028 / OUTPUT $0.32”
USD 0.20USD 0.028USD 0.32USD 0.2332,768FP8Featherless page
checked 2026-11-15
re-checked 2026-11-16
6Cloudflare Workers AI
@cf/meta/llama-3.1-8b-instruct
Notes and source quote

Cloudflare publishes this USD per-token price alongside the neuron price. Cloudflare also lists fp8, fp8-fast and awq variants at lower prices (separate rows).

“@cf/meta/llama-3.1-8b-instruct $0.282 per M input tokens $0.827 per M output tokens”
USD 0.282not publishedUSD 0.827USD 0.4182not statednot statedCloudflare Workers AI page
checked 2026-11-14
re-checked 2026-11-16
—Amazon Bedrock batch
Notes and source quote

Batch columns. Shown for region US East (N. Virginia) on the pricing page (values filled from AWS's published price list for us-east-1).

“Llama 3.1 Instruct (8B) $0.22 $0.22 $0.11 $0.11”
USD 0.11not publishedUSD 0.11USD 0.11not statednot statedAmazon Bedrock page
checked 2026-11-14
re-checked 2026-11-16
—DeepInfra flex / spot
meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo
Notes and source quote

Flex service tier (0.8× standard). DeepInfra Turbo variant (quantized).

“Flex (0.8×) $0.016 $0.032”
USD 0.016not publishedUSD 0.032USD 0.02131,072FP8DeepInfra page
checked 2026-11-14
re-checked 2026-11-16

Report a wrong price or number (email to info@broadnet.ai, with this page's link filled in).

What does Llama 3.1 8B Instruct cost for a real workload?

Monthly cost over 30 days at each standard price, using the presets of the LLM API cost calculator. Providers without a cached price bill cached input at the input price.

  • Support chatbot: 2,000 requests a day, 1,500 input tokens (60% cached), 300 output.
  • RAG over documents: 1,000 requests a day, 8,000 input tokens (30% cached), 500 output.
  • Coding agent (one developer): 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning.
Monthly cost of three workloads on Llama 3.1 8B Instruct, by provider
ProviderSupport chatbotRAG over documentsCoding agent (one developer)
DeepInfraUSD 2.52USD 5.40USD 39.60
Novita AIUSD 2.70USD 5.55exceeds context
Amazon BedrockUSD 23.76USD 56.10USD 415.80
CoreWeave ForgeUSD 23.76USD 56.10USD 415.80
FeatherlessUSD 14.47USD 40.42exceeds context
Cloudflare Workers AIUSD 40.27USD 80.09USD 582.03

For the support chatbot, the cheapest price (DeepInfra, USD 2.52 a month) saves USD 16.60 against the median (USD 19.12). For the coding agent the gap is USD 231.12 a month (85% lower).

Which Llama 3.1 8B Instruct provider is cheapest for your traffic?

DeepInfra has the lowest input price (USD 0.02) and the lowest output price (USD 0.04), so it is the cheapest standard price at every mix of input and output tokens, before cache discounts.

Llama 3.1 8B Instruct: price per 1M tokens at 3 input to 1 output, by share of input served from cache
ProviderNo cache hits50% cached90% cached
DeepInfra (no cache price)USD 0.025 cheapestUSD 0.025 cheapestUSD 0.025 cheapest
Novita AI (no cache price)USD 0.0275USD 0.0275USD 0.0275
Amazon Bedrock (no cache price)USD 0.22USD 0.22USD 0.22
CoreWeave Forge (no cache price)USD 0.22USD 0.22USD 0.22
FeatherlessUSD 0.23USD 0.1655USD 0.1139
Cloudflare Workers AI (no cache price)USD 0.4182USD 0.4182USD 0.4182

USD per 1M tokens, 3 input tokens to 1 output token, each provider's cheapest standard row. A provider without a cached price bills cached input at the input price. Any charge for writing to the cache, which some providers add, is not included.

1 of 6 providers publishes a cached-input price below the input price: Featherless (86% off). DeepInfra, Novita AI, Amazon Bedrock, CoreWeave Forge and Cloudflare Workers AI publish none, so cached tokens there bill at the input price.

Context windows differ: 131,072 tokens at DeepInfra and CoreWeave Forge; 32,768 tokens at Featherless; 16,384 tokens at Novita AI. Amazon Bedrock and Cloudflare Workers AI do not state one. The cheapest row is not always the one that fits a long prompt.

What does Llama 3.1 8B Instruct cost in other languages?

The same text needs a different number of tokens in each language. With the Llama 3.3 70B tokenizer, sending 1M characters costs this much at the cheapest standard input price we found for Llama 3.1 8B Instruct:

ContentInput per 1M charactersCheapest provider
EnglishUSD 0.0043DeepInfra
Arabic MSAUSD 0.0077DeepInfra
HindiUSD 0.010DeepInfra
ChineseUSD 0.016DeepInfra
CodeUSD 0.0051DeepInfra

From BroadRouter's real cost by language dataset, which covers 15 languages and content types for every model we could match to a measured tokenizer.

Estimate your own bill

The Meta models whose cheapest standard price is closest to Llama 3.1 8B Instruct's (USD 0.025 blended):

Meta models priced closest to Llama 3.1 8B Instruct
ModelCheapest inputCheapest outputMax contextProviders
Llama 3.2 1B InstructUSD 0.027USD 0.20132,7683
Llama 3 8B InstructUSD 0.0925USD 0.0958,1923
Llama 3.2 3B InstructUSD 0.0509USD 0.335128,0004
Llama 4 Scout 17B 16E InstructUSD 0.10USD 0.301,048,5766
Llama 3.3 70BUSD 0.10USD 0.32131,07214
Llama 3.2 11B Vision InstructUSD 0.16USD 0.16—3

Priced closest from other makers: Mistral-Nemo-Instruct-2407 (Mistral AI, USD 0.02925) · GPT OSS 20B (OpenAI, USD 0.036) · Gemma 3 4B (Google, USD 0.05).

Compare Llama 3.1 8B Instruct with

Also compared: vs Llama 3 8B Instruct · vs Llama 3.1 Instruct (70B).

Every Llama 3.1 8B Instruct price comparison · All model-vs-model price comparisons

All 428 models: API prices compared · Cheapest LLM APIs right now · LLM API price index (open data) · Download all prices (CSV, JSON) · Price change log

Questions

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

From USD 0.02 per 1M input tokens (USD 0.00000002 per token) and USD 0.04 per 1M output tokens (USD 0.00000004 per token) at the lowest standard prices we found. The median of 6 standard prices is USD 0.21 input and USD 0.22 output. Each price was read from the provider's own pricing page; the source is linked in its row.

Which provider is cheapest for Llama 3.1 8B Instruct?

Among the 6 providers we checked (prices read 2026-11-14 to 2026-11-15), the lowest is DeepInfra, ranked on a blend of 3 input tokens to 1 output token (USD 0.025 per 1M). For input alone the lowest price is USD 0.02 (DeepInfra and 1 other, tied); for output alone, USD 0.04 (DeepInfra). Batch, flex, priority and fast tiers are shown in the table but not ranked.

Does Meta sell Llama 3.1 8B Instruct on its own API?

Meta does not sell Llama models through an API of its own: llama.com now redirects to Meta's developer site, whose Model API lists only Meta's Muse models. Llama is available only from third-party hosts. The lowest-priced host we checked is DeepInfra at USD 0.02 / USD 0.04 per 1M tokens.

Does Llama 3.1 8B Instruct have cached input pricing?

1 of 6 standard prices includes one. The lowest is USD 0.028 per 1M at Featherless. Providers without one bill cached input at the input price. What cached input means.

What is the Llama 3.1 8B Instruct context window?

Up to 131,072 tokens. 2 standard prices come with less, down to 16,384 tokens (Novita AI and Featherless). Check the context column before you pick the cheapest row for long prompts. Context window calculator.

How much does a coding agent cost per month on Llama 3.1 8B Instruct?

For 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning, over 30 days: USD 39.60 a month at DeepInfra, USD 270.72 at the median price and USD 582.03 at Cloudflare Workers AI. Try your own numbers.

Is there a batch, flex or priority price for Llama 3.1 8B Instruct?

Yes: batch from Amazon Bedrock at USD 0.11 / USD 0.11; flex / spot from DeepInfra at USD 0.016 / USD 0.032 per 1M input / output tokens. These tiers trade speed or availability for price (batch runs within hours, flex and spot can be slow or refused at capacity, priority and fast cost more for speed or reliability), so they are shown but not ranked.

Is Llama 3.1 8B Instruct free to use through an API?

No provider in our data lists a free price for Llama 3.1 8B Instruct as of 2026-11-15. Free tiers and credits by provider (checked 2026-11-14) lists general offers that do not name a model; all free LLM API models are on one page.

Is Llama 3.1 8B Instruct open source, with open weights, and what is its licence?

Meta publishes the weights on Hugging Face as meta-llama/Llama-3.1-8B-Instruct, with gated access: Hugging Face asks you to request access and accept the terms before you download. The licence, as the Meta model card states it: Llama 3.1 Community License (custom commercial license). Open weights means you can download and run the model yourself; what you may do with it, including commercial use, is set by that licence, so read it in full (checked 2026-11-16). These facts come from Meta's card and the Hugging Face model API; BroadNet did not verify them, and hosts may serve the model at a different precision.

How many parameters does Llama 3.1 8B Instruct have?

Meta's model card does not state a total that we found. Hugging Face counts about 8.0 billion (8,030,261,248) parameters in the published weight files of meta-llama/Llama-3.1-8B-Instruct. That is a file-level count, not the maker's figure, and it can include extra modules (checked 2026-11-16).

Does Llama 3.1 8B Instruct support tool calling?

Yes, according to the Meta model card: “LLaMA-3.1 supports multiple tool use formats.” (checked 2026-11-16). Whether the tools parameter works through an API also depends on the provider serving it, so check that provider's docs. BroadNet did not test it.

How do I call Llama 3.1 8B Instruct with the OpenAI SDK?

BroadNet does not serve Llama 3.1 8B Instruct. Use the OpenAI-compatible base URL of a provider that lists it: create the client with OpenAI(base_url=..., api_key=...) and pass that provider's model ID. Documented base URLs for providers on this page, in alphabetical order: DeepInfra (https://api.deepinfra.com/v1/openai, model meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo). Each provider page quotes the provider's docs with a check date.

Read as MarkdownAsk ChatGPTAsk ClaudeAsk Perplexity