New APINew API
User GuideInstallationAPI ReferenceAI ApplicationsSkillsHelp & SupportBusiness Cooperation
User Guide

API Keys

API keys are credentials for calling New API. Create and manage each key by setting quotas, models, groups, and source restrictions.

Click 'API Keys' in the left navigation, or directly visit /keys. The page displays information such as key name, masked key, enabled status, quota usage, and group, and supports filtering, copying, editing, enabling/disabling, and batch deletion. The row menu also allows copying connection information, opening admin-configured chat presets, and sending the key to supported client integrations.

API密钥信息页

Create API Keys

  1. Open 'API Keys' and click 'Create API Key'.
  2. Fill in the key name to easily distinguish applications or environments.
  3. Set quota, expiration time, model restrictions, IP restrictions, and groups as needed.
  4. After saving, view and copy the complete key from the list.

创建API密钥页

Configuration Item Description

SettingFunction
NameAPI Key Name (recommended to name by purpose, e.g., "Production Environment", "Test Use")
GroupSpecify the channel group used by this token
Auto Group OrderOnly displayed when the group is auto; can inherit Root's global order, or set key-level order.
Cross-Group Retry SwitchWhen enabled, if the current group channel fails, it will attempt the next group's channel in order.
Expiration TimeRefuse to use this key after expiration
QuantityMultiple API keys can be created at once (a random suffix will be added to the name)
QuotaRestrict the quota that this key can consume
Unlimited Quota SwitchEnable unlimited quota for this API key when turned on
Model RestrictionsRestrict this token to call only specified models; leave blank for no restrictions
IP WhitelistSupports filling in IP or CIDR line by line; leave blank for no restrictions; should be used with trusted reverse proxies/CDNs

API keys are equivalent to passwords. Do not submit the complete key to code repositories, screenshots, logs, or chat tools; if you suspect a leak, immediately delete it and create a new key.

View and Copy API Keys

In the API key list, click the masked key to view and copy the complete value as prompted on the page. The complete key is a sensitive credential, and viewing it may require additional security verification.

'Copy Connection Info' will copy the key and platform address as application import information; click the target preset chat application in the left sidebar 'Chat', and the browser will attempt to launch the installed chat application and automatically jump to fill in the configuration information. 查看API密钥页

Edit API Keys

In the API key list, find the target key, click the 'Edit' button on the right to modify the key's configuration options (excluding the API key itself).

编辑API密钥页

Enable, Disable, and Delete API Keys

You can enable, disable, or delete keys in the list row operations; multiple rows can be selected for batch deletion. Disabling retains the configuration and stops calls, while deleting is irreversible.

删除API密钥页

After deletion confirmation, the API key will immediately become invalid and cannot be recovered. Before deleting, please confirm the selected key to avoid accidentally deleting production keys.

How is this guide?

Last updated on