API key management

API keys are credentials for calling APIs. Each key can be independently configured with permission scope and quota limit. Click "API Keys" in the left navigation, or visit /keys directly.

The API key list displays all created keys, including name, status, used quota, remaining quota, expiration time and other information.

API key list

Create API key

Basic configuration

Open the create pop-up window

Click the "Create API Key" button in the upper right corner of the API key list page, and a creation pop-up window will pop up.

Fill in the key name

Enter the key name (it is recommended to name it according to the purpose, such as "production environment" and "test use")

Create API key

Advanced configuration options

Configuration itemsDescription
Expiration timeSet the validity period, leave it blank or set to -1 to never expire
QuotaLimit the maximum quota that the API key can consume. It will automatically expire if exceeded.
unlimited quotaIt is not subject to quota restrictions after being enabled (still subject to the total account quota)
Model limitationsLimit the API key to only call the specified model. Leave it blank to indicate no restriction.
IP whitelistLimit the source IPs that are allowed to use this API key. Leave blank to indicate no restriction.
GroupSpecifies the channel grouping used by this API key

Save API key

Click "Save Changes" to complete the API key creation process. You can copy and use the API key in the token list.

API key display

Edit API key

Find the target key in the API key list and click the "Edit" button on the right to modify the configuration options of the API key (excluding the API key itself). Modifiable options include expiration time, quota, model restrictions, IP whitelist and grouping, etc.

Delete API key

Find the target key in the API key list and click the "Delete" button on the right. After confirmation, the API key becomes invalid immediately and cannot be recovered.

ℹ️ Best Practices
  • Create separate API keys for different uses (production, testing, development)
  • Set reasonable quota caps for each API key to prevent accidental overconsumption
  • Regularly clean up API keys that are no longer used
  • Configure IP whitelisting for production API keys to improve security