Back to Models

Llama 4 Maverick

metameta/llama-4-maverick

Llama 4 Maverick (400B total, 17B active, 128 experts MoE) offers industry-leading performance in image and text understanding with support for 12 languages. Great for precise image understanding and creative writing. Our product workhorse model for general assistant and chat use cases.

Llama 4 Maverick, released April 5 2025, is Meta's flagship open-weight multimodal language model. It uses a 128-expert mixture-of-experts (MoE) architecture with 400 billion total parameters and only 17 billion active parameters per forward pass, delivering frontier-class text and image reasoning at a fraction of the inference cost of dense models at similar capability levels. The model supports a 1 million token context window, 12 languages, and up to 5 simultaneous image inputs.

From a TheRouter routing perspective, Maverick is the highest-capability Meta model available at the $0.30/$1.25 per million token price point β€” a 400Γ— parameter advantage over comparable dense models at similar cost, achieved through MoE sparsity. It excels at precise image understanding, multilingual assistant tasks, and long-context document work. For tasks where the full 1M context is unnecessary, its sibling Llama 4 Scout (17Bx16E, 10M context) offers lower per-token cost at lighter workloads. Maverick's open weights and Llama 4 Community License make it suitable for both commercial deployment and self-hosted inference pipelines.

Best for
  • β€’ Multimodal reasoning tasks combining text and images, such as diagram analysis, visual QA, and document parsing with embedded figures
  • β€’ Long-context document analysis up to 1M tokens β€” large codebase review, contract synthesis, multi-report summarization
  • β€’ Multilingual assistant and translation workloads across the 12 natively supported languages including Arabic, Hindi, and Indonesian
  • β€’ Self-hosted inference pipelines where open weights, commercial licensing freedom, and cost-efficient MoE serving matter
  • β€’ Creative writing and general assistant chat where high throughput and low latency per active parameter matter more than state-of-the-art reasoning depth
Reach for something else if
  • β€’ Hard reasoning chains and math olympiad-level problems β€” route to deepseek/deepseek-r1 or anthropic/claude-opus-4.7 for those
  • β€’ Production agentic coding with tool-use loops requiring top SWE-bench reliability β€” use anthropic/claude-sonnet-4.6 or openai/gpt-5.2-codex for that
  • β€’ Ultra-long context (beyond 1M tokens) β€” route to meta/llama-4-scout which supports a 10M token window

How TheRouter serves this differently from the vendor

As the vendor operates it

Meta releases Llama 4 Maverick as open weights for self-hosting and also references it as a Meta AI model. Operators can run the BF16 or FP8 checkpoints directly under the Llama 4 Community License.

On TheRouter

TheRouter serves the model as an OpenAI-compatible chat and vision endpoint at api.therouter.ai/v1. It does not expose Meta's raw checkpoints, self-hosting controls, training-time safety stack, or any Meta AI consumer-product surface.

Context Length
1M
Max Output
16K
Input Priceper 1M tokens
$0.2592/ 1M tokens
Output Priceper 1M tokens
$1.05/ 1M tokens

Modalities

textimage→text

Capabilities

Vision

Pricing Breakdown

TypeRate
Input$0.2592 / 1M tokens
Output$1.05 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatstop

Specifications

Release dateApril 5, 2025huggingface.co β†—verified
ArchitectureMixture-of-Experts (MoE) β€” 128 experts, alternating dense + MoE layersai.meta.com β†—verified
Total parameters400Bhuggingface.co β†—verified
Active parameters per forward pass17Bai.meta.com β†—verified
Context window1,000,000 tokens (1M)huggingface.co β†—verified
Training token count~22 trillion tokenshuggingface.co β†—verified
Knowledge cutoffAugust 2024huggingface.co β†—verified
Supported languages12 natively (Arabic, English, French, German, Hindi, Indonesian, Italian, Portuguese, Spanish, Tagalog, Thai, Vietnamese)huggingface.co β†—verified
LicenseLlama 4 Community License (custom commercial license; Meta products/services usage permitted)github.com/meta-llama β†—verified
Multimodal input supportText + image (up to 5 images per request)huggingface.co β†—verified

Benchmarks

