Docs
Everything about the counter, in plain words. If a word here and the service disagree, the service is wrong and the status page is the truth.
Quickstart
Three calls are the whole product:
You need a wallet on Robinhood Chain (chain id 4663) holding USDG. No account, no password, no API key — the wallet is the account. Jobs that generate something from a description (image, image-pro, video-5s, voice) require a prompt in the quote; the others do not.
What is live
- The counter — the job catalog below, at fixed prices.
- Paying — quotes, signature payments (EIP-3009) and transfer payments in USDG on Robinhood Chain.
- Receipts — every paid job gets a receipt anchored on-chain.
- Spend caps — a daily limit per wallet, enforced at settlement before any charge.
Job execution is wired provider by provider. A paid job that cannot be delivered yet stays visibly queued (paid_pending_provider) and is never marked delivered without a delivery; if the provider fails, the job moves to refund_pending and is refunded to the paying wallet. See Errors.
Jobs and prices
Prices are fixed per job and already include the counter’s margin. What you see is what the job costs — no meters running.
| Job id | You get back | Price |
|---|---|---|
image | 1 image (PNG) from your text | 0.01 USDG |
image-pro | 1 image (PNG), top quality model | 0.18 USDG |
video-5s | 1 video clip, 5 seconds, from text or image | 0.45 USDG |
voice | 1 audio file, up to 1,000 characters | 0.10 USDG |
remove-bg | Your image with no background (PNG) | 0.03 USDG |
upscale | Your image, higher resolution | 0.01 USDG |
model-3d | 1 3D model (GLB) from one image | 0.03 USDG |
How paying works
Paying is a conversation the whole internet already knows how to have: it is called x402. You ask for a job, the counter answers 402 Payment Required with the exact amount, the token and the address. You pay. The counter checks the chain — not your word — and the job starts.
accepts[] with scheme, network, asset, payTo, maxAmountRequired). The payment itself is posted to /pay as JSON: the X-PAYMENT header flow used by third-party x402 clients is not implemented yet.Two ways to pay, one result:
- By signature — you sign an authorization; the counter’s relayer sends it and pays the gas. You need USDG and nothing else.
- By transfer — you send the exact amount to the counter’s address and hand over the transaction hash.
One payment pays for one job. A payment that doesn’t match a quote — amount below the price, wrong address, or a hash already spent — is never silently kept: unmatched transfers are reviewed and returned by hand.
Pay with a signature
USDG supports EIP-3009 (transfer with authorization): a signed message that lets the counter move exactly the quoted amount, exactly once, to exactly the counter’s address. The EIP-712 domain of USDG on Robinhood Chain is:
Send the authorization and its signature to POST /api/jobs/:id/pay with method: "signature". The counter checks the signer, the amount, the deadline and that the authorization’s nonce has never been used — on its own books and on-chain — then the relayer submits it. If any check fails, nothing moves.
Pay with a transfer
Send at least the quoted amount of USDG to the payTo address from the quote, from the same wallet that asked for the quote. Then call POST /api/jobs/:id/pay with method: "transfer" and the transaction hash. The counter reads the receipt on-chain and matches the Transfer event: token, sender and receiver must match the quote, and the amount must be at least the quoted price. One transaction pays for one job — a hash already spent on another job is rejected.
Spend cap
Every wallet has a daily spend cap at the counter: 5 USDG per day by default. The cap is checked when you ask for a quote and again at settlement, before anything can be charged. Quoting many jobs does not raise the ceiling — reservations are atomic, so an agent acting on its own can never spend more than its owner allowed.
Receipts
Every paid job produces a receipt: the job, the amount, the payer, the payment transaction and a hash of it all. The hash is anchored on Robinhood Chain in a transaction whose input data begins with 0x444f4e45 — the ASCII word “DONE”. Read any receipt at GET /api/receipt/:job_id and verify the anchor yourself on the chain explorer (robinhoodchain.blockscout.com): if the anchor isn’t there, the job didn’t happen.
API reference
| Call | What it does |
|---|---|
GET /api/health | Service status, chain, asset, mode and cap. |
GET /api/jobs | The catalog: job ids, what each delivers, price in USDG. |
GET /api/jobs/:job_id | The state of one job: status, amount, timestamps, delivery output and a link to its receipt. |
POST /api/jobs/:job_id/quote | Body { "wallet": "0x…", "prompt": "…" }. prompt is required for image, image-pro, video-5s and voice, and capped at 1,000 characters; longer returns 400 prompt_too_long. Answers 402 with the payment requirements (accepts: signature and transfer options) and a job_id. Quote lives 600 seconds. |
POST /api/jobs/:job_id/pay | Body: { "method": "signature", "authorization": {…}, "signature": { "v": …, "r": "0x…", "s": "0x…" } } or { "method": "transfer", "txHash": "0x…" }. On success: the job and its receipt. |
GET /api/receipt/:job_id | The public receipt for a paid job: payment transaction, anchor, refund if any, and the delivered file URL (output) when the job is delivered. |
Amounts on the wire are integers in micro-USDG (USDG has 6 decimals): 10000 is 0.01 USDG. Job states: quoted → paid → delivered; paid_pending_provider while a delivery is queued; expired if the quote ran out; verified_unsettled if a signature was verified while no relayer was online (nothing was charged); refund_pending and then refunded when a job can’t be delivered.
Errors, limits, retries
402on quote is not an error — it is the price tag. Pay it and continue.prompt_required— the job generates something from a description; sendpromptwith what you want.prompt_too_long— the prompt is over 1,000 characters. Shorten it; it is never truncated silently.quote_expired— the 10 minutes ran out. Ask for a new quote; prices don’t change under you.daily_cap_exceeded— the wallet hit its daily cap. The cap resets at midnight UTC.payment_not_verified— the chain doesn’t show a matching payment. Check the amount, the token and the address, then retry with the same quote while it lives.nonce_already_used/tx_already_used— that payment already paid for a job. One payment, one job.- Failed jobs — a paid job that cannot be delivered moves to
refund_pending; the USDG goes back to the paying wallet and the receipt shows the refund transaction. Verify it on-chain like any other payment.
FAQ
What do I need to buy a job? A wallet on Robinhood Chain with USDG in it. That’s all — no account, no card, no subscription. If you pay by signature you don’t even need gas, because the relayer submits the transaction.
What is USDG? USDG (Global Dollar) is a dollar stablecoin on Robinhood Chain. The contract is 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168, it has 6 decimals, and it supports EIP-3009 — which is what makes gasless payment-by-signature possible.
Is the token live? No. The counter is live and charges USDG. The token launches on Pons; its contract will be published on the website and on the official X at launch. Nothing here promises a price, a return, or a supply.
What if a job can’t be delivered? The job is marked refund_pending and the USDG goes back to the paying wallet; the receipt then shows refunded with the refund transaction. Nothing is deleted or quietly re-labelled — the state is public.
How does the spend cap work? Every wallet has a daily cap (5 USDG by default). It’s checked at settlement, before anything is charged, and reservations are atomic — so quoting fifty jobs doesn’t let an agent spend past its leash. The cap resets at midnight UTC.
Can I use this from a script? Yes — plain HTTP + JSON, three calls. The API reference above has the full surface, including the EIP-3009 authorization shape and the transfer path.