Create and manage AI Router API keys · Galaxium Hosting help
Create gx- keys, set a monthly credit cap per key, restrict keys to certain models, and revoke leaked keys.
Create a key
- Go to AI Router → API keys and click Create API key.
- Give it a Name, for example the app or server that will use it.
- Optionally set a Monthly credit cap. When the key reaches it, it gets
429responses until the next calendar month (UTC). - Optionally turn on Restrict to specific models and pick the models. Other models return
403for this key and are hidden from its/v1/modelslist. - Click Create key. The Save your API key window shows the full key once, plus ready-to-copy
GALAXIUM_API_KEYandOPENAI_BASE_URLlines. Tick I've copied the key somewhere safe to close it.
You can have up to 25 active keys. The list shows only the start of each key, so name keys clearly.
Tip: Use a separate key for each app or server. If one leaks, you revoke just that key, and caps and usage stay separate.
Edit or revoke
- Edit limits changes the name, monthly cap and model list.
- Revoke disables a key immediately. You confirm by typing the key's name. Revoked keys get
401and can't be restored, so create a new key instead.
Keep keys safe
- Never put a key in website JavaScript, mobile apps or public repositories. Call the AI Router from your server instead.
- Store keys in environment variables or a secrets manager.
- Never paste a key into a support ticket or Discord. If you think one was exposed, revoke it right away.
See what each key uses
Usage breaks down credits, requests and tokens By model and By API key for the last 24 hours, 7 days or 30 days. Request logs never contain prompt or response text. You choose how long they are kept under Settings.