Quick start
These four steps take about five minutes.
1. Sign up
Section titled “1. Sign up”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.
2. Add funds
Section titled “2. Add funds”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.
3. Create a token (API key)
Section titled “3. Create a token (API key)”Open Tokens in the console (/console/token) and click Add token:
- Give it a name you will recognize, for example
laptop-claude-code. - Choose a group. If you are not sure, keep the default. The differences between groups are explained in Tokens and groups.
- Optionally set a spending limit, expiry date, model allowlist or IP allowlist. You can also leave all of these at their defaults.
- Save, then copy the token from the list. It is a string that starts with
sk-.
4. Send your first request
Section titled “4. Send your first request”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.
Next steps
Section titled “Next steps”- All available endpoints: Endpoints and authentication
- Calling the API from code: OpenAI / Anthropic SDKs
- Using coding tools: Claude Code, Codex CLI
- Checking your remaining balance: Balance and usage