Llama 4 Maverick API
1M context · Released Apr 5, 2025 · By Meta · Llama 4 Community
Llama 4 Maverick costs $0.14 per million input tokens and $0.52 per million output tokens, against an official rate of $0.22 and $0.85 — 39% below official pricing. It is a Meta model under the Llama 4 Community licence, with a 1M context window, callable through an OpenAI-compatible endpoint with the model id `meta-llama/llama-4-maverick`. This model is listed for reference and is not currently served by an upstream provider, so requests for it return no available channel.
Not currently available. No configured upstream serves this model, so a request for it returns no available channel. The rate below is what it will cost when it is enabled.
Input
$0.14/M
$0.22/M
Output
$0.52/M
$0.85/M
Savings
39%
off official
- No markup
- OpenAI SDK compatible
- No minimum spend
- Llama 4 Community
A million tokens of context and native multimodal input. The pragmatic pick when your bottleneck is how much you can stuff into one call.
Copy this and go
The model id is already filled in. Nothing in this snippet needs editing except your key.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://router.xark.io/api/v1" # ← the only line that changes
)
response = client.chat.completions.create(
model="meta-llama/llama-4-maverick",
messages=[{"role": "user", "content": "Hello"}]
)
Llama 4 Maverick pricing across providers
Rates as published by each provider. We update these when they change; if you spot one that's stale, tell us and we'll fix it.
| Provider | Input | Output |
|---|---|---|
| AI Token Router | $0.14/M | $0.52/M |
| Official (Meta) | $0.22/M | $0.85/M |
| OpenRouter | $0.21/M | $0.82/M |
| DeepInfra | $0.17/M | $0.60/M |
| Together AI | $0.20/M | $0.80/M |
Cached input on Llama 4 Maverick is billed at $0.028/M — roughly 80% below the standard input rate. For agent loops with a large fixed system prompt this is usually the number that matters most.
What it's good at
- Very long document and transcript processing
- Image + text understanding
- Migrations off Llama 3.x with no prompt rewrite