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:

1 · POST /api/jobs/image/quote { "wallet": "0xYourWallet", "prompt": "what you want, up to 1,000 characters" } → 402 with the exact price in USDG and where to pay. Good for 10 minutes. 2 · POST /api/jobs/job_xxx/pay pay by signature (EIP-3009) or by transfer. → the payment settles and the job starts. 3 · GET /api/receipt/job_xxx (or GET /api/jobs/job_xxx for its state) → the public receipt, anchored on-chain, with the delivery output.

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

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 idYou get backPrice
image1 image (PNG) from your text0.01 USDG
image-pro1 image (PNG), top quality model0.18 USDG
video-5s1 video clip, 5 seconds, from text or image0.45 USDG
voice1 audio file, up to 1,000 characters0.10 USDG
remove-bgYour image with no background (PNG)0.03 USDG
upscaleYour image, higher resolution0.01 USDG
model-3d1 3D model (GLB) from one image0.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.

The 402 payload follows the x402 shape (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.
Quote → 402 (amount, USDG, payTo, 10 minutes to pay) → you pay by signature or by transfer → the counter verifies on-chain and settles → the job runs → delivery + receipt

Two ways to pay, one result:

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:

name: "Global Dollar" · version: "1" · chainId: 4663 verifyingContract: 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 (USDG)

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

CallWhat it does
GET /api/healthService status, chain, asset, mode and cap.
GET /api/jobsThe catalog: job ids, what each delivers, price in USDG.
GET /api/jobs/:job_idThe state of one job: status, amount, timestamps, delivery output and a link to its receipt.
POST /api/jobs/:job_id/quoteBody { "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/payBody: { "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_idThe 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

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.