YepAPI
MetaText Generation/v1/ai/chat

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 typePrice
Input$0.15 / 1M tokens
Output$0.44 / 1M tokens
Context window1.3M tokens
What it costsPer jobPer 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.

POST/v1/ai/chat

Maximum tokens in the response.

Real-time tokens

Hit "Send Request" to see the response

Llama 4 Scout specs

ProviderMeta
Model IDmeta-llama/llama-4-scout
Endpoint/v1/ai/chat
TypeText Generation
Context window1.31M tokens
Max output8K tokens
ReasoningNo
OpenAI-compatibleYes — /v1/ai/chat/completions

How to get a Llama 4 Scout API key

  1. 1

    Create an account

    Sign up at yepapi.com with Google or email. It takes about 30 seconds.

  2. 2

    Create an API key

    Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.

  3. 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. 4

    Pay as you go

    Usage is billed per request from your balance. Top up any amount; there is no subscription.

Strengths

✓
Open-weight model

Meta releases Llama 4 Scout's weights openly, so behavior is transparent and portable — useful for teams that value avoiding lock-in.

✓
1.3M context

Handles up to 1,310,720 tokens per request, enough to load large documents, long histories, or substantial codebases in one call.

✓
Strong reasoning

Performs well on reasoning, instruction-following, and coding for an open model, making it a capable general-purpose option.

✓
Competitive pricing

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.

ModelProviderPriceContext
Llama 4 ScoutMeta$0.15 in / $0.44 out per 1M1.3M
Llama 4 MaverickMeta$0.28 in / $0.96 out per 1M524K
Nemotron 3 SuperNVIDIA$0 in / $0 out per 1M262K
Qwen3.7 FlashQwen$0.04 in / $0.19 out per 1M1M
Solar Mini 4Upstage$0.07 in / $0.30 out per 1M524K
Nemotron 3.5 LightningNVIDIA$0.10 in / $0.30 out per 1M262K
DeepSeek V4 FlashDeepSeek$0.13 in / $0.27 out per 1M1.0M
Qwen 3.5 FlashQwen$0.10 in / $0.38 out per 1M1M

Why use Llama 4 Scout through YepAPI?

✓One API key for all models — no separate accounts
✓OpenAI SDK compatible — just change the base URL
✓No monthly minimums — pay per token
✓Switch models with one line of code
✓Full provider passthrough — citations, search results, and all extras included
✓Streaming and non-streaming support on every model
✓Works with Cursor, Claude, LangChain, and any LLM tool
✓Unified billing across all providers

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.

Start generating in 30 seconds

Pay per call, no subscriptions.

What developers say

“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”

Marcus T.

SEO Platform Founder

“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”

Priya S.

Full-Stack Developer

“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”

Jake R.

Indie Hacker

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.

Ready to use Llama 4 Scout?

Pay per call, no subscriptions.

Explore more models