Skip to content

Authentication & API Key ​

401 Unauthorized ​

Common causes:

  • The Key was copied incompletely.
  • The Key contains spaces or line breaks.
  • The Key has been deleted, disabled, or expired.
  • The client is reading a different Key from the one you just configured.

Fix:

  1. Copy the Key again from the console.
  2. Write it again to environment variables or auth.json.
  3. Restart the terminal and client.

Key Does Not Work After Creation ​

Check whether a group was selected when creating the token. Many API gateways control model permissions by group; missing group assignment may make models unavailable.