API reference
The bridge serves accounts, keys and the market. Inference itself goes to the gateway.
heura targets Robinhood Chain mainnet (chain id 4663) and takes payment in USDG. It is not launched and nothing has been audited. The API address is https://api.useheura.com/v1 and answers today, but only one seller (run by heura) is behind it so far, so do not send real funds until launch is announced.
Conventions
- JSON in, JSON out. Errors look like
{"error":"code"}. - Protected routes need
Authorization: Bearer <session token>. - Money is in US dollars unless a field says otherwise.
Authentication
/v1/auth/noncepublicBody {"wallet"}. Returns {"message"} to sign.
/v1/auth/verifypublicBody {"wallet","signature"} (base64). Returns {"token","wallet"}.
Account
/v1/mewallet sessionReturns balance_usd, used_usd and your top-up history with transaction hashes.
/v1/usagewallet sessionReturns recent calls (model, tokens, cost, key label) and daily totals.
Keys
/v1/keyswallet sessionMasked keys with cap and spend so far.
/v1/keyswallet sessionBody {"name","limit_usd"|null}. Returns the full key once.
/v1/keys/{id}wallet sessionRevokes a key you own.
Market
/v1/marketpublicPer model: list and best input and output prices (USD per 1M tokens), best discount, healthy and total sellers.
/v1/statspublicSeller counts, number of models, and processed top-ups.
Playground
/v1/playgroundwallet sessionBody {"model","messages"}. Streams a server-sent-events reply and charges your balance. At most 40 messages, 8,000 characters each, 30,000 in total, ending with a user message. 30 requests per minute.
Selling
/v1/sell/applywallet sessionBody {"name","endpoint"(https),"models","discount_percent"(5-80),"contact"}. Five per day.
USDG top-up
/v1/topup/infopublicWhether top-up is on, the network (eip155:4663), USDG address, payee, limits and rate.
/v1/topup/quotewallet sessionBody {"usd"} from 1 to 500. Returns quote_id, network, asset, payTo, decimals (6), amount (atomic USDG), calldata_suffix and an expiry.
/v1/topup/claimwallet sessionBody {"quote_id","tx_hash"}. Returns credited_usd and tx_hash. The paying wallet must be the signed-in wallet.
x402
/x402/infopublicWhether pay per request is switched on, the scheme, network, USDG address and payee.
/x402/v1/chat/completionsx402 paymentSee Pay per request.
Inference (gateway)
/v1/chat/completionswallet sessionOpenAI chat completions. Authenticate with an API key (sk-…), not the session token. Supports stream. Served from the gateway base URL.