For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authorization

Use an API key to authenticate your inference requests.

For team requests, select the team in the sidebar account selector before creating a key. See Teams for personal and team key ownership.

Create an API key

  1. Open API Keys in the console.

  2. Give your key a name and click Create API key.

  3. Copy the key and store it somewhere safe. It's shown only once.

Use your key

Include your key in the Authorization header of each request:

Authorization: Bearer <your-api-key>

Replace <your-api-key> with the key you copied. See the API guide for complete request examples.

Keep your key safe

Keep your key out of browser code and public repositories. Store it in an environment variable on your server.

If a key is exposed, revoke it from API Keys and create a replacement.

Last updated