Skip to content

Quick start

These four steps take about five minutes.

Go to api.openpalmlab.com and click Sign up in the top-right corner. You register with an email address, confirm it with a verification code, and complete a human-verification check.

By signing up you agree to the Terms of Service and Privacy Policy.

Open Wallet in the console (/console/topup) and add funds with one of the online payment methods shown on the page. Your balance is held in US dollars (USD). If you have a redemption code, you can redeem it on the same page.

  • Each request is charged against your balance based on actual usage. Every charge is listed on the Logs page.
  • Per-model prices are on the pricing page. See Models and pricing for how billing works.

Open Tokens in the console (/console/token) and click Add token:

  1. Give it a name you will recognize, for example laptop-claude-code.
  2. Choose a group. If you are not sure, keep the default. The differences between groups are explained in Tokens and groups.
  3. Optionally set a spending limit, expiry date, model allowlist or IP allowlist. You can also leave all of these at their defaults.
  4. Save, then copy the token from the list. It is a string that starts with sk-.

Replace sk-xxxx with your token, and replace YOUR_MODEL with the name of any model on the pricing page that is available in your token’s group:

终端窗口
curl https://api.openpalmlab.com/v1/chat/completions \
-H "Authorization: Bearer sk-xxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL",
"messages": [{"role": "user", "content": "Hello, who are you?"}]
}'

If the response is JSON that contains choices, you are connected. If you get an error, see Troubleshooting.