Currency
If you browse the China site in English, prices are still CNY. Wallets are not shared between the two sites: each has its own balance, transactions, and invoices.
Top-up flow
- The client fetches available providers from
GET /api/payments/providers. - You start a top-up with
POST /api/billing/paymentsand receive a Stripe checkout URL, a WeChat Pay QR code, or an Alipay QR code. - You complete the payment in the provider’s flow.
- The provider sends a webhook to
POST /api/payments/webhook/{provider}; the backend credits the wallet. - You can poll
GET /api/billing/payments/{id}for status.
GET /api/payments/providers to see which ones are live in your environment.
Usage
Usage is metered and reported viaGET /api/billing/usage. Every model call, model download, and GPU-hour is priced against the published rates from GET /api/pricing and drawn from your wallet. You can inspect the resulting transactions via GET /api/billing/transactions.
Invoices and receipts
Every paid payment can be turned into a document you can download and store.- China site (
ariacompute.cn): WeChat Pay and Alipay payments can be turned into an e-invoice (电子发票). Request one withPOST /api/billing/invoicesand download it fromGET /api/billing/invoices/{paymentId}/download. One invoice per payment, idempotent. - International site (
ariacompute.com): Stripe payments have receipts you can pull fromGET /api/billing/receipts/{paymentId}/download.
Authorization: Bearer or the ?token= query parameter so that browser links work directly.