BenchmarkDistributionScoreSource
MMLU
Pre-trained model evaluation; 5-shot macro_avg/acc_char reported by Meta for Llama 4 Maverick.
85.5%%github.com/meta-llama β†—
MMLU Pro
Instruction-tuned model evaluation; 0-shot macro_avg/acc reported by Meta.
80.5%%github.com/meta-llama β†—
GPQA Diamond
Instruction-tuned model evaluation; 0-shot accuracy reported by Meta.
69.8%%github.com/meta-llama β†—
MATH
Pre-trained model evaluation; 4-shot em_maj1@1 reported by Meta.
61.2%%github.com/meta-llama β†—
MMMU
Instruction-tuned image reasoning evaluation; 0-shot accuracy reported by Meta.
73.4%%github.com/meta-llama β†—
MathVista
Instruction-tuned image reasoning evaluation; 0-shot accuracy reported by Meta.
73.7%%github.com/meta-llama β†—
ChartQA
Instruction-tuned image understanding evaluation; 0-shot relaxed_accuracy reported by Meta.
90.0%%github.com/meta-llama β†—
MBPP
Pre-trained code evaluation; 3-shot pass@1 reported by Meta.
77.6%%github.com/meta-llama β†—

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "meta/llama-4-maverick",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'

Chat completion

Standard OpenAI-compatible chat endpoint. Switch only the baseURL and model name β€” no SDK changes required.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "meta/llama-4-maverick",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

More from meta

Similar models

Cross-provider sibling models

News & changes

2025-04-05

Meta releases Llama 4 Maverick and Scout β€” open multimodal MoE herd

Meta launched the Llama 4 family on April 5, 2025, introducing two open-weight multimodal models: Maverick (17Bx128E, 400B total, 1M context) and Scout (17Bx16E, 109B total, 10M context). Both use early-fusion MoE architectures enabling native image + text reasoning, trained on ~22T and ~40T tokens respectively, with a knowledge cutoff of August 2024. The release established Meta as a competitive open-weight multimodal player against proprietary frontier models.

re-authored by TheRouterai.meta.com β†—

Frequently asked

What is the difference between Llama 4 Maverick and Llama 4 Scout?

Both share the same 17B active parameter count, but Maverick has 128 experts (400B total) vs. Scout's 16 experts (109B total), giving Maverick significantly stronger performance on complex reasoning, coding, and multimodal tasks. Scout compensates with a 10Γ— longer context window (10M vs. 1M tokens) and lower inference cost, making it preferable for ultra-long-document tasks where context range matters more than per-token reasoning quality.

Can I self-host Llama 4 Maverick?

Yes β€” the weights are publicly available on Hugging Face under the Llama 4 Community License, which permits commercial use. With 400B total parameters and 17B active per forward pass, Maverick requires distributed inference infrastructure (typically multi-GPU serving via frameworks like vLLM or TensorRT-LLM). For teams that prefer managed API access without infrastructure overhead, TheRouter provides on-demand access at $0.30/$1.25 per million tokens with no GPUs to operate.

How many images can I send per API request?

Meta's model card specifies that Llama 4 Maverick has been tested for image understanding with up to 5 input images per request. Requests with more than 5 images are technically possible but outside the validated scope β€” results may degrade and Meta disclaims responsibility for such usage.

Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release datehuggingface.co β†—2026-06-10verified
Architectureai.meta.com β†—2026-06-10verified
Total parametershuggingface.co β†—2026-06-10verified
Active parameters per forward passai.meta.com β†—2026-06-10verified
Context windowhuggingface.co β†—2026-06-10verified
Training token counthuggingface.co β†—2026-06-10verified
Knowledge cutoffhuggingface.co β†—2026-06-10verified
Supported languageshuggingface.co β†—2026-06-10verified
Licensegithub.com/meta-llama β†—2026-06-10verified
Multimodal input supporthuggingface.co β†—2026-06-10verified
MMLUgithub.com/meta-llama β†—2026-08-09verified
MMLU Progithub.com/meta-llama β†—2026-08-09verified
GPQA Diamondgithub.com/meta-llama β†—2026-08-09verified
MATHgithub.com/meta-llama β†—2026-08-09verified
MMMUgithub.com/meta-llama β†—2026-08-09verified
MathVistagithub.com/meta-llama β†—2026-08-09verified
ChartQAgithub.com/meta-llama β†—2026-08-09verified
MBPPgithub.com/meta-llama β†—2026-08-09verified
Meta releases Llama 4 Maverick and Scout β€” open multimodal MoE herdai.meta.com β†—2026-06-10verified
What is the difference between Llama 4 Maverick and Llama 4 Scout?huggingface.co β†—2026-06-10to verify
Can I self-host Llama 4 Maverick?github.com/meta-llama β†—2026-06-10to verify
How many images can I send per API request?huggingface.co β†—2026-06-10to verify
Help & contact