Apps & API keys
Every app gets a dedicated API key, and your programs authenticate via X-API-Key. If a key is ever compromised, reset it with one click and the old key is revoked immediately.
Register an app to get a dedicated API key and call platform capabilities with unified points. Pay per call, use idempotent charging, and check your balance in real time — integrating powerful capabilities is as simple as one HTTP request.
Users and developers share one account system; points work both as a rechargeable balance and directly as the billing unit for API calls.
Every app gets a dedicated API key, and your programs authenticate via X-API-Key. If a key is ever compromised, reset it with one click and the old key is revoked immediately.
There is a single point wallet across the platform with a real-time balance. Once points are credited, you can spend them on calls without switching between multiple quotas.
Points are deducted atomically on every call. Repeating a request with the same request_id never charges twice; if the balance is insufficient the API returns code 402 for graceful fallback.
Both endpoints below are live now. Call them from your programs with your app's API key.
# Query point balance curl -X GET "https://trade.pianam.cn/api/v1/open/quota" \ -H "X-API-Key: YOUR_APP_KEY"
# Deduct points; repeating with the same request_id never charges twice curl -X POST "https://trade.pianam.cn/api/v1/open/quota/consume" \ -H "X-API-Key: YOUR_APP_KEY" \ -H "Content-Type: application/json" \ -d '{"amount": 1, "request_id": "UNIQUE_REQUEST_ID"}'
From sign-up to your first request — everything happens in the developer console.
Register in the console and create an app. A dedicated API key is generated for that app automatically.
Choose a point pack under “Buy points”, or top up with a redeem code. Points are credited to your balance instantly.
Call the open endpoints with X-API-Key in your program, or verify online first with the console's API tester.
No complicated plans — you only pay for the calls you make.
1 CNY = 100 points, 1 point = 1 API call (0.01 CNY per call).
Points can only be consumed within the platform; they are not withdrawable as cash and not transferable between users. See the console for details.
During the private beta, contact us for trial points and one-on-one integration support.
Open the developer console