Skip to content

User Guide

Token Management

Token Management

Tokens are API credentials. Each token can have its own permissions and quota limits.

Token list

The token list shows all created tokens, including name, status, used quota, remaining quota, and expiration time.

Create a token

Basic settings

  1. Click Create Token in the top-right corner of the token list page
  2. Enter a token name. Use a purpose-based name such as Production or Test

Advanced options

OptionDescription
Expiration timeSet the validity period. Empty or -1 means never expires
Remaining quotaLimit the maximum quota this token can consume. It becomes invalid after exceeding the limit
Unlimited quotaRemove token-level quota limits while still constrained by the account balance
Model limitRestrict this token to specific models. Empty means no restriction
IP allowlistRestrict allowed source IP addresses. Empty means no restriction
GroupSpecify the channel group used by this token

Save the token key

After clicking Submit, the dialog displays the full token key. Copy and save it immediately. The full key cannot be viewed again after closing the dialog.

Token key is shown only once

The full token key is displayed only when it is created. Save it immediately. It grants API access, so do not share it or commit it to a code repository.

Edit a token

Find the target token in the list and click Edit to change its settings, excluding the token key itself.

Delete a token

Find the target token in the list and click Delete. After confirmation, the token becomes invalid immediately and cannot be restored.

Current sectionToken Management

LAYSO AI API 文档