Skip to content

Create your first API key

An API key is your "pass" for calling models. We suggest creating separate keys by purpose (one per device, one per client) to make management, quotas, and loss control easier.

Creation steps

  1. Log in to the console and go to the API Keys page
  2. Click New API Key
  3. Fill in the configuration:
SettingDescriptionSuggestion
NameIdentifier for the purposee.g. laptop-main, codex-cli, cherry-studio
Bound groupThe service groups this key can callChoose based on the models you want to use
Quota limitTotal call quota cap (optional)Recommended for shared devices
Rate limitMax requests per minute (optional)Abuse prevention
Expiration timeAutomatically expires when reached (optional)Recommended for temporary use
  1. Click "Generate"

Important: Save the key immediately

WARNING

The key is shown only once when it is generated. After you close the page, you can no longer view it!

  • Copy it immediately after generating and save it to your password manager
  • If you closed the page without saving it → delete that key and create a new one

Key format

  • Platform keys usually start with sk- (for example sk-xxxxxxxx)
  • In some cases they start with s2a-; both are normal formats

Run a check right after creating it

We recommend using the "First call check" feature on the key page to verify all of the following at once:

  • ✅ Whether the key is valid
  • ✅ Whether the bound group is available
  • ✅ Whether the selected model exists
  • ✅ Whether the balance/subscription quota is sufficient
  • ✅ Whether the API endpoint is correct

Once everything passes, you can go to Configure the client.

Ready to get started?

Sign up and get $0.30 in trial credit; usage is billed per token in real time, so you pay only for what you use.

Sign up freeSee model pricing

For lawful and compliant use only. Please follow our Terms of Service and your local laws and regulations.