Llama 3.1 8B Instruct

by Metameta-llama/llama-3.1-8b-instruct

  • Text
  • No route yet
  • Released
  • Knowledge cutoff 31 December 2023

LLMCompare cannot run Llama 3.1 8B Instruct yet.No route to this model is configured on this site yet. Its prices and parameters are listed below for reference.

See the models that can be run now

Llama 3.1 8B Instruct at a glance

Context length
131,072 tokens
Maximum output
117,964 tokens
Accepts
Text
Returns
Text
Features
JSON outputTool callingPrompt caching
Reasoning effort levels
Not supported
Released
23 Jul 2024
Knowledge cutoff
31 December 2023

Model facts synced from the OpenRouter model list on 21 Oct 2026.

Llama 3.1 8B Instruct pricing by route

A route is the service LLMCompare calls to reach the model. Llama 3.1 8B Instruct has 1 route. Prices are in US dollars.

Prices of Llama 3.1 8B Instruct on each route
RouteOn LLMCompareInputper 1M tokensOutputper 1M tokensCache readper 1M tokensPrice verified onSource
OpenRouterDefaultNot configured$0.05$0.08$0.025openrouter.ai/meta-llama/llama-3.1-8b-instruct

The cost shown in an LLMCompare report is calculated from these prices as they were at the time of the run.

Cost calculator

Estimate what a batch of calls to Llama 3.1 8B Instruct costs. The starting numbers are examples. Change them to match your task.

Part of the input tokens above, billed at the cache read price.

Cost per call
$0.00009
1 credits
Cost of 100 calls
$0.009
100 credits

Calculated from the OpenRouter prices verified on 21 Oct 2026. Credits are the cost plus a 20% service fee, at $0.001 per credit, rounded up for each call, with a minimum of 1 per call. A real run is charged for the usage the provider reports.

Parameters you can set

These are the parameters LLMCompare can set when it calls the model through OpenRouter.

Parameters of Llama 3.1 8B Instruct
ParameterTypeRange or optionsDefault
temperatureNumber0 to 2in steps of 0.1Provider default
top_pNumber0 to 1in steps of 0.05Provider default
max_tokensInteger1 to 117,964Provider default
seedInteger-2,147,483,648 to 4,294,967,295Provider default
response_formatOne oftextjson_objectProvider default

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

Description as published for this model. LLMCompare has not edited it.

Models to compare with Llama 3.1 8B Instruct

Text models from the same provider and models at the nearest price. The order is not a ranking.

Models to compare with Llama 3.1 8B Instruct
Add to comparisonModelContextMax outputInput priceper 1M tokensOutput priceper 1M tokensFeaturesReleasedOn LLMCompare
Llama 3.2 1B InstructMetameta-llama/llama-3.2-1b-instruct60k54k$0.027$0.201—No route yet
Llama Guard 4 12BMetameta-llama/llama-guard-4-12b164k16.4k$0.18$0.18VisionNo route yet
Llama 3.2 3B InstructMetameta-llama/llama-3.2-3b-instruct131k72k$0.0509$0.335JSONNo route yet
Mistral Small 3Mistralmistralai/mistral-small-24b-instruct-250132.8k16.4k$0.05$0.08JSONNo route yet
Granite 4.0 MicroIBMibm-granite/granite-4.0-h-micro131k118k$0.017$0.112JSONNo route yet
Nex-N2.5-MiniNex AGInex-agi/nex-n2.5-mini262k236k$0.025$0.10ReasoningJSONCacheVisionNo route yet

Questions about Llama 3.1 8B Instruct

How much does Llama 3.1 8B Instruct cost?
On the OpenRouter route, Llama 3.1 8B Instruct costs $0.05 per 1 million input tokens and $0.08 per 1 million output tokens, in US dollars. Input tokens that Llama 3.1 8B Instruct reads from the prompt cache cost $0.025 per 1 million tokens. LLMCompare verified this price on 21 Oct 2026.
What is the context length of Llama 3.1 8B Instruct?
Llama 3.1 8B Instruct has a context length of 131,072 tokens and returns up to 117,964 output tokens in one call.
What inputs does Llama 3.1 8B Instruct accept?
Llama 3.1 8B Instruct accepts these inputs: Text. Llama 3.1 8B Instruct returns: Text.
Can I test Llama 3.1 8B Instruct on my own data?
Not yet. LLMCompare lists the prices and parameters of Llama 3.1 8B Instruct, but no route to Llama 3.1 8B Instruct is configured on LLMCompare, so it cannot be selected for an evaluation.