Llama 4 Maverick API pricing
Meta's Llama 4 Maverick. Available at listed at platform rate (no published official USD price).
| Route | Input / 1M | Output / 1M |
|---|---|---|
| Platform rate | $0.07 | $0.35 |
USD, standard tier, verified 2026-09-26.
Specifications
| Vendor | Meta |
| Context window | — |
| Max output | — |
| Category | US frontier |
What Llama 4 Maverick costs at your volume
| Usage level | Input / output per month | Monthly cost |
|---|---|---|
| Light — prototyping, a few thousand calls | 5M / 1M | $0.70 |
| Working — one developer, daily use | 50M / 10M | $7.00 |
| Heavy — team or agent loops in production | 500M / 100M | $70.00 |
Calculated at $0.07 input / $0.35 output per 1M tokens, assuming a 5:1 input-to-output ratio. Your ratio decides the real number — run your own figures through the cost calculator.
When Llama 4 Maverick is the right call
At $0.07 per million input tokens this sits in the low-cost band. It is a good fit for high-volume work — classification, extraction, summarisation at scale, autocomplete, and any pipeline where you call the model thousands of times a day.
It is usually the wrong call for tasks where a wrong answer is expensive to unwind; at this price the saving is small enough that escalating a hard case to a stronger model is usually worth it.
Where Llama 4 Maverick sits in the index
One model, three rankings — because the model that is cheapest per input token is frequently not the cheapest per task. Output tokens cost a median of 4.0× what input costs across these 216 models, so a workload that generates more than it reads flips the order. Percentile is the share of models that cost more than this one.
| Ranked by | Position | Percentile | Rate |
|---|---|---|---|
| Input rate | 21 of 216 | 90% | $0.07 |
| Output rate | 39 of 216 | 82% | $0.35 |
| Agent mix 1:3, blended | 39 of 216 | 82% | $0.28 |
On an agent mix the lowest blended rate in the same index is Gemma2 9B It at $0.01 per 1M tokens — about 28.0× less than this model at the same ratio. That gap is what the re-ranked index exists to show: sorting by input price alone can put a model 68 places out.
Similarly priced alternatives
| Similarly priced | Vendor | In / out per 1M | vs this |
|---|---|---|---|
| GPT-6 Luna | OpenAI | $0.05 / $0.25 | −$0.12 |
| GPT-5 nano | OpenAI | $0.025 / $0.2 | −$0.19 |
| GPT-5.6 Luna | OpenAI | $0.1 / $0.6 | +$0.28 |
Blended comparison (input + output per 1M). Price is one axis — the models above are not interchangeable, they are the ones worth testing side by side at this budget.
Calling Llama 4 Maverick
The identifier you send is llama-4-maverick — copy it exactly, because a mismatch
returns a model error rather than a connection error, which sends most people to debug the wrong
thing. Everything else is a base URL argument; official SDKs work unchanged.
from openai import OpenAI
client = OpenAI(base_url="https://aicomp.ai/v1", api_key="sk-...")
resp = client.chat.completions.create(
model="llama-4-maverick",
messages=[
{"role": "system", "content": "Answer in one short paragraph."},
{"role": "user", "content": "Explain what changed in this release."},
],
max_tokens=300,
)
# prompt_tokens / completion_tokens 是真实账单的唯一依据 —— 记下来,别猜
print(resp.usage.prompt_tokens, resp.usage.completion_tokens)
Log the usage object on every call, not just while you are optimising. Rates follow vendor promotions and can move without notice, so a per-call record is the only thing that tells you later whether a price change actually hit you — and in which direction.
import json
# 把每次调用的 usage 落盘,一周后你就有了自己的 in:out 比例。
# 拿这个比例去 /calculator/ 比价,比对着价目表猜准得多 ——
# output 单价是 input 的好几倍,猜错方向就是往贵了算。
with open("usage.jsonl", "a") as fh:
fh.write(json.dumps({
"model": model,
"in": resp.usage.prompt_tokens,
"out": resp.usage.completion_tokens,
}) + "\n")
Setting it up
Pointing an existing integration at this model is a base URL change, not a rewrite. Pick your tool:
- Claude Code — set the base URL via environment variables
- Cursor — override the API endpoint in settings
- OpenAI / Anthropic SDK — one
base_urlargument - Python — sync, streaming and async examples
- Cutting the bill — eight levers ranked by effect
FAQ
How much does Llama 4 Maverick cost per million tokens?
$0.07 per million input tokens and $0.35 per million output tokens. No official USD list price is published for this model, so it is billed at platform rate.
Is Llama 4 Maverick cheaper than buying direct?
There is no published official USD price to compare against for this model — it is billed at platform rate, and the reason to route it through a gateway is access and consolidated billing rather than a discount.
What does Llama 4 Maverick cost per month in practice?
At a 5:1 input-to-output ratio it is about $0.70 a month for light use (5M input tokens) and roughly $70.00 for heavy use (500M input). Agent workloads sit at the high end because every turn resends the context — see what actually drives Claude Code cost.
Which models cost about the same as Llama 4 Maverick?
The comparison table further up this page lists the three closest in blended price. If you are choosing on cost alone, start there and test the top two on your own prompts — price per token is only half the equation, the other half is how many tokens a model needs to finish the task.
How do I start using Llama 4 Maverick?
You need an API key, then point your client at the gateway base URL. It is a one-line change in most SDKs — see the SDK setup guide, or the Claude Code and Cursor guides for those tools.
What is the Llama 4 Maverick API price per 1M tokens?
$0.07 per 1M input and $0.35 per 1M output. The two directions are quoted separately because a request is billed twice — once for what you send, once for what comes back — and the rates differ.
How much more does Llama 4 Maverick charge for output than input?
Output tokens cost 5.0x what input tokens do here — $0.07 per 1M in against $0.35 per 1M out. The median output-to-input multiple across our full price index is 4.0x, so this model sits above that line. It matters more than it looks: a coding agent writes far more than it reads, so on this model the output rate — not the input rate people usually compare — decides the bill. See why output pricing dominates.
How much does Llama 4 Maverick cost for a coding agent?
About $70.00 a month at 500M input and 100M output tokens — the shape a coding assistant really produces, because every turn resends the whole context and the model writes more than it reads. The biggest lever is usually not the model but how much context you resend each turn — see what actually drives agent cost.
Does Llama 4 Maverick have an official list price?
No — Meta does not publish a USD list price for this model, so there is nothing to compare against and it bills at platform rate: $0.07 in / $0.35 out per 1M. The reason to route it through a gateway is access and one consolidated bill across vendors, not a discount.