Suanlimao
← Back to all tutorials

API keys

Create and manage API keys

Create a key, copy the base URL, edit and revoke — all in one place.

About 6 minFor:Anyone who needs a key for a tool or script

Before you start

  • A funded account (you can create keys without balance, but calls return 402)
  • Decide who uses it: one key per tool means you can revoke just that one

Step 1 · STEP 0x01

Create a key

API keys
1

Name

e.g. my laptop
2

Budgets (USD, empty = unlimited)

5 hours / 1 day / 7 days / monthly / total
3
Create key
Diagram — the wording matches the real page, the layout may differ slightly
  • Name: something recognisable, like “work laptop Cursor”.
  • Budgets: optional, they cap what one key can spend, see the limits tutorial.

Create a key →

Step 2 · STEP 0x02

Copy the full key right away

API keys

Copy it now — this is the only time the full key is shown.

<the full key appears here once>

1
Copy
Diagram — the wording matches the real page, the layout may differ slightly
The full key is shown only once, at creation. Missed it? Revoke it and create a new one.
Store the key in a password manager or an environment variable; never paste it in chats or public repos.

Step 3 · STEP 0x03

Copy the base URL and config snippets

API keys

Base URL

https://api.suanlimao.shop/v1

1
Copy
2
Diagram — the wording matches the real page, the layout may differ slightly

The page below the list has the base URL and ready-made snippets; copy one and replace <YOUR_API_KEY> with your key. The Chinese interface shows both the accelerated address and the alternative domain.

Step 4 · STEP 0x04

Manage existing keys

API keys

List

Name · prefix · usage · last used · status

1
Edit
2
Revoke
Diagram — the wording matches the real page, the layout may differ slightly
  • Edit: rename, change budgets and limits.
  • Revoke: requests using this key fail immediately, and it cannot be restored.
  • “Last used” helps spot keys you no longer need — revoke the stale ones.
Suspect a leak? Revoke it now, create a new one and look for unknown requests on the Usage page.

✓ How to tell it worked

  • The new key shows as Active; after one request its Last used time updates.

FAQ

How many keys can I create?

There is a limit; the page tells you the number.

I forgot to save the key.

It cannot be shown again. Revoke it and create a new one.

I cannot create keys.

A restricted account cannot create keys; the banner on the page explains and tells you what to do.

Related tutorials

Still stuck?

Read the troubleshooting tutorials first. If that does not help, open a ticket with the request_id, time, model and the exact error (never paste your key).