UnieAI Studio

API keys, project or personal account scope, and the Default Key

Obtain a Default Key or create an application key, verify model access, and diagnose authentication failures.

Choose the service before choosing a key. Background KB parsing requires the system Default Key. Agent chat uses an appropriate project key, subject to model permissions and balance.

1. Open the target project or personal account's keys

  1. Select the personal account or project at the top left.
  2. Open API Keys in the sidebar.
  3. Verify the current project or personal account and key names.
  4. Distinguish the system Default Key from manually created keys.
ServiceKey
/api/parse/jobs and its status/result endpointsTarget project or personal account's system Default Key
Agent /v1/chat/completionsProject key with access to that agent model
Synchronous /api/parse/pdf and /api/parse/imagePersonal user key with the configured VLM access; different rules from background jobs

A personal Default Key does not write into a project, and a project key does not become a personal key.

 Locate the system Default Key.  Use its copy action to obtain the full secret; screenshots keep secrets masked.
Locate the system Default Key. Use its copy action to obtain the full secret; screenshots keep secrets masked. Click to enlarge

2. Obtain and verify the Default Key

  1. Use the Default Key row's reveal/copy action to obtain its full value.
  2. Confirm it is enabled and unexpired.
  3. Store it in backend environment variables; the masked display is not a usable secret.
  4. Upload a small file using the parsing tutorial, retain the job ID, and poll.

Checkpoint: upload returns 202. If a 403 explicitly requires Default Key, verify the key type. Naming an ordinary key “Default Key” does not make it system generated.

3. Create an application key

  1. Click Create key.
  2. Enter a purpose-specific name such as docs-agent-dev.
  3. When restricting models, select the agent model ID, not only its base model.
  4. Configure expiry, rates, or quotas where offered by the current UI.
  5. Click Generate, then copy and save the full value on the success screen.
  6. Test it against the target agent.

Checkpoint: the agent request returns 200 and an assistant answer. Ordinary key creation does not enable Default Key-only endpoints.

 Name the application key.  Check model scope and limits.  Review before generating.
Name the application key. Check model scope and limits. Review before generating. Click to enlarge

4. Inspect usage and failures

  1. Select the correct project or personal account and open Usage.
  2. Find the request by time and model.
  3. Inspect status, error, and request ID.
  4. Resolve project or personal account balance separately from key rate or model restrictions.
SymptomCheck
401Full secret, Bearer header, disabled/expired state
403Key type, agent permission, model allowlist, project or personal account
404 for KB/documentKey project or personal account and actual resource IDs
429Rate/usage limits; follow the response's retry guidance
Agent settings ignoredAgent model ID rather than the base model name

Regeneration or disabling affects applications using the key: update their environment configuration. Do not include full secrets in screenshots, frontend source, or public documentation.