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:
- Copy the Key again from the console.
- Write it again to environment variables or
auth.json. - 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.
