TOKENOPENTOKENOPEN
User GuideAPI ReferenceHelp & Support
Quick Start

Create an API Key

Create and manage your API keys for calling platform APIs

An API key is your credential for calling platform APIs. Each key can be independently configured with an expiry date, credit quota, and model permissions — making it easy to manage different projects or environments separately.

After logging in, click "API Keys" in the left navigation bar to enter the management page.

Key List

API Key list page

The key list shows all keys created under your account. Each record includes:

FieldDescription
NameThe label you assigned to the key
StatusActive / Disabled / Expired
QuotaThe credit limit configured for this key
ExpiryThe key's expiration date; "Permanent" if it never expires
IP RestrictionIP addresses allowed to use this key
ActionsCopy, Edit, Delete

Create an API Key

Step 1: Open the Create Dialog

Click the "Create API Key" button in the top-right corner of the key list page.

Step 2: Fill in Basic Information

Enter a key name in the dialog — descriptive names like "Production" or "Test Project" make it easier to manage later.

Create key dialog

Step 3: Configure Advanced Options as Needed

OptionDescription
Expiry DateSet the key's expiration date; leave blank for no expiry
Credit LimitCap the maximum credits this key can consume; the key deactivates when the limit is reached
Unlimited CreditsWhen enabled, the key is not subject to a credit cap (still constrained by the account-level total)
GroupSelect the pricing group for this key (created by an admin in the backend); different groups carry different price multipliers
Model RestrictionsRestrict this key to specific models; leave blank for no restrictions
IP WhitelistRestrict which source IPs can use this key; leave blank for no restrictions

Step 4: Save the Key

Click "Save Changes" to create the key. You can then view it in the key list.

Do not commit API keys to code repositories or share them with others to prevent account compromise.

Copy a Key

In the key list, click the Copy button on the right side of any record to automatically copy the key to your clipboard.

Keys can be copied and viewed in the list at any time.

Edit a Key

Find the target key in the list and click "Edit" to modify the following settings:

  • Name
  • Expiry date
  • Credit limit
  • Model restrictions
  • IP whitelist

The key string itself cannot be changed. To get a new key value, delete the key and create a new one.

Disable & Enable a Key

You can toggle a key's enabled/disabled state in the edit dialog:

  • Disabled: The key immediately stops working for API calls, but its configuration and usage history are preserved
  • Enabled: The key resumes normal operation

Delete a Key

Find the target key in the list, click "Delete", and confirm.

Deleted keys are immediately invalidated and cannot be recovered. All applications using this key will lose API access. Ensure all related applications have switched to another key before deleting.

Using a Key to Call APIs

After creating a key, pass it as a Bearer Token in your application or request headers:

Authorization: Bearer sk-xxxxxxxxxxxxxxxx

For specific API endpoints and parameters, see the API Reference.

Last updated on