update-models-metaai

update-models-metaai is a command for Claude Code from enricoros/big-AGI. It costs 13 tokens per session (1,443 once invoked), scanned A, original, MIT.

A command for updating the definitions of Meta AI models in a codebase. Meta AI is the company’s AI service, and the definitions include details such as supported capabilities and pricing.

In plain words
What is it for?
Use it when maintaining the Meta AI model configuration, including model names, capabilities, pricing, context limits, and rate limits.
Why use it?
It helps keep the application’s model list aligned with the latest information from Meta AI’s documentation.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when maintaining the Meta AI model configuration, including model names, capabilities, pricing, context limits, and rate limits.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/enricoros/big-agi/update-models-metaai
About the project

Big-AGI is an open-source workspace for using multiple AI models through chat and other AI functions. It is intended for engineers, founders, researchers, and other users who want to work with AI personas, model comparisons, image generation, voice, documents, and code-related features. The catalogue entries provide commands, instructions, and a skill for working with Big-AGI.

enricoros/big-AGI · 7,118 stars · on GitHub · big-agi.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/enricoros/big-AGI

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for update-models-metaai

README.md
[![agentmods](https://agentmods.dev/badge/commands/enricoros/big-agi/update-models-metaai/github.svg)](https://agentmods.dev/commands/enricoros/big-agi/update-models-metaai)
Your own site
<a href="https://agentmods.dev/commands/enricoros/big-agi/update-models-metaai"><img src="https://agentmods.dev/badge/commands/enricoros/big-agi/update-models-metaai/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for update-models-metaai

Your own site · 80×15
<a href="https://agentmods.dev/commands/enricoros/big-agi/update-models-metaai"><img src="https://agentmods.dev/badge/commands/enricoros/big-agi/update-models-metaai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,443 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.01443
Opus 5 $0.00006 $0.00722
Sonnet 5 $0.00003 $0.00289
Haiku 4.5 $0.00001 $0.00144

Measured 5d ago against content hash 139d52bf99d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

update-models-metaai scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**Primary Sources:** dev.meta.ai/docs. Appending `.md` to any docs URL returns raw markdown that plain `curl` fetches (no auth, no browser needed).
.claude/commands/llms/update-models-metaai.md · 43 lines

How it starts

The opening of the file, as written. The whole thing — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Update src/modules/llms/server/openai/models/metaai.models.ts with latest model definitions.

Reference src/modules/llms/server/llm.server.types.ts and src/modules/llms/server/models.mappings.ts for context only. Focus on the model file, do not descend into other code. The vendor's protocol facts live in kb/modules/LLM-metaai-responses.md; the adapter deviations are the metaai row of _RSP_DIALECT_QUIRKS in src/modules/aix/server/dispatch/chatGenerate/adapters/openai.responsesCreate.ts.

Primary Sources: dev.meta.ai/docs. Appending .md to any docs URL returns raw markdown that plain curl fetches (no auth, no browser needed).

  • Doc index: https://dev.meta.ai/docs/llms.txt (92 pages; one curl loop mirrors the whole set when a deep read is needed)
  • Models, tiers, modalities, context windows: https://dev.meta.ai/docs/models.md
  • Pricing and rate limits: https://dev.meta.ai/docs/pricing-rate-limits.md - Standard vs Contributor per-token tables, the search-grounding surcharge, per-image and per-hour prices, RPM/TPM per tier (page carries an unresolved "confirm these numbers" editorial note - Standard limits are wire-verified, the rest provisional)
  • Reasoning effort ladder: https://dev.meta.ai/docs/reasoning.md
  • Responses API: https://dev.meta.ai/docs/protocols/responses.md; full schema https://dev.meta.ai/docs/api-reference/responses/schemas.md (5,300 lines - grep it, don't read it)
  • Capability pages to diff against interfaces / parameterSpecs: tool-calling.md, tool-search.md, search-grounding.md, structured-output.md, image-understanding.md, video-understanding.md, file-handling.md, image-generation.md, prompt-caching.md
  • Release dates (the API carries none): the announcement posts on ai.meta.com/blog and research.meta.ai/blog, and the release table on Wikipedia's "Muse Spark" page. Known: Spark 1.1 2026-07-09, Muse Image 2026-07-07, Spark 1.2 2026-08-05, Spark 1.3 2026-09-02.
  • There is NO Model API changelog (muse-code/changelog.md is the CLI's). Third-party trackers (llm-stats.com/models/muse-spark-1.3, openrouter.ai/meta/muse-spark-1.3) are fallbacks for dates and benchmarks only.

Do NOT use web search for facts. Fetch the URLs directly; search only to locate release announcements.

Known gaps and traps (verified 2026-09-02):

  • GET /v1/models and GET /v1/models/{id} return only {id, object, created: 0, owned_by: 'meta'}: created is a constant 0 (useless for pubDate or ordering, despite models.md claiming otherwise) and there is no type/modality field. The list does not establish what a model IS - cross-check every id against models.md before curating it as chat.
  • The list mixes families: muse-image-1.0 (image output over Responses; curated with LLM_IF_Outputs_Image + LLM_IF_HOTFIX_NoStream) and muse-voice-transcribe-1.0 (ASR on /v1/asr, 404 on /v1/responses; dropped via _METAAI_NON_CHAT_PREFIXES). A new non-chat family goes in that deny-list or gets curated with the right output interfaces.
  • -contributor ids are the same model at ~12x/21x lower rates and Meta trains on prompts and completions: keep them hidden: true with the tradeoff in description; never a default pick.
  • maxCompletionTokens is undocumented: 131072 is Meta's advertised figure (quickstart / coding-agents configs); the server accepts max_output_tokens up to 1M, so do not derive it from probes.
  • Docs print keys as LLM|... while served keys are LLM_...: validateSetup accepts both, do not tighten.

Live endpoint (extra signal): If .env.api-keys has METAAI_API_KEY, scan the served list for new ids: curl https://api.meta.ai/v1/models -H "Authorization: Bearer $METAAI_API_KEY". Never commit or echo the key.

Probing tips:

  • Effort domain: POST /v1/responses with {"model":"<id>","input":"pong","max_output_tokens":64,"reasoning":{"effort":"<v>"}}. A bad value 400s with unknown variant X, expected one of ... (the full server enum); a value the model rejects 400s with does not support "<v>" with this model. As of 2026-09-02 the enum is none|minimal|low|medium|high|xhigh, none is rejected on every Spark, max is not served yet (Meta announced it for 1.3 - re-probe). Omitted effort runs as high.
  • Unknown TOP-LEVEL request params 400 with unknown parameter X - cheap discovery of new fields; unknown nested keys are silently ignored.
  • tool_choice accepts only auto; truncation only disabled; logprobs are unreachable while reasoning is on.
  • Temperature 2.0 is accepted but degenerate (rambling incomplete replies, occasional HTTP 500) - the sweep records 0..1.5; do not read a 500 there as an outage.
  • End-to-end ablations through the real pipeline (tools, search, reasoning, image output): npx tsx tools/develop/aix-protocol-lab/lab.ts capture metaai-responses <hello|reason|fc|search|interleave> [--model <id>] [--no-stream]
  • Parameter acceptance sweep: tools/develop/llm-parameter-sweep/sweep.sh --dialect metaai --key $METAAI_API_KEY --model-filter muse-spark writes llm-metaai-parameters-sweep.json; then /llms:verify-parameters metaai diffs it against the definitions.

Read the full file on GitHub · 43 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 43 lines · 13 tokens per session scan A 139d52bf99d5

Subscribe to this mod's changes

update-models-metaai is a command published in the GitHub repository enricoros/big-AGI (7,118 stars, last pushed today), licensed MIT. It adds 13 tokens to every session and 1,443 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.