Account management API
· Feature · NagaAI Team
You can now manage your NagaAI account from code: API keys, balance and usage, without opening the dashboard.
What you can do
- API keys. Create, rename, enable, disable and delete keys, each with its own credit limit.
- Balance. Read your balance before it runs low.
- Usage. Read spend, requests and tokens by model, by day and by key.
What it is for
- Alert your team before the balance runs out.
- Keep separate keys for production, staging and development, each with its own limit.
- See which project or team spends the most.
Access
These calls take a provisioning key, a separate key with admin rights. Create one on the Provisioning keys page and keep it out of your apps.
Get started
- Account and organizations covers each call with examples.
- API keys lists the key fields and limits.