Create an API key
Create a key in Console, set its limits, and copy the secret the one time it is shown.
Before you start
- Signed in with your wallet (Connect wallet).
Open Console › Keys
- ScreenConsole
- ActionKeys
- ResultCreate key
Tap Create keyThe key form opens
Example dataKeys belong to your wallet account. You can hold up to 50.
Name it and set limits
- ScreenKey form
- ActionName, limits, models
- ResultCreate
Name it, set limits, createThe secret is shown once
Example dataOnly the name is required. Everything else narrows what a leaked key could do.
| Field | Rule | Default |
|---|---|---|
name | 1 to 64 characters | required |
publicLabel | 1 to 40 of letters, digits, : . _ - and spaces; private hides it | key + last 4 of the prefix |
fundingDefault | allowance_then_balance, balance or allowance | allowance_then_balance |
allowedModels | list of model names, or null for all | null (all) |
limitDailyMicro | whole micro-USD, rolling 24 hours, or null | null |
limitTotalMicro | whole micro-USD over the key lifetime, or null | null |
rpm | 1 to 600 requests per minute | 60 |
Copy the secret once
- ScreenKey created
- ActionCopy
- ResultNever shown again
Copy the secretCopied. It is never shown again
Example dataThe secret is ec_live_ plus 32 random bytes in base58. The backend stores only its SHA-256, so it cannot show it again. If you lose it, create a new key and delete the old one.
Store it in your environment
- ScreenKey row
- ActionPrefix only
- ResultSecret lives in your env
Read the key rowPrefix, limits, funding and spend
Example dataKeep the secret out of source control. Rows in Console show only the prefix, such as ec_live_8f2a.
Reading the gateway URL and model list from the backend.
In the product: Create key