Skip to content

Wallet API /api/wallet ​

📝 TODO — this English page is a skeleton. The structure mirrors the Chinese page, which is fully written.

MethodPathDescription
GET/api/walletBalance, last 50 transactions, available packs
POST/api/wallet/topupTop up (body { "amount": 5 })
GET/api/wallet/usageLast 100 API requests
Pack (USD)Credits
51000
204400
5011500

Sandbox top-up

Top-ups currently add credits directly and do not involve a payment provider — no money is charged. Responses carry sandbox: true. A real integration replaces this with an order plus a payment callback.

Every ledger entry records balanceAfter, so the account balance always reconciles against the sum of transactions.

ModelFold — one API for all the best AI models.