Create and manage API keys
Key permissions, storage and invalidation.
Prepare your API key
Sign in at /login, then create or copy a HanRouter API key at /keys. Your password and browser session token are not API keys. Check key validity, model group permissions and Dashboard balance.
Store the complete key in the server environment variable HANROUTER_API_KEY. Keep it out of browser code, public repositories and URL parameters.
When a key fails
Check status, expiry, quota and group permissions in /keys. If exposed, disable the old key, create a new one and update your app environment. Do not send complete keys to support.