How to Use Muse Ember in Claude Code
Use Meta Model API's Anthropic-compatible Messages endpoint, set Claude Code's base URL and bearer-token variables.

Summary
- Muse Ember's model ID is muse-ember-1.0, with Messages, Responses, and Chat Completions endpoints.
- Claude Code needs ANTHROPIC_BASE_URL=https://api.meta.ai and ANTHROPIC_AUTH_TOKEN for Meta's bearer authentication.
- Muse Ember costs $0.10 input and $0.50 output per 1M tokens up to 200K input tokens as of 2026-11-10.
- Meta's Claude Code example uses Muse Wonder and Muse Spark, so Ember compatibility still needs a real request check.
On this page
What you need from Meta
Create a Meta Model API key, then use the model ID muse-ember-1.0. Meta lists Muse Ember as a Standard-mode model with a 1,048,576-token context window, up to 524,288 output tokens, text/image/video/audio/PDF input, and Responses, Chat Completions, and Messages endpoints (Muse Ember API documentation).
Meta's Messages adapter accepts Anthropic-shaped requests at /v1/messages; its documented base host is https://api.meta.ai, and authentication uses a bearer token (Messages API documentation). That is the surface Claude Code uses.
Set Claude Code's provider variables
Export the base URL without /v1, put the Meta key in ANTHROPIC_AUTH_TOKEN, and set the main model:
export MODEL_API_KEY="sk-your-meta-model-api-key"
export ANTHROPIC_BASE_URL="https://api.meta.ai"
export ANTHROPIC_AUTH_TOKEN="$MODEL_API_KEY"
export ANTHROPIC_MODEL="muse-ember-1.0"
Claude Code appends /v1/messages to ANTHROPIC_BASE_URL. Meta's coding-agent instructions say to use ANTHROPIC_AUTH_TOKEN, because it sends Authorization: Bearer <key>; ANTHROPIC_API_KEY sends the different x-api-key header (Meta's coding-agent configuration).
Start a new shell after exporting the variables, then launch Claude Code:
claude
Keep the key in your shell environment or a secret manager. Do not commit it to a project file.
Pin every Claude Code model alias
Claude Code can select models through aliases and subagents, so setting only ANTHROPIC_MODEL leaves other paths unresolved. Pin each alias to the same model while you evaluate Ember:
export ANTHROPIC_DEFAULT_OPUS_MODEL="muse-ember-1.0"
export ANTHROPIC_DEFAULT_SONNET_MODEL="muse-ember-1.0"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="muse-ember-1.0"
export CLAUDE_CODE_SUBAGENT_MODEL="muse-ember-1.0"
Meta documents these variables for Claude Code and explains that Plan Mode, alias-based tasks, and subagents can otherwise select a different model. It also documents ENABLE_TOOL_SEARCH="true" for MCP tool search through a non-first-party host:
export ENABLE_TOOL_SEARCH="true"
Add the exports to ~/.zshrc or ~/.bashrc only after the one-session check works. Anthropic's gateway documentation describes the same general arrangement: ANTHROPIC_BASE_URL points Claude Code at a compatible gateway, while the gateway credential replaces the normal subscription credential for those requests (Claude Code gateway documentation). If Claude Code still seems to skip the gateway, see why the base URL has no effect.
Check the API before opening a long coding session
Use Meta's documented Responses call to confirm the key and model ID independently:
curl -X POST "https://api.meta.ai/v1/responses" \
-H "Authorization: Bearer $MODEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "muse-ember-1.0",
"input": "Reply with OK."
}'
A successful response should identify the requested model and contain a generated output. This checks Meta Model API authentication and model availability; it does not prove that every Claude Code feature works through the Messages adapter.
Then start Claude Code and ask for a small read-only task, such as listing the current directory. If Claude Code reports that the model cannot be found, check the spelling of muse-ember-1.0 and remove any trailing slash from ANTHROPIC_BASE_URL. Meta lists a wrong model ID or a trailing slash as the documented cause of a 404 or “Model not found” response (coding-agent troubleshooting).
Know the cost tiers
As of 2026-11-10, Meta prices Muse Ember in Standard mode at $0.004 per 1M cached input tokens, $0.10 per 1M input tokens, and $0.50 per 1M output tokens for requests with up to 200K input tokens. Requests over 200K input tokens use the long-context tier in full: $0.012 cached input, $0.30 input, and $1.50 output per 1M tokens (Meta pricing and rate limits).
The tier is selected by the total input in the request, including cached tokens. A long conversation that crosses 200K input tokens therefore changes the rate for the whole request. Muse Ember has no Contributor-mode model on Model API.
Not confirmed yet
Meta's Claude Code example pins muse-wonder-1.0 for the main loop and muse-spark-1.3 for the aliases and subagents. Its Messages documentation describes Muse Ember as a supported model, but the published Claude Code configuration does not show an Ember-specific example. Treat the variables above as the configuration to evaluate, then verify a real Claude Code request and the features you depend on, especially tool use, MCP search, image or PDF input, and long multi-turn sessions.
Meta's Messages adapter is stateless: it does not provide a server-managed conversation ID. Claude Code keeps its history on the client, so the adapter's documented behavior is compatible with client-managed history, but the quality and cost of a complete Claude Code workflow still depend on the requests Claude Code sends.
Sources and checks
- Introducing Our Smallest, Most Efficient Model: Muse EmberChecked
- Muse Ember - Meta Model APIChecked
- Messages API - Meta Model APIChecked
- Use Model API with coding agentsChecked
- Pricing and rate limits - Meta Model APIChecked
- Other LLM gateways - Claude Code DocsChecked
- Pricing and rate limits - Meta Model APIChecked