1
Check which providers are enabled
wechat and alipay instead of stripe.2
Start a payment
Call Stripe returns a
POST /api/billing/payments with a session Bearer token.redirect_url (Checkout). WeChat Pay and Alipay return a qr_code_url you render as a QR code for the payer.3
Complete the payment
- Stripe: open
redirect_urland pay with a card. - WeChat Pay / Alipay: scan the QR with the corresponding app on your phone.
4
Wait for confirmation
The provider calls
POST /api/payments/webhook/{provider} and the backend credits your wallet. Poll GET /api/billing/payments/{id} until status becomes paid.5
Confirm your wallet balance
Currency is fixed by the site domain: USD on
.com, CNY on .cn. You cannot fund a .com wallet in CNY or vice versa.Currency
The wallet currency is fixed by the site domain, regardless of the UI language you browse in:
Wallets are not shared between the two sites: each has its own balance, transactions, and invoices. If you browse the China site in English, prices are still CNY.
Usage billing
After a top-up, every model call, model download, and GPU-hour is priced against the published rates and drawn from your wallet balance.GET /api/billing/usage meters and reports that usage, and GET /api/billing/transactions lists the resulting transactions.
Related
Next steps
- Download the invoice or receipt for the payment.
- Check usage with
GET /api/billing/usage.