Skip to main content

llm-meta-ai

PyPI Tests Changelog License

LLM plugin for models hosted by the Meta AI API

Installation

Install this plugin in the same environment as LLM:

llm install llm-meta-ai

Usage

First, obtain an API key for the Meta AI API and set it as a key called meta-ai:

llm keys set meta-ai
# Paste key here

You can also set the key using the META_AI_TOKEN environment variable.

Run llm models to get a full list of available models. Models are prefixed with meta-ai/, for example:

llm -m meta-ai/muse-spark-1.1 "What is the capital of France?"

You can also list just the Meta AI models like this:

llm meta-ai models

Add --json for the full JSON model definitions.

The list of models is fetched from the API and cached for an hour. Run this command to refresh it:

llm meta-ai refresh

Reasoning

These are reasoning models: they think before they answer, and the reasoning tokens count towards your output token budget - they are reported in the completion_tokens_details.reasoning_tokens key in llm logs --json. Control how much the model reasons with the reasoning_effort option, one of none, minimal, low, medium, high or xhigh (not every model supports every value):

llm -m meta-ai/muse-spark-1.1 'What is the capital of France?' -o reasoning_effort low

Rate limits and max_tokens

Requests count against an output token rate limit before they run. Setting a token limit on your prompts helps avoid exhausting your quota - leave generous room for reasoning tokens:

llm -m meta-ai/muse-spark-1.1 'A short poem about a pelican' -o max_tokens 2000

Rate limits are applied per model - a model that returns 429 errors even after a long wait may not be enabled for your team, even if it shows up in the models list.

Attachments

Models accept images (PNG, JPEG, WebP, GIF, ICO) and PDFs:

llm -m meta-ai/muse-spark-1.1 'Describe this image' \
  -a https://static.simonwillison.net/static/2024/pelicans.jpg

The API also supports MP4 video via its Files API, which this plugin does not yet use.

Tools

Meta AI models support tools:

llm -m meta-ai/muse-spark-1.1 -T llm_time 'What time is it?' --td

Schemas

They support schemas as well:

llm -m meta-ai/muse-spark-1.1 'Invent a dog' --schema 'name, age int, breed'

Development

To contribute to this library, first checkout the code. Then create a new virtual environment:

cd llm-meta-ai
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

python -m pip install -e . --group dev

To run the tests:

python -m pytest

Release files for llm-meta-ai 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-meta-ai 0.1
File Size Uploaded
llm_meta_ai-0.1.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-meta-ai 0.1
File Interpreter ABI Platform
llm_meta_ai-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.3 kB

Release files / llm_meta_ai-0.1.tar.gz

Download URL llm_meta_ai-0.1.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
253beba954b712ac9fa10848228634a08f3a9d2ea1745453d20854cd6128e735
BLAKE2b-256 checksum
How to use checksums
f52df29bd9236217592dc4eabffdd86401acb30b3c86c5e8894ba0ded8a4e9b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 9, 2026.

Transparency log

Release files / llm_meta_ai-0.1-py3-none-any.whl

Download URL llm_meta_ai-0.1-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5dd561ee13f09938b43728a939b20ebe06e2a3501d99b0a45ed1b479d98726c
BLAKE2b-256 checksum
How to use checksums
8a1130e33e49ca05386ac9b95413d97420977224510b24e03fe675ffc18b9d14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page