Reseller Program
Run your own AI API business on zrouter: get invited, fund a USD quota, and mint Token Plans for your customers.
The reseller program lets you run your own AI API business on top of zrouter. You get an invited reseller account, fund a USD quota, then mint Token Plans against that quota for your own customers. You never have to provision models or operate infrastructure — the upstream providers and the gateway stay fully managed by zrouter.
How the program works#
- Get an account. The reseller program is by invitation only. Contact [email protected]. Invited resellers start
active. - Fund your quota. Add USD quota through QRIS, SumoPod (QRIS without a fee), or crypto (USDC/USDT on Solana, or USDT/USDC on BNB Smart Chain).
- Mint Token Plans. Mint a Token Plan tier to any zrouter user by email, paid from your quota.
- Issue keys. Create an API key for a customer through a separate endpoint — reveal-once, exactly like your own keys.
Getting an account#
The reseller program is by invitation only. There is no public signup endpoint — contact [email protected] to be invited. Invited resellers start in active status and can fund quota and mint right away.
Account status#
| Status | Meaning |
|---|---|
pending | Legacy status, no longer created. Invited resellers start active. |
active | Normal working status. You can fund quota, mint Token Plans, and manage customers. |
blocked | Access suspended. A blocked reseller cannot log in, and a still-live token is rejected with 401, until an admin unblocks the account. |
Funding your quota#
Your quota is a prepaid USD balance. Every mint debits this balance, so you only spend what you have already funded. There are four top-up methods, and the credited quota differs slightly between them. The rate is Rp10,000 = $1 of quota. Methods: qris (QRIS via Tako, with a fee), sumopod (QRIS without a fee), crypto (USDC/USDT on Solana, 1:1), and crypto_bep20 (USDT/USDC on BNB Smart Chain, 1:1, with the body field token_kind = usdt or usdc). Top-up amounts are not capped by the application; the payment provider may still reject an amount, which is returned as a provider error.
QRIS top-up#
QRIS top-up uses a fixed conversion rate of Rp10,000 per USD. The credited quota equals the principal amount_idr you pay; a separate 5% processing fee is added on top and is not credited to your quota — your customer-facing total is the principal plus the fee. Orders expire after 15 minutes, and credit is applied only after a confirmed payment.
Crypto top-up#
Crypto top-up accepts USDC and USDT on Solana (crypto) or on BNB Smart Chain (crypto_bep20), credited 1:1 in USD. The credited quota equals the amount actually received at confirmation — no fee is deducted from the quota. You pay the network transaction fee to the blockchain, not to zrouter.
Minting Token Plans#
A mint is the programmatic operation that grants a Token Plan tier to one of your customers. The customer is a real zrouter user, addressed by email. The operation is idempotent and atomic — see Quota & Minting for the exact replay and atomicity semantics.
A plan is minted to the customer's email, not to a key. One email is one shared quota: every customer should use their own unique email — you may invent those addresses yourself (one reseller uses the pattern mp-<random>@mp.hemattoken.id). If several of your customers share one email, their quotas mix into one.
An API key is not minted. You create a customer's API key through a separate endpoint, and — exactly like your own keys — the secret is revealed once and never stored.
Atomicity guarantee#
Every mint is applied as a single atomic unit: the quota debit and the Token Plan grant either both happen, or neither does. There is no intermediate state where your quota is debited but the customer receives nothing, or vice versa. This guarantee holds even if the request is retried or duplicated — the operation is idempotent by design.
Reseller API keys#
For server-to-server integrations you no longer need to re-login every 24 hours. Create a persistent reseller API key in the dashboard (Account → API keys). The key has the format zrr_<key_id>_<secret>, is sent in the same Authorization: Bearer header as the login token, and only its SHA-256 hash is stored — the full key is shown once at creation, so save it immediately.
- A key can call every
/api/reseller/*endpoint except changing the password and managing the keys themselves — those need a signed-in session (a key gets403 session_required). - A key survives password changes: changing your password only signs out login tokens, keys keep working.
- Blocking the account, blacklisting the email, revoking the key, or its optional expiry date rejects the key immediately — the check is made on every request.
- You may hold up to 10 active keys, each with a name; an optional expiry date can be set at creation.
- Keys are created and revoked only from the dashboard with a signed-in session — a key can never create another key.
- zrouter admins can see your key list (never the key values) and revoke a key with a reason.
Limits#
There is no rate limit on mint or top-up, no maximum top-up amount, and you may create any number of API keys for a customer. Only login is limited: 5 attempts per minute (429 rate_limited).