- Documentation
- Wallet, payments, and usage
Wallet, payments, and usage
Wallet credit, payments and usage.
Add wallet credit
Open Billing to see payment options, limits and history. OxaPay handles automated invoices. GET /v1/funding returns current availability and amount limits.
For API top-ups, send POST /v1/account/top-ups with an owner credential or browser session, a stable Idempotency-Key and a body such as {"amount":"5.00"}. Use decimal USD from 1.00 to 1000.00. A new invoice returns 201. Repeating the key and amount returns 200 with the same invoice.
Recover a payment
Save the invoice key and amount before sending. The account page does this for you. After a lost response, reuse the same key and amount while payments are enabled. If you already have an invoice ID, GET /v1/account/top-ups/{id} works even when new purchases are disabled.
Check Billing for confirmed credit. Wallet credit appears after OxaPay confirms payment. Fees and sandbox payments do not add production credit. GET /v1/account/payments lists confirmed credits with totals and cursor pagination. Contact support about refunds.
New QRIS payments are disabled. For an existing paid QRIS invoice, send its reference and receipt to support.
Check wallet and usage
GET /v1/account/wallet returns balance, held and available as integer microdollar strings. One dollar equals 1,000,000 microdollars. Pending inference leaves available credit unchanged.
The gateway charges for confirmed usage. Standard token charges round up once to a whole microdollar. Check the selected model for any different billing terms. View Usage for daily totals, model totals and request history. API reference.
Catalog price comparisons link to official rates and expire. Savings apply to the listed rate categories and exclude taxes and payment fees. DeepSeek comparisons use its lower off-peak baseline.
HY4 free usage
A confirmed paid wallet top-up unlocks $2 of HY4 usage once per account. Web, CLI and API share that allowance.
Select hy4 and check your remaining allowance in Chat or Billing. HY4 uses its own allowance and stops when it cannot cover a request. Model availability and request limits still apply.
GET /v1/account/model-benefits shows eligibility and the used, pending and remaining amounts in microdollars. HY4 catalog rates measure how much of the $2 allowance each request uses.
Referrals
When invites are open, copy your link from Referrals. Your friend opens the free trial page, then signs up with your invite. They can also enter your code at signup.
If your friend spends $10 from their wallet on API usage within 60 days of signup, you each get $0.50 in referral credit. Paid usage on any model counts. They can try the free trial on the same account.
See your reward in Billing. We apply referral credit automatically to paid API usage on any model.
Need a hand?
Open Palepale Discord for account support. Compare model rates or read about wallet billing.