← All models

Meta-Llama-3.1-8B-Instruct

deepinfra · chat model

Meta-Llama-3.1-8B-Instruct is listed here as a chat model from deepinfra. This page shows simple API pricing, token limits, and capability flags so you can compare it with similar options.

Input
$0.0300 / 1M tokens
Output
$0.0500 / 1M tokens
Cached input
N/A
Context
131.1K

Quick read

Best for

Use this page when you need a fast view of cost, context size, and supported features before testing the model in your own workload.

Things to verify

Always check the provider page for discounts, cache pricing, region rules, and any model limits that may not appear in public metadata.

Pricing

Item Price
Input
$0.0300 / 1M tokens
Output
$0.0500 / 1M tokens
Embedding
$0.0300 / 1M tokens

Token limits

Context window
131.1K
Max input tokens
131.1K
Max output tokens
131.1K
Max tokens
131.1K

Capabilities

Capability Supported
Vision
Function calling
Parallel function calling
Tool choice
Prompt caching
Reasoning
Response schema
System messages
Audio input
Audio output
Web search
PDF input
Video input

Benchmarks

Most benchmark rows are attached to the base model family rather than this provider route. Open benchmark explorer

Benchmark Score Metric Scope Checked Source
MMLU (CoT) 88.6 macro_avg/acc Base model: Llama 3.1 (Llama 3.1 405B Instruct) 2026-05-31 Link
MMLU-Pro (CoT) 73.3 macro_avg/acc Base model: Llama 3.1 (Llama 3.1 405B Instruct) 2026-05-31 Link
GPQA Diamond 49.0 acc Base model: Llama 3.1 (Llama 3.1 405B Instruct) 2026-05-31 Link
HumanEval 89.0 pass@1 Base model: Llama 3.1 (Llama 3.1 405B Instruct) 2026-05-31 Link
MATH (CoT) 73.8 sympy_intersection_score Base model: Llama 3.1 (Llama 3.1 405B Instruct) 2026-05-31 Link
MMLU 85.2 macro_avg/acc_char Base model: Llama 3.1 (Llama 3.1 405B) 2026-05-31 Link
MMLU-Pro (CoT) 61.6 macro_avg/acc_char Base model: Llama 3.1 (Llama 3.1 405B) 2026-05-31 Link
AGIEval English 71.6 average/acc_char Base model: Llama 3.1 (Llama 3.1 405B) 2026-05-31 Link
MMLU 87.3 macro_avg/acc Base model: Llama 3.1 (Llama 3.1 405B Instruct) 2026-05-31 Link
MMLU (CoT) 88.6 macro_avg/acc Base model: Llama 3.1 (Llama 3.1 405B Instruct) 2026-05-31 Link
MMLU-Pro (CoT) 73.3 micro_avg/acc_char Base model: Llama 3.1 (Llama 3.1 405B Instruct) 2026-05-31 Link
IFEval 88.6 Base model: Llama 3.1 (Llama 3.1 405B Instruct) 2026-05-31 Link
ARC-Challenge 96.9 acc Base model: Llama 3.1 (Llama 3.1 405B Instruct) 2026-05-31 Link
GPQA 50.7 em Base model: Llama 3.1 (Llama 3.1 405B Instruct) 2026-05-31 Link
MMLU 69.4% macro_avg/acc Base model: Llama 3.1 (Llama-3.1-8B-Instruct) 2026-05-31 Link
MMLU 83.6% macro_avg/acc Base model: Llama 3.1 (Llama-3.1-70B-Instruct) 2026-05-31 Link
HumanEval 72.6% pass@1 Base model: Llama 3.1 (Llama-3.1-8B-Instruct) 2026-05-31 Link
HumanEval 80.5% pass@1 Base model: Llama 3.1 (Llama-3.1-70B-Instruct) 2026-05-31 Link
GSM8K (CoT) 84.5% em_maj1@1 Base model: Llama 3.1 (Llama-3.1-8B-Instruct) 2026-05-31 Link
GSM8K (CoT) 95.1% em_maj1@1 Base model: Llama 3.1 (Llama-3.1-70B-Instruct) 2026-05-31 Link
BFCL 76.1% acc Base model: Llama 3.1 (Llama-3.1-8B-Instruct) 2026-05-31 Link
BFCL 84.8% acc Base model: Llama 3.1 (Llama-3.1-70B-Instruct) 2026-05-31 Link
Artificial Analysis Intelligence Index 12.2 score Base model: llama-3.1 (meta-llama/llama-3.1-70b-instruct) 2026-05-31 Link
Artificial Analysis Coding Index 10.9 score Base model: llama-3.1 (meta-llama/llama-3.1-70b-instruct) 2026-05-31 Link
Artificial Analysis Agentic Index 5.1 score Base model: llama-3.1 (meta-llama/llama-3.1-70b-instruct) 2026-05-31 Link

Sources

Source links
Pricing data LiteLLM model cost map
Synced at 2026-05-28

Docs

Official docs

Similar models

This list is ranked by overall similarity. Use filters to emphasize the lens that matters most for the replacement you are making.

Comparing from
Model Cost Input shape Features Context Why it is close
Meta-Llama-3.1-8B-Instruct
deepinfra
In $0.0300 / 1M tokens
Out $0.0500 / 1M tokens
text
Output: text
Function callingTool choice
131.1K
Current model
Reference row

Overall blends cost, modality overlap, capabilities, and context.

Model Cost Input shape Features Context Why it is close
Mistral-Nemo-Instruct-2407
deepinfra
In $0.0200 / 1M tokens
Out $0.0400 / 1M tokens
text
Output: text
Function callingTool choice
131.1K
Same provider
Overall 95%
Meta-Llama-3.1-8B-Instruct-Turbo
deepinfra
In $0.0200 / 1M tokens
Out $0.0300 / 1M tokens
text
Output: text
Function callingTool choice
131.1K
Same provider
Overall 93%
gpt-oss-20b
deepinfra
In $0.0400 / 1M tokens
Out $0.1500 / 1M tokens
text
Output: text
Function callingTool choice
131.1K
Same provider
Overall 90%
Llama-3.2-3B-Instruct
deepinfra
In $0.0200 / 1M tokens
Out $0.0200 / 1M tokens
text
Output: text
Function callingTool choice
131.1K
Same provider
Overall 90%
NVIDIA-Nemotron-Nano-9B-v2
deepinfra
In $0.0400 / 1M tokens
Out $0.1600 / 1M tokens
text
Output: text
Function callingTool choice
131.1K
Same provider
Overall 90%
gpt-oss-120b
deepinfra
In $0.0500 / 1M tokens
Out $0.4500 / 1M tokens
text
Output: text
Function callingTool choice
131.1K
Same provider
Overall 87%
Meta-Llama-3-8B-Instruct
deepinfra
In $0.0300 / 1M tokens
Out $0.0600 / 1M tokens
text
Output: text
Function callingTool choice
8.2K
Same provider
Overall 84%
gemma-3-4b-it
deepinfra
In $0.0400 / 1M tokens
Out $0.0800 / 1M tokens
text image
Output: text
Function callingTool choice
131.1K
Same provider
Overall 82%
ministral-3b
azure_ai
In $0.0400 / 1M tokens
Out $0.0400 / 1M tokens
text
Output: text
Function callingTool choice
4.1K
Text covered
Overall 81%
ministral-3b
vercel_ai_gateway
In $0.0400 / 1M tokens
Out $0.0400 / 1M tokens
text
Output: text
Function callingTool choice
4.0K
Text covered
Overall 81%
llama-3.2-3b-instruct
novita
In $0.0300 / 1M tokens
Out $0.0500 / 1M tokens
text
Output: text
Function callingTool choice
32.0K
Text covered
Overall 76%
Phi-4
azure_ai
In $0.1250 / 1M tokens
Out $0.5000 / 1M tokens
text
Output: text
Function callingTool choice
16.4K
Text covered
Overall 70%
Llama-3.3-70B-Instruct
azure_ai
In $0.7100 / 1M tokens
Out $0.7100 / 1M tokens
text
Output: text
Function callingTool choice
2.0K
Text covered
Overall 66%
gpt-3.5-turbo
Azure
In $0.5000 / 1M tokens
Out $1.5000 / 1M tokens
text
Output: text
Function callingTool choice
4.1K
Text covered
Overall 66%
gpt-35-turbo
Azure
In $0.5000 / 1M tokens
Out $1.5000 / 1M tokens
text
Output: text
Function callingTool choice
4.1K
Text covered
Overall 66%
gpt-35-turbo-16k-0613
Azure
In $3.0000 / 1M tokens
Out $4.0000 / 1M tokens
text
Output: text
Function callingTool choice
4.1K
Text covered
Overall 66%
gpt-4-0613
Azure
In $30.0000 / 1M tokens
Out $60.0000 / 1M tokens
text
Output: text
Function callingTool choice
4.1K
Text covered
Overall 65%
llama-3.1-8b-instruct
novita
In $0.0200 / 1M tokens
Out $0.0500 / 1M tokens
text
Output: text
Low overlap
16.4K
Text covered
Overall 59%
L3-8B-Lunaris-v1-Turbo
deepinfra
In $0.0400 / 1M tokens
Out $0.0500 / 1M tokens
text
Output: text
Low overlap
8.2K
Same provider
Overall 59%
hermes3-8b
lambda_ai
In $0.0250 / 1M tokens
Out $0.0400 / 1M tokens
text
Output: unknown
Function callingTool choice
131.1K
Partial I/O overlap
Overall 44%
Missing text
llama-3.1-8b
llamagate
In $0.0300 / 1M tokens
Out $0.0500 / 1M tokens
text
Output: unknown
Function calling
8.2K
Partial I/O overlap
Overall 29%
Missing text