How do I create an API key?

An API key authenticates your requests to Meta Model API. Keys are scoped to your team, so anyone on the team can use a team key.

  1. Go to the API keys page. You must be signed in to an account with access to Model API.
  2. Select Create API key.
  3. Give the key a name so you can identify it later (for example, the app or environment it's for), then select Create API key.
  4. Copy the key and store it somewhere secure, such as a secrets manager or an environment variable. For guidance on using keys safely, follow the Learn more about API safety link shown with your new key.

Treat your key like a password: don't hardcode it in client-side code or commit it to source control, and don't share it outside your team. For more, see How can I keep my account secure? and Authentication in the developer documentation.

Need to find a key later or remove one? See Where do I find my API key? and How do I delete an API key?.