Llama 4 Maverick API
Access Llama 4 Maverick through one API key. Meta's most capable open-weight model.
Meta's larger open-weight model. More capable than Scout with a massive 524K context window.
Takes 30 seconds.
Llama 4 Maverick API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated October 23, 2026.
| Token type | Price |
|---|---|
| Input | $0.28 / 1M tokens |
| Output | $0.96 / 1M tokens |
| Context window | 524K tokens |
| What it costs | Per job | Per 1,000 |
|---|---|---|
| Chat reply1K input + 500 output tokens | $0.0008 | $0.76 |
| RAG answer8K input + 800 output tokens | $0.003 | $3.01 |
| Agent step with tools30K input + 2K output tokens | $0.01 | $10.32 |
| Long document summary100K input + 2K output tokens | $0.03 | $29.92 |
4,900+
Developers
2.3M+
API calls served
184
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Send a message and see Llama 4 Maverick respond in real time.
Maximum tokens in the response.
Real-time tokens
Llama 4 Maverick specs
| Provider | Meta |
|---|---|
| Model ID | meta-llama/llama-4-maverick |
| Endpoint | /v1/ai/chat |
| Type | Text Generation |
| Context window | 524K tokens |
| Max output | 16K tokens |
| Reasoning | No |
| OpenAI-compatible | Yes — /v1/ai/chat/completions |
How to get a Llama 4 Maverick API key
- 1
Create an account
Sign up at yepapi.com with Google or email. It takes about 30 seconds.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call Llama 4 Maverick
Send a request to /v1/ai/chat with the x-api-key header and model "meta-llama/llama-4-maverick".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
Meta releases Llama 4 Maverick with open weights, so teams can validate behavior against a published model and avoid lock-in to a single closed system.
A 524,288-token context window lets Maverick process very large documents, codebases, or conversation histories in one request, with up to 16,384 output tokens.
Maverick is the more capable of Meta's Llama 4 pair, outperforming the smaller Scout on reasoning and general tasks while keeping open weights.
At $0.28 per 524K input and $0.96 per 524K output tokens, it delivers frontier-scale context and open-weight flexibility at a low price point.
Quick start
Copy this snippet and start making calls with Llama 4 Maverick.
const res = await fetch('https://api.yepapi.com/v1/ai/chat', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "meta-llama/llama-4-maverick",
"messages": [
{
"role": "user",
"content": "Explain API gateways in 2 sentences."
}
],
"maxTokens": 256
}),
});
const { data } = await res.json();
console.log(data.message.content);Llama 4 Maverick vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price | Context |
|---|---|---|---|
| Llama 4 Maverick | Meta | $0.28 in / $0.96 out per 1M | 524K |
| Llama 4 Scout | Meta | $0.15 in / $0.44 out per 1M | 1.3M |
| Nemotron 3 Super | NVIDIA | $0 in / $0 out per 1M | 262K |
| Qwen3.7 Flash | Qwen | $0.04 in / $0.19 out per 1M | 1M |
| Solar Mini 4 | Upstage | $0.07 in / $0.30 out per 1M | 524K |
| Nemotron 3.5 Lightning | NVIDIA | $0.10 in / $0.30 out per 1M | 262K |
| DeepSeek V4 Flash | DeepSeek | $0.13 in / $0.27 out per 1M | 1.0M |
| Qwen 3.5 Flash | Qwen | $0.10 in / $0.38 out per 1M | 1M |
Why use Llama 4 Maverick through YepAPI?
Llama 4 Maverick API: Meta's capable open-weight model with 524K context
Llama 4 Maverick is the larger and more capable model in Meta's Llama 4 release, an open-weight model with a million-token context window aimed at teams that want capability without closed-system lock-in.
Through YepAPI you access Llama 4 Maverick on one OpenAI-compatible endpoint at $0.28 per 524K input and $0.96 per 524K output tokens, with a 524,288-token context window.
What is Llama 4 Maverick?
Llama 4 Maverick is Meta's higher-tier Llama 4 model, sitting above the smaller Llama 4 Scout in capability. As an open-weight model, its parameters are published, which appeals to teams that value transparency, the option to self-host, and freedom from dependence on any single closed provider. Maverick pairs that openness with a 524,288-token context window and up to 16,384 output tokens, letting it reason over very large inputs. It is positioned as a general-purpose model strong on reasoning, instruction following, and coding, making it a flexible default for builders who prefer the open Llama ecosystem.
Build with Llama 4 Maverick via YepAPI
Call Llama 4 Maverick through YepAPI's OpenAI-compatible /v1/ai/chat endpoint. Point your OpenAI SDK at YepAPI, set the model string to llama-maverick, and you are running Meta's open-weight model; switching to any other model later is a single-string edit. One YepAPI key also covers every other model plus SEO, SERP, and web-scraping tools, so you can prototype on Maverick and route specific tasks elsewhere without changing providers or keys.
Llama 4 Maverick API pricing — $0.28 / $0.96 per 524K tokens
Llama 4 Maverick costs $0.28 per 524K input tokens and $0.96 per 524K output tokens on YepAPI. That pricing is notable given the million-token context and open-weight pedigree: it lets you feed very large inputs affordably while keeping the option to compare against a publicly available model. For long-context summarization and analysis, the low input rate keeps the dominant cost manageable at scale.
Llama 4 Maverick for open-weight, long-context builds
Maverick suits teams that want a capable, transparent model for long-context work: analyzing large documents or entire codebases, multi-turn assistants with long histories, and general reasoning where the published weights aid evaluation and reduce lock-in risk. It is also a sensible benchmark, since its open nature makes its behavior easier to study. The 524K window means heavy chunking is rarely needed for large inputs.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Meta's larger open-weight model. More capable than Scout with a massive 524K context window.
Llama 4 Maverick costs $0.28 per 1M input tokens and $0.96 per 1M output tokens through YepAPI, billed per request with no monthly fee. For example, a chat reply (1K input + 500 output tokens) costs about $0.0008.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for Llama 4 Maverick and every other model — no separate Meta account or waitlist.
Use "meta-llama/llama-4-maverick" as the model on /v1/ai/chat. The short alias "llama-maverick" also works.
Yes. Point the OpenAI SDK at https://api.yepapi.com/v1/ai with your YepAPI key and set model to "meta-llama/llama-4-maverick". Streaming works the same way, so existing OpenAI code only needs the base URL and key changed.
Llama 4 Maverick supports a 524K token context window with up to 16K output tokens per request.
Explore more models
Llama 4 Scout
MetaAccess Llama 4 Scout through one API key. Meta's open-weight model with 1.3M context.
Qwen 3.5 27B
QwenAccess Qwen 3.5 27B through one API key. Dense model for consistent performance.
GPT-4o
OpenAIAccess GPT-4o through one API key. Flagship reasoning and multimodal capabilities.
GLM 5 Turbo
Z.aiAccess GLM 5 Turbo through one API key. Fast bilingual model from Zhipu AI.
Seed 2.0 Pro
ByteDanceAccess Seed 2.0 Pro through one API key. ByteDance's flagship Seed 2.0 reasoning model.
GLM 5.3 Flash
Z.aiAccess GLM 5.3 Flash through one API key. Z.ai Cheapest Multimodal GLM.
More Text Generation models
- Seed 2.0 Lite API · ByteDance
- Kimi K2.7 Code API · Moonshot AI
- Qwen3.8 Omni Flash API · Qwen
- Kimi K3 API · Moonshot AI
- MiniMax M3.1 Flash API · MiniMax
- Qwen 3.6 Plus API · Qwen
- Qwen3.7 Max API · Qwen
- Qwen 3 Coder API · Qwen
- GPT Audio API · OpenAI
- Claude Opus 5 API · Anthropic
- GPT-5.4 Nano API · OpenAI
- GLM 5 API · Z.ai