UnieAI Studio

Creating and Managing API Keys

Create an API Key, select available models, set rate and usage limits, and review usage and logs.

This guide explains how to create and manage an API Key in UnieAI Studio. Every section follows the on-screen workflow and requires no programming.

Open the API Keys Page

Switch to the personal space or organization workspace where the API Key will be used.
In the sidebar, go to Workspace → API Keys, or open API Keys.
Confirm that the correct workspace is selected before creating or managing a key.

Personal and organization API Keys are managed separately. A key created in one workspace will not appear after switching to another workspace.

Understand the Page

The list shows the following for each API Key:

  • Name and partially hidden key
  • Status, such as Active, Disabled, Shared, or Protected
  • Any configured rate or usage limits
  • Expiration time
  • Available management actions

Create, edit, regenerate, disable, and delete actions appear only when you have management permission.

Create an API Key

Open the Creation Dialog

On API Keys, select Create Key in the upper-right corner.

Enter a Name and Expiration

FieldRequiredWhat to enter
Key NameYesUse letters, numbers, underscores, or hyphens; up to 30 characters. Example: support-chat-prod
ExpirationNoChoose the date and time when the key should stop working; leave blank for no expiration

Create separate keys for different users, projects, or environments instead of sharing one key across multiple purposes.

Select Available Models

  1. Expand Model Access.
  2. Search for a model by name.
  3. Select the base models or CMs that this API Key may use.
  4. Review the selected model count.

Selecting no models means that no additional model restriction is applied. If the key is intended for one CM, select only that CM.

Set Rate and Usage Limits (Optional)

Expand Rate Limits & Quota. Leave any limit you do not need blank.

Requests per Second

Enter the maximum number in Maximum Requests per Second to prevent excessive use over a short period. Leave it blank for no per-second limit.

Token Quota

  1. Enter the available amount in Total tokens.
  2. Enter the reset time in Recovery Time (minutes). The minimum is 1 minute.
  3. Set Total tokens before entering a recovery time.

Period Limits

Expand Per Minute, Per Hour, Daily, Weekly, or Monthly and configure any applicable fields:

FieldPurpose
Maximum RequestsLimits request count during the period
Maximum TokensLimits Token usage during the period
Maximum ImagesLimits images processed during the period
Maximum Audio SecondsLimits audio duration processed during the period
Maximum Cost (USD)Limits spending during the period; minimum 0.01 with up to two decimal places

Multiple periods can be configured on the same key. When any limit is exhausted, the key must wait for that period to reset before continuing.

Generate and Copy the API Key

  1. Review the name, models, and limits.
  2. Select Generate.
  3. In the API Key secret dialog, select Copy Secret.
  4. Store the key securely or provide it to the designated application administrator.

Do not put a complete API Key in public documents, messages, screenshots, or version control.

Edit Models, Rates, and Quotas

Find the API Key in the list.
Select ⋯ → Edit Limits.
Select or clear models in the model list.
Change the per-second limit, Token quota, or period limits. Clear a field to remove that limit.
Select Save and wait for the confirmation message.

Edit Limits does not replace the API Key. Chat and other connected applications can continue using the existing key.

Review Usage and Logs

Find the target API Key.
Select ⋯ → View Usage.
When the right-side panel opens, confirm the key name and status.

Basic Information

The panel shows the key status, last-used time, creation time, and expiration. An empty last-used value usually means the key has no usage records yet.

Usage Summary

ItemDescription
RequestsNumber of recorded uses
TokensTotal Token usage
Average TokensAverage Tokens per use
SpendTotal recorded cost

Remaining Quota

When period limits are configured, the panel shows the used amount, configured maximum, remaining amount, and progress for each applicable period. If usage is close to a limit, verify that it is expected before increasing the limit, waiting for a reset, or disabling the key.

Recent Usage Logs

Each record shows:

  • Model used
  • Usage time
  • Status
  • Token usage
  • Cost for that record
  • Request reference information for administrators

Up to 20 records appear per page. Use the page numbers and previous or next buttons to view additional records.

This panel is for reviewing the key's time, model, status, and usage. It does not show the user's complete conversation content.

Copy an Existing API Key

If Copy Secret appears beside a key:

  1. Find the API Key.
  2. Select Copy Secret.
  3. Paste it directly into the intended settings page or give it to the designated administrator.

If the button does not appear, confirm your management permission. Use Regenerate Secret when the key must be replaced.

Regenerate a Secret

Use regeneration when a key may have been exposed, during a handover, or as part of regular key rotation.

Select ⋯ → Regenerate Secret for the target key.
Read the confirmation and continue.
Select Copy Secret in the dialog and store the new key.
Replace the old key in Chat or other applications and test again.

The old key stops working immediately after regeneration. Identify every place that must be updated before continuing.

Enable or Disable a Key

  • Temporarily stop a key with ⋯ → Disable.
  • Restore it with ⋯ → Enable.
  • Disabling a key preserves its name, limits, and usage records.
  • Before enabling it again, check its expiration and remaining quota.

Delete an API Key

Confirm that Chat or other applications no longer use the key.
Select ⋯ → Delete.
Verify the key name in the confirmation, then delete it.

Deletion cannot be undone. Use Disable if the key should only be stopped temporarily.

Default Keys

Keys marked Default and Protected are provided by the platform. They:

  • Allow usage details to be viewed
  • Can be regenerated when necessary
  • Cannot be disabled or deleted
  • Do not allow model, rate, or quota limits to be edited

For Chat or another application, create a separate standard API Key with a clear name and appropriate restrictions.

Permissions

UserAvailable actions
Key owner in personal spaceCreate, view, edit, regenerate, enable, disable, and delete their keys
Organization Creator or CollaboratorCreate and manage organization API Keys
Organization UserView organization keys and usage but cannot edit or delete them
Platform administratorManage organization API Keys within their administrative scope
Pending userCannot create a personal API Key

If an action is missing, check the current workspace and your permissions.

  • Create separate keys for different projects, environments, and integrations.
  • Select only the models needed for that purpose.
  • Start with lower limits and adjust them after reviewing usage.
  • Review recent usage and remaining quota regularly.
  • Disable an unused key before deleting it.
  • If exposure is suspected, regenerate the key immediately and update every place that uses it.

Common Questions