Skip to content
Docs

Create a Meta Model API key

This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.

Distilled from Meta’s Authentication, Quickstart, Models, Pricing and rate limits and Error handling pages, retrieved 2026-10-16.

Meta Model API serves Meta’s hosted models (the Muse line and SAM) on an OpenAI-compatible base URL, https://api.meta.ai/v1. It does not serve the open-weight Llama models; those are reached through a gateway. Model availability varies by country under Meta’s Geographic Use Policy.

  1. Open the Model API dashboard (Dashboard in the top bar of dev.meta.ai) and log in.
  2. Open the API keys tab.
  3. Click Create API key, give it a descriptive name, and click Create. Meta recommends a separate key per application, so one can be revoked without breaking the rest.
  4. Copy the key right away: Meta shows it only once. A key starts with LLM| and contains two pipe characters (LLM|{numeric_id}|{secret}); copy all of it, without spaces or quotes.
  5. Paste the key into the connection.

The connection checks the key by listing the models at https://api.meta.ai/v1/models, which runs no model. A 401 with code invalid_api_key means the key is missing, malformed or revoked. Keys on one team share the team’s rate limits. To revoke a key, click Delete next to it on the same tab; the team’s other keys keep working.

Open Connections under Credentials, choose Meta, and pick Meta Model API key. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.

See also: Meta in the catalog.

This guide is maintained by Publicus and published under CC BY 4.0.