Baltor Get started

Models

Llama 4 Maverick

By Meta. 401.6 billion parameters, a context window of 1,048,576 tokens and the licence other.

Facts

Released
2025-04-01 the day the repository was first published on Hugging Face Hugging Face, read
Licence
other the licence the model card declares Hugging Face, read
Open weights
Yes the weights are published in this Hugging Face repository, behind the maker's access form Hugging Face, read
Parameters
401.6 billion counted from the safetensors weight files Hugging Face, read
Active parameters
Unknown
Knowledge cutoff
2024-08-31 the knowledge cutoff OpenRouter lists OpenRouter, read
Context window
  • 1,048,576 tokens the maximum position embeddings in the model configuration model configuration, read
  • 1,048,576 tokens the context length OpenRouter lists OpenRouter, read
Longest output
  • 16,384 tokens the largest output OpenRouter's first provider allows OpenRouter, read
Tool calling
  • Yes OpenRouter lists tools among the supported parameters OpenRouter, read
Structured output
  • Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
Reasoning controls
Unknown
Inputs and outputs
text, image in, text out Hugging Face, read
Good for
  • Vision: Hugging Face files it under image-text-to-text Hugging Face, read

Prices

Prices in US dollars per million tokens, as each source lists them
ProviderInputOutputContextAs ofSource
DigitalOcean through OpenRouter0.188 USD0.652 USD128,000OpenRouter endpoints, read
DeepInfra through OpenRouter0.200 USD0.800 USD1,048,576OpenRouter endpoints, read
Novita through OpenRouter0.270 USD0.850 USD1,048,576OpenRouter endpoints, read
Parasail through OpenRouter0.350 USD1.00 USD524,288OpenRouter endpoints, read
Google through OpenRouter0.350 USD1.15 USD524,288OpenRouter endpoints, read

Run it on your own hardware

Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.

QuantizationWeightsMemory at 8,192 tokensMemory at 32,768 tokens
UD-TQ1_098.5 GiB105 GiB110 GiB
UD-IQ1_S112 GiB120 GiB125 GiB
UD-IQ1_M119 GiB127 GiB131 GiB
UD-IQ2_XXS126 GiB134 GiB139 GiB
UD-IQ2_M132 GiB140 GiB145 GiB
Q2_K136 GiB144 GiB149 GiB
Q2_K_L136 GiB145 GiB149 GiB
UD-Q2_K_XL142 GiB151 GiB156 GiB
UD-IQ3_XXS158 GiB168 GiB172 GiB
Q3_K_S161 GiB171 GiB175 GiB
UD-Q3_K_XL167 GiB178 GiB182 GiB
Q3_K_M178 GiB189 GiB193 GiB
IQ4_XS200 GiB212 GiB216 GiB
IQ4_NL210 GiB223 GiB227 GiB
Q4_0211 GiB224 GiB228 GiB
Q4_K_S212 GiB225 GiB229 GiB
UD-Q4_K_XL216 GiB229 GiB234 GiB
Q4_K_M226 GiB239 GiB244 GiB
Q4_1233 GiB247 GiB252 GiB
Q5_K_S257 GiB272 GiB276 GiB
Q5_K_M265 GiB280 GiB285 GiB
UD-Q5_K_XL267 GiB283 GiB287 GiB
Q6_K306 GiB324 GiB328 GiB
UD-Q6_K_XL318 GiB336 GiB340 GiB
Q8_0397 GiB418 GiB423 GiB
UD-Q8_K_XL428 GiB452 GiB456 GiB
BF16746 GiB786 GiB790 GiB

Start it with a local runtime

  • Ollama
    ollama run hf.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_0
  • LM Studio
    lms get unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF
    lms server start
  • llama.cpp server
    llama-server -hf unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_0 --jinja
  • vLLM
    vllm serve meta-llama/Llama-4-Maverick-17B-128E-Instruct
  • SGLang
    sglang serve --model-path meta-llama/Llama-4-Maverick-17B-128E-Instruct --port 30000

Use it from your harness

Set up for OpenRouter with the model meta-llama/llama-4-maverick. Each endpoint page has the same setup for its own address.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "openrouter": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "OpenRouter",
      "options": {
        "baseURL": "https://openrouter.ai/api/v1",
        "apiKey": "{env:OPENROUTER_API_KEY}"
      },
      "models": {
        "meta-llama/llama-4-maverick": {
          "name": "Llama 4 Maverick",
          "limit": {
            "context": 1048576,
            "output": 16384
          }
        }
      }
    }
  }
}
  • OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.

From OpenCode documentation, read .

Pi

Put this in ~/.pi/agent/models.json:

{
  "providers": {
    "openrouter": {
      "baseUrl": "https://openrouter.ai/api/v1",
      "api": "openai-completions",
      "apiKey": "$OPENROUTER_API_KEY",
      "models": [
        {
          "id": "meta-llama/llama-4-maverick"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Put this in ~/.codex/config.toml:

model = "meta-llama/llama-4-maverick"
model_provider = "openrouter"

[model_providers.openrouter]
name = "OpenRouter"
base_url = "https://openrouter.ai/api/v1"
env_key = "OPENROUTER_API_KEY"
  • Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.

From Codex documentation, read .

Claude Code

Put this in ~/.claude/settings.json, or variables in your shell:

export ANTHROPIC_BASE_URL="https://openrouter.ai/api"
export ANTHROPIC_AUTH_TOKEN="$OPENROUTER_API_KEY"
export ANTHROPIC_MODEL="meta-llama/llama-4-maverick"
claude
  • Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.

From Claude Code documentation, read .

Other ways to reach it

  • Ollama, model hf.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_0

Published results

These are results other people published. Baltor did not run them and does not rank models by them.