Get started
Authentication
Authenticate every request with a secret API key in the Authorization header.
The API uses secret keys that start with mf-. Pass the key as a Bearer token. Keys belong to an organization, not to a person.
Keep keys secret
- Never put a key in browser code, a mobile app or a public repository.
- Use a separate key per environment so that one can be revoked without stopping the others.
- Restrict a key to specific models, set a monthly spending limit and an IP allowlist when you create it.
Revoking a key
Revoke a leaked key in API Keys. Revocation is immediate and cannot be undone; requests with that key return 401 invalid_api_key.