API Authentication

Authenticate to the Fairseq API using API keys.

Fairseq’s API uses API keys for authentication.

Create an API key

Create keys in the dashboard:

  • Go to /dashboard/api-keys
  • Click Create API Key
  • Store the secret immediately (it is shown once)

Send the key

Provide your key as either:

  • Authorization: Bearer <API_KEY>
  • X-API-Key: <API_KEY>

Key safety

  • Treat API keys as secrets.
  • Rotate keys regularly.
  • Revoke immediately if compromised.