Llama 4 Scout API
Access Llama 4 Scout through one API key. Meta's open-weight model with 1.3M context.
Meta's latest open-weight model. Strong performance on reasoning, coding, and instruction-following with competitive pricing.
Takes 30 seconds.
Llama 4 Scout API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated October 23, 2026.
| Token type | Price |
|---|---|
| Input | $0.15 / 1M tokens |
| Output | $0.44 / 1M tokens |
| Context window | 1.3M tokens |
| What it costs | Per job | Per 1,000 |
|---|---|---|
| Chat reply1K input + 500 output tokens | $0.0004 | $0.37 |
| RAG answer8K input + 800 output tokens | $0.0016 | $1.55 |
| Agent step with tools30K input + 2K output tokens | $0.0054 | $5.38 |
| Long document summary100K input + 2K output tokens | $0.016 | $15.88 |
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 Scout respond in real time.
Maximum tokens in the response.
Real-time tokens
Llama 4 Scout specs
| Provider | Meta |
|---|---|
| Model ID | meta-llama/llama-4-scout |
| Endpoint | /v1/ai/chat |
| Type | Text Generation |
| Context window | 1.31M tokens |
| Max output | 8K tokens |
| Reasoning | No |
| OpenAI-compatible | Yes — /v1/ai/chat/completions |
How to get a Llama 4 Scout 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 Scout
Send a request to /v1/ai/chat with the x-api-key header and model "meta-llama/llama-4-scout".
- 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 Scout's weights openly, so behavior is transparent and portable — useful for teams that value avoiding lock-in.
Handles up to 1,310,720 tokens per request, enough to load large documents, long histories, or substantial codebases in one call.
Performs well on reasoning, instruction-following, and coding for an open model, making it a capable general-purpose option.
At $0.15 per 1M input and $0.44 per 1M output tokens, it offers large-context capability at a price close to the cheapest closed models.
Quick start
Copy this snippet and start making calls with Llama 4 Scout.
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-scout",
"messages": [
{
"role": "user",
"content": "Explain API gateways in 2 sentences."
}
],
"maxTokens": 256
}),
});
const { data } = await res.json();
console.log(data.message.content);Llama 4 Scout vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price | Context |
|---|---|---|---|
| Llama 4 Scout | Meta | $0.15 in / $0.44 out per 1M | 1.3M |
| Llama 4 Maverick | Meta | $0.28 in / $0.96 out per 1M | 524K |
| 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 Scout through YepAPI?
Llama 4 Scout API — pricing, context window & access
Llama 4 Scout is Meta's latest open-weight model, combining strong general capability with a large 1,310,720-token context window. It returns up to 8,192 output tokens per response.
Through YepAPI you call Llama 4 Scout on an OpenAI-compatible endpoint with one key — the same key that also reaches GPT-4o, Claude, Gemini, DeepSeek, and the SEO, SERP and scraping endpoints.
What is Llama 4 Scout?
Llama 4 Scout is part of Meta's Llama 4 generation of open-weight models. Its distinguishing feature is a 1,310,720-token context window paired with solid reasoning, coding, and instruction-following — a lot of capability for a model whose weights are openly released. Because it's open-weight, its behavior is transparent and portable, which appeals to teams wary of being locked into a single closed provider. It's positioned as a competitive general-purpose model for those who want frontier-class context length without frontier-class pricing.
Build with Llama 4 Scout via YepAPI
YepAPI exposes Llama 4 Scout through the OpenAI-compatible /v1/ai/chat endpoint, so you call Meta's model using the chat-completions format and the model string llama-4-scout. Switching between Llama 4 Scout and a closed model like GPT-4o, Claude, or Gemini is a single string change — handy for benchmarking open against closed on your own tasks. Your one key also covers search and scraping endpoints, so everything runs on the same account.
Llama 4 Scout API pricing — $0.15 / 1M input, $0.44 / 1M output
Llama 4 Scout costs $0.15 per 1M input tokens and $0.44 per 1M output tokens through YepAPI. That puts an open-weight model with a 1.3M context window at roughly the price of the cheapest closed small models — a strong value for long-context work. It's well-suited to jobs that combine large inputs with high volume, where both context length and per-token cost matter. You pay only for tokens used, with no minimums.
Llama 4 Scout for long-context, open-model workloads
Scout's 1.3M window lets you feed it big documents, extended conversation histories, or sizeable codebases without splitting them up. For teams that prefer an open-weight model — for transparency, portability, or to avoid single-vendor lock-in — it offers that option while staying competitive on reasoning and coding. Run it as your default for long-context tasks and escalate to a closed flagship only when a job genuinely needs more.
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 latest open-weight model. Strong performance on reasoning, coding, and instruction-following with competitive pricing.
Llama 4 Scout costs $0.15 per 1M input tokens and $0.44 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.0004.
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 Scout and every other model — no separate Meta account or waitlist.
Use "meta-llama/llama-4-scout" as the model on /v1/ai/chat. The short alias "llama-scout" 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-scout". Streaming works the same way, so existing OpenAI code only needs the base URL and key changed.
Llama 4 Scout supports a 1.3M token context window with up to 8K output tokens per request.
Explore more models
Llama 4 Maverick
MetaAccess Llama 4 Maverick through one API key. Meta's most capable open-weight model.
Gemini 3.5 Flash Lite
GoogleAccess Gemini 3.5 Flash Lite through one API key. Google Cheapest Gemini Subagent Model.
Gemini 3 Flash
GoogleAccess Gemini 3 Flash through one API key. Google's next-generation fast model.
Seed-2.0-Code
ByteDanceAccess Seed-2.0-Code through one API key. ByteDance Agentic Coding Model.
Qwen3.7 Flash
QwenAccess Qwen3.7 Flash through one API key. Qwen Budget Vision-Language Model.
GPT-6 Sol
OpenAIAccess GPT-6 Sol through one API key. OpenAI GPT-6 Cost-Efficient High-End.
More Text Generation models
- Nemotron 3 Super API · NVIDIA
- GPT-6 Luna Pro API · OpenAI
- Qwen3.8 Max (0902) API · Qwen
- Gemini 3.1 Pro API · Google
- Gemini 3.5 Flash API · Google
- Claude Fable 5.1 API · Anthropic
- GPT-5.4 Pro API · OpenAI
- Grok 4.20 API · xAI
- Qwen 3.5 122B API · Qwen
- GPT-5.1 Codex Max API · OpenAI
- Mistral Medium 3.5 API · Mistral
- Qwen3.7 Max API · Qwen