In the browser
Go to the account page, connect a wallet extension and press Sign and create key. The key is shown once. You can keep it in that browser for the playground.From a script or an agent
Two calls. The challenge is a short string that expires.<Bytes>...</Bytes> before signing. The website signs that way; a script usually signs the bare bytes.
The response includes the key’s id and its payer_mode.
Payer mode of a key
A new key starts ingrant mode: your wallet pays on chain, which needs the one-time grant. Until you sign it, chat requests with that key fail with 402 grant_required. Either sign the grant on the account page, or switch the key to credit so the router pays from your prepaid balance:
List and revoke keys
409 too_many_keys.
Without a key
The directory endpoints (/v1/miners, /v1/models, /v1/stats, /health) need no key. Chat completions need one, unless the server runs an anonymous demo mode. That mode is off unless the operator turns it on; it is limited to devnet, has a small rate limit, and the router pays. Not live yet