llama logo

Llama 4 Scout API

meta-llama/llama-4-scout

Call Llama 4 Scout through UberLLM’s OpenAI-compatible API — routed automatically to the cheapest healthy provider. llama · 327,680 token context. No inference markup.

Try it live — no signup
Free demo · a few prompts/day

Llama 4 Scout pricing & providers

Live marketplace pricing — be the first seller to route Llama 4 Scout traffic.

How to use Llama 4 Scout with the OpenAI SDK

Already using OpenAI or OpenRouter? Change one line — the base URL — and call Llama 4 Scout with your existing code. Anthropic SDKs work against https://api.uberllm.dev/v1/messages.

python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.uberllm.dev/v1",
    api_key="ull_your_key_here",
)

resp = client.chat.completions.create(
    model="meta-llama/llama-4-scout",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)

Llama 4 Scout API — FAQ

How much does the Llama 4 Scout API cost?

Llama 4 Scout is listed on UberLLM with live marketplace pricing across providers.

How do I call Llama 4 Scout via API?

Use any OpenAI-compatible SDK: set the base URL to https://api.uberllm.dev/v1, your UberLLM API key, and model "meta-llama/llama-4-scout". Anthropic SDKs work via https://api.uberllm.dev/v1/messages.

Is Llama 4 Scout OpenAI-compatible on UberLLM?

Yes. Every model on UberLLM — including Llama 4 Scout — is served through one OpenAI-compatible endpoint, so you change only the base URL and key.

More llama models