Model / inference API

Meta Llama API

Inference provider headquartered in US. Serves models through OpenRouter as "Meta".

Checked 2026-10-31

Loading poll...

Meta's API, once called the Llama API, is now the Meta Model API and is built around the Muse models. On 2026-10-31 Muse Wonder costs $4 in and $20 out per million tokens, and Muse Spark costs $1.25 and $4.25. A Contributor mode cuts Spark to $0.10 and $0.20 if you let Meta train on your content.

Facts at a glance

Item

What Meta states

Source

Base URL

https://api.meta.ai/v1

Overview docs

Flagship

Muse Wonder (muse-wonder-1.0), 1,048,576-token context

Overview docs

Wonder price

$4.00 in, $0.20 cached, $20.00 out

Pricing page

Spark price

$1.25 in, $0.15 cached, $4.25 out

Pricing page

Contributor mode

Spark at $0.10 / $0.002 / $0.20, content used for training

Pricing page

Long-context premium

None

Pricing page

Rate limit, Wonder and Spark

3,000 requests and 4,000,000 tokens a minute

Pricing page

API shapes

Responses, Chat Completions, Messages

Coding agents docs

Open weights

Muse Spark Open, Muse Glimmer

Overview docs

Prices checked 2026-10-31. If you are looking for the old Llama API, the slug on this site is kept for that reason. The Llama weights themselves are covered on Llama models.

Models and prices

Meta bills text models per token, images per image, transcription by the hour of audio, and segmentation per image or video frame, with no minimums or upfront commitments.

Model

Standard input

Cached input

Output

Notes

Muse Wonder (muse-wonder-1.0)

$4.00

$0.20

$20.00

For complex software engineering and long-horizon agent work; no Contributor mode

Muse Spark (muse-spark-1.3, 1.2, 1.1)

$1.25

$0.15

$4.25

Cheaper and faster; Contributor variants for 1.3 and 1.2

Muse Spark, Contributor mode

$0.10

$0.002

$0.20

Content used to train Meta models

Muse Image

$0.01 per generated image

Search included in the price

Muse Voice Transcribe

$0.18 per hour of audio

Streaming and non-streaming priced the same

SAM 3.1

$2.50 per 1,000 images, $0.20 per 1,000 video frames

Minimum 50 frames per video request

Three notes from the pricing page. There is no long-context premium, so you pay the same rate whether the 1M window is empty or almost full. Cached input costs less, and the response reports cached_tokens so you can check the hit rate. Web search grounding costs $2.50 per 1,000 queries, added to the token cost. The Muse Wonder price matches Claude Opus 5.5's input rate closely, at $4 against $4, while output is $20 on both, which makes Wonder a direct price rival to Anthropic's Opus line. That is a price comparison, not a quality one, and we have no test results to cite.

Standard mode and Contributor mode

This is the most unusual feature of Meta's API, and it decides your data position.

Standard mode

Contributor mode

Models

Every model on the page

Muse Spark 1.3 and 1.2, via -contributor variants

Price

Standard

Heavily discounted: $0.10 in, $0.20 out on Spark

Your content

Not used to train Meta models

Prompts, code, files, context and responses may train future Meta models

Rate limit

3,000 requests a minute

150 requests a minute, 3,000,000 tokens a minute

Wonder available

Yes

No

Meta states it plainly: "In Standard mode, you pay standard prices and your content is not used to train Meta models." Contributor mode is described as a way to lower the barrier for prototyping, testing integrations and scaling experiments "where it's acceptable for Meta to use your content". In Muse Code, Meta's coding agent, subscriptions default to Contributor mode, and you can turn it off in settings.

The discount is large. Muse Spark in Contributor mode costs about 8 percent of the standard input price and under 5 percent of the standard output price. That makes it very attractive for public code and open-source work, and unsuitable for anything confidential. The risk to manage is the default in Muse Code. A developer who installs it and signs in with a subscription may be in Contributor mode without noticing, so check the setting before pointing it at a private repository.

Zero data retention is mentioned on the pricing page, for Muse Voice Transcribe at parity with Standard mode. We did not find a general retention period, or a statement of how long Standard-mode prompts are kept.

Rate limits

Limits apply per team, not per key: every key's requests, tokens and streams count towards the same limits. Each model has its own limits, so traffic to one does not use another's.

Model

Requests per minute

Tokens per minute

muse-wonder-1.0

3,000

4,000,000

muse-spark-1.3, 1.2, 1.1

3,000

4,000,000

muse-spark-1.3-contributor, 1.2-contributor

150

3,000,000

sam-3.1

3,000

None

muse-image-1.0

150

None

muse-voice-transcribe-1.0

None

256 concurrent streams; 16,000 streams an hour

These are generous defaults for a new account. The one low number is 150 requests a minute for the Contributor variants, which matters if you run many parallel agent calls on the discounted model.

Which agents can use it, and how

Meta's docs cover coding agents in unusual detail. OpenAI-compatible agents connect to https://api.meta.ai/v1 with the Responses or Chat Completions API. Anthropic-format agents such as Claude Code connect through the Messages API at https://api.meta.ai. For Claude Code, Meta documents these variables:

export MODEL_API_KEY="<your-model-api-key>"
export ANTHROPIC_BASE_URL="https://api.meta.ai"
export ANTHROPIC_AUTH_TOKEN="$MODEL_API_KEY"
export ANTHROPIC_MODEL="muse-wonder-1.0"
export ANTHROPIC_DEFAULT_OPUS_MODEL="muse-wonder-1.0"
export ANTHROPIC_DEFAULT_SONNET_MODEL="muse-spark-1.3"
claude

So the Opus slot runs Wonder and the Sonnet slot runs Spark. See Claude Code. For OpenCode, Meta gives a provider block that uses the @ai-sdk/openai adapter against the Responses API with the base URL above, model muse-spark-1.3, reasoning enabled and a 1,048,576 context with 131,072 maximum output. It also documents Codex with the Responses API. See OpenCode and Codex CLI. Chat Completions is the universal fallback, because every OpenAI-compatible agent supports it.

Meta's own agent is Muse Code, a terminal and CI agent built on Muse Spark with approvals and an OS sandbox on from the first run. It installs with a shell script and starts with the muse command, and on first run you pick a browser sign-in or paste an API key. Muse Code subscriptions can include Muse Wonder Full and Contributor mode.

Open weights

Meta also publishes weights. Muse Spark Open is the open-weight release of Muse Spark, with 816 billion parameters and 42 billion active, under the Muse Model License, a gated release with manual approval on Hugging Face. Its licence asks every product that uses the model or a derivative to display "Built with Muse Spark Open". Muse Glimmer is described as open-weight and built for local and edge deployment, under Apache 2.0. Third-party hosts serve Muse Spark Open too: Together AI and Fireworks AI both list it at $1.25 in and $4.25 out, the same as Meta's Standard price for Spark. The older Llama 4 weights are from April 2025.

Wonder or Spark

Meta's docs steer you between the two models, and the choice drives most of your bill.

Question

Muse Wonder

Muse Spark

Meta's description

Most capable model, for complex software engineering and long-horizon agent work

Costs less, served with agent-ready primitives

Standard price

$4 in, $20 out

$1.25 in, $4.25 out

Context

1,048,576 tokens

1,048,576 tokens

Contributor discount

Not available

Yes

Typical use in Meta's guide

Opus slot in Claude Code, complex tasks

Sonnet slot, faster and cheaper work

Wonder is about three times the input price and nearly five times the output price of Spark. Both take the same requests, so Meta says any example that uses Spark also runs on Wonder by changing the model id to muse-wonder-1.0. That makes a routing design easy: send ordinary steps to Spark and escalate hard ones to Wonder. The price gap is the argument for doing so, and your own task test is the argument against assuming it works.

What changed from the Llama API

If you used Meta's earlier Llama API, expect four changes. The brand and docs now lead with Muse, and Llama sits under a documentation menu. The base URL is https://api.meta.ai/v1. The API exposes three surfaces, Responses, Chat Completions and an Anthropic-style Messages endpoint, instead of one. And the data position is more explicit, with Standard and Contributor modes. If you built on a Llama model through Meta, check which Llama models are still served and plan a move to a Muse model or to self-hosted weights, since Meta's focus moved. We did not confirm which Llama models the hosted API still serves.

Moving to the Meta Model API

  1. Get a key from the Model API dashboard and export it as MODEL_API_KEY.
  2. Pick the surface your agent uses. Chat Completions is the safe default, Responses adds server-managed conversation state and video input, and Messages serves Anthropic-format clients.
  3. Pick the mode. Standard for private work, Contributor only for data you are happy to share.
  4. Use the cache. Keep stable prefixes at the front and watch cached_tokens.
  5. Test tools. The docs say tool calling, streaming and multi-step reasoning work through the main agents, and your own schemas still need a run.
  6. Check team limits. One team shares one limit across keys, so a CI job and a developer laptop compete for the same pool.

Moving away is mostly a base URL change, and the Messages and Chat Completions surfaces make that easy. The one part to plan for is any state you keep in server-managed Responses conversations, which you should export before leaving.

Alternatives

If you need

Look at

A closed model with documented retention

Anthropic, OpenAI

The same Muse Spark Open weights on a US host

Together AI, Fireworks AI

A cheaper hosted coding model

DeepSeek

Open weights with an EU lab

Mistral AI

Weights you can run yourself

Llama models

A worked cost example

Take 10 million input tokens and 2 million output tokens. The arithmetic is ours, from the Meta price list, with no caching.

Model and mode

Input

Output

Total

Muse Wonder, Standard

$40.00

$40.00

$80.00

Muse Spark, Standard

$12.50

$8.50

$21.00

Muse Spark, Contributor

$1.00

$0.40

$1.40

The Contributor row costs less than a fiftieth of Wonder on this mix. It is the cost of letting Meta train on the data. If 8 million of the 10 million input tokens are cache hits, Spark in Standard mode costs $1.20 for the cached part plus $2.50 for the other 2 million, so $3.70 of input and $12.20 in total.

Who should pick Meta's API

You are

Pick

Watch for

An open-source or public-code developer

Muse Spark Contributor mode

Content trains Meta models

A team with private code

Standard mode only

Muse Code defaults to Contributor

A team wanting a flagship price near Opus

Muse Wonder

No quality data in our sources

A Claude Code user wanting another model

The documented Messages setup

Model-slot mapping

A pre-launch checklist

  1. Choose Standard mode for anything private, and check the Muse Code setting.
  2. Use the -contributor model ids only for data you are happy to share.
  3. Check cached_tokens in responses to confirm the cache works.
  4. Budget web search at $2.50 per 1,000 queries.
  5. Remember limits are per team, not per key.
  6. Get a retention statement and region terms in writing.
  7. Show the "Built with Muse Spark Open" notice if you ship the open weights.

Our take

Meta has moved from a Llama API to a full model platform, and the documents are better than most: a clear price list, honest limits, a long-context price with no premium, and setup guides for the main coding agents. The Contributor mode is the notable idea. It puts a price on your data and lets you choose. The cost of the clarity is that the data terms outside the training question, such as retention and region, were not on the pages we read, and that the default in Muse Code leans toward sharing. For public work it is a bargain. For private work use Standard mode and ask for the retention terms.

We have not run tests for this page. It reflects Meta's published documentation on 2026-10-31. Meta does not pay for placement here.

Related pages

Llama models, LLM API prices, open source LLM, Claude Code, OpenCode.

Questions

Is the Llama API still the name?

Meta's developer site now calls it the Meta Model API and leads with the Muse family: Muse Wonder, Muse Spark, Muse Image, Muse Voice Transcribe and SAM 3.1. Llama sits in the documentation menu.

How much does Muse Wonder cost?

$4.00 per million input tokens, $0.20 cached input and $20.00 output, with a 1,048,576-token context and no long-context premium.

What is Contributor mode?

Muse Spark at $0.10 in and $0.20 out per million tokens in exchange for permission to train future Meta models on your prompts, code, files and responses. Standard mode does not use your content for training.

Can I use Meta's API with Claude Code?

Yes. Meta documents setting ANTHROPIC_BASE_URL to https://api.meta.ai and ANTHROPIC_AUTH_TOKEN to your Model API key, with muse-wonder-1.0 mapped to the Opus slot and muse-spark-1.3 to Sonnet.

Loading poll...

Reviews

Loading reviews…

Write a review

Your rating

Up to 1000 characters. Stars alone are enough.

Sources

  1. llama.developer.meta.com/docs/overview
  2. llama.developer.meta.com/docs/pricing-rate-limits
  3. llama.developer.meta.com/docs/coding-agents
  4. huggingface.co/meta-models/Muse-Spark-Open-816B-A42B

Similar

  • xAI API

    Inference provider headquartered in US. Serves models through OpenRouter as "xAI".

    • Model / inference API
  • Cohere

    Inference provider headquartered in US. Serves models through OpenRouter as "Cohere".

    • Model / inference API
  • Mistral AI API

    Mistral AI's API prices Large 4 at $0.70 per million input tokens and $2.10 output with a 1M context, on our 31 October 2026 read.

    • Model / inference API
  • DeepSeek API

    The DeepSeek API bills per token.

    • Model / inference API
  • OpenAI API

    OpenAI's API bills per token.

    • Model / inference API

Part of the Wbcom Designs family

The all-in-one WordPress community stack

Also ours: wbcomdesigns.comvapvarun.combrndle.com