llama-3.1-8b
vercel_ai_gateway · chat model
llama-3.1-8b is listed here as a chat model from vercel_ai_gateway. This page shows simple API pricing, token limits, and capability flags so you can compare it with similar options.
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.0500 / 1M tokens |
| Output | $0.0800 / 1M tokens |
| Embedding | $0.0500 / 1M tokens |
Token limits
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.
| Model | Cost | Input shape | Features | Context | Why it is close |
|---|---|---|---|---|---|
| llama-3.1-8b vercel_ai_gateway | In $0.0500 / 1M tokens Out $0.0800 / 1M tokens | text
Output: text | Function callingResponse schema | 131.1K | Current model Reference row |
| Model | Cost | Input shape | Features | Context | Why it is close |
|---|---|---|---|---|---|
| gpt-oss-20b fireworks_ai | In $0.0500 / 1M tokens Out $0.2000 / 1M tokens | text
Output: text | Function callingResponse schema | 131.1K | Text covered Overall 81% |
| devstral-small vercel_ai_gateway | In $0.0700 / 1M tokens Out $0.2800 / 1M tokens | text
Output: text | Function callingResponse schema | 128.0K | Same provider Overall 81% |
| devstral-small-2505 Mistral | In $0.1000 / 1M tokens Out $0.3000 / 1M tokens | text
Output: text | Function callingResponse schema | 128.0K | Text covered Overall 79% |
| devstral-small-2507 Mistral | In $0.1000 / 1M tokens Out $0.3000 / 1M tokens | text
Output: text | Function callingResponse schema | 128.0K | Text covered Overall 79% |
| nova-micro vercel_ai_gateway | In $0.0350 / 1M tokens Out $0.1400 / 1M tokens | text
Output: text | Function callingResponse schema | 8.2K | Same provider Overall 79% |
| gpt-oss-20b deepinfra | In $0.0400 / 1M tokens Out $0.1500 / 1M tokens | text
Output: text | Function calling | 131.1K | Text covered Overall 76% |
| llama-3.2-3b vercel_ai_gateway | In $0.1500 / 1M tokens Out $0.1500 / 1M tokens | text
Output: text | Function callingResponse schema | 8.2K | Same provider Overall 75% |
| deepseek-r1-distill-llama-70b vercel_ai_gateway | In $0.7500 / 1M tokens Out $0.9900 / 1M tokens | text
Output: text | Function callingResponse schema | 131.1K | Same provider Overall 73% |
| Mistral-Small-24B-Instruct-2501 deepinfra | In $0.0500 / 1M tokens Out $0.0800 / 1M tokens | text
Output: text | Function calling | 32.8K | Text covered Overall 72% |
| eu.amazon.nova-micro-v1:0 bedrock_converse | In $0.0460 / 1M tokens Out $0.1840 / 1M tokens | text
Output: text | Function callingResponse schema | 10.0K | Text covered Overall 71% |
| apac.amazon.nova-micro-v1:0 bedrock_converse | In $0.0370 / 1M tokens Out $0.1480 / 1M tokens | text
Output: text | Function callingResponse schema | 10.0K | Text covered Overall 70% |
| amazon.nova-micro-v1:0 bedrock_converse | In $0.0350 / 1M tokens Out $0.1400 / 1M tokens | text
Output: text | Function callingResponse schema | 10.0K | Text covered Overall 70% |
| us.amazon.nova-micro-v1:0 bedrock_converse | In $0.0350 / 1M tokens Out $0.1400 / 1M tokens | text
Output: text | Function callingResponse schema | 10.0K | Text covered Overall 70% |
| gemma-3-4b-it deepinfra | In $0.0400 / 1M tokens Out $0.0800 / 1M tokens | text image
Output: text | Function calling | 131.1K | Text covered Overall 70% |
| o3-mini vercel_ai_gateway | In $1.1000 / 1M tokens Out $4.4000 / 1M tokens | text
Output: text | Function callingResponse schema | 100.0K | Same provider Overall 69% |
| grok-3-mini vercel_ai_gateway | In $0.3000 / 1M tokens Out $0.5000 / 1M tokens | text
Output: text | Function calling | 131.1K | Same provider Overall 67% |
| llama-3-8b vercel_ai_gateway | In $0.0500 / 1M tokens Out $0.0800 / 1M tokens | text
Output: text | Low overlap | 8.2K | Same provider Overall 61% |
| firefunction-v2 fireworks_ai | In $0.9000 / 1M tokens Out $0.9000 / 1M tokens | text
Output: text | Function callingResponse schema | 8.2K | Text covered Overall 59% |
| google.gemma-3-4b-it bedrock_converse | In $0.0400 / 1M tokens Out $0.0800 / 1M tokens | text image
Output: image, text | Low overlap | 8.2K | Text covered Overall 39% |
| llama-3.1-8b-instant Groq | In $0.0500 / 1M tokens Out $0.0800 / 1M tokens | text
Output: unknown | Function calling | 8.2K | Partial I/O overlap Overall 29% Missing text |
| gemma-7b-it Groq | In $0.0500 / 1M tokens Out $0.0800 / 1M tokens | text
Output: unknown | Function calling | 8.2K | Partial I/O overlap Overall 29% Missing text |
No models match this filter.