Skip to content

I closed the API key dialog before copying it. Can I see the secret again?

No. AISwapLab shows the API secret when it is created and stores a hash rather than a retrievable copy. If you did not save it, identify the unused key by its name and prefix, revoke it, and create a replacement with the required model scopes, expiry and monthly cap. Do not ask someone to recover the original secret.

PROTECT KEYS AND ACCOUNT ACCESSAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Identify the correct entry; Replace only what is needed; Verify without spending.
Workflow diagram: Identify the correct entry → Replace only what is needed → Verify without spending. Read the article for evidence and limits.

The prefix is an identifier, not an authentication value

The key list deliberately shows a short prefix instead of the full credential. Copying that prefix into Authorization will fail. A saved account password is also not an API key. Treat creating the replacement as a controlled configuration change, especially if several server processes might already reference the lost credential.

What to do next

  1. 01

    Identify the correct entry

    Open account API keys and compare the name, creation time and visible prefix. Avoid revoking another application's active key merely because the secret is hidden there too.

  2. 02

    Replace only what is needed

    Revoke the lost entry, then create a clearly named replacement with the narrow model permissions and suitable expiry. Copy the new secret directly into your approved secret storage.

  3. 03

    Verify without spending

    Update the affected server configuration and call GET /models. A successful read confirms that the replacement credential is loaded without generating another image or video.

A concrete example

Illustrative mistake: a developer saves only the displayed prefix after dismissing the creation dialog. The prefix cannot be expanded into the original secret; replacement is the practical recovery path, and the unused old credential should not remain active.

Before you call it ready

  • The intended old entry is identified.
  • The new secret is stored once in private configuration.
  • A read-only authenticated request succeeds.

When to stop or choose another method

If ownership of a key is unclear, inventory the applications before revoking it. Do not paste candidate secrets into public tools or support messages to determine which one works.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation