Skip to content

Quick start

These four steps take about five minutes.

Go to api.openpalm.ai 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.

The old address api.openpalmlab.com still works for now.

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

Open Wallet in the console (/wallet) 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.

Open API Keys in the console (/keys) and click Create API Key:

  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.openpalm.ai/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.