# Rochas > Pay in HYPE, think with Venice. A gateway that sells private Venice AI inference for HYPE on Elysium, the Hyperliquid L2 (chain id 99901), with a wallet-side kit: CLI, MCP server and a budgeted agent. Independent project, MIT. ## Paying for inference 1. POST /v1/chat/completions with an OpenAI-shaped JSON body (messages, optional model, max_completion_tokens, tools). No streaming. 2. The answer is 402 with header PAYMENT-REQUIRED (base64 JSON) and the same JSON as body: accepts[0] = { scheme: "transfer", network: "eip155:99901", asset: "native", amount (wei of HYPE), payTo, maxTimeoutSeconds, extra: { quoteId, quote, usd, hype, model, inputTokens, maxOutputTokens } }. 3. Send `amount` HYPE to `payTo` on Elysium with `quoteId` as the transaction data. 4. Repeat the identical request with header PAYMENT-SIGNATURE: base64(JSON { payload: { txHash, quote } }). 200 returns Venice's completion and a PAYMENT-RESPONSE header. 5. A 402 or 502 with "retryable": true means present the same transaction again, never pay twice. A quote pays for one exact request body. A transaction hash settles one request. The quote is the final price. ## Free reads (GET, JSON, CORS open) - /api/gateway : live or offline, payTo, margin - /api/models : Venice text models priced in USD and HYPE per million tokens - /api/quote?model=&chars=&max_tokens= : price preview, issues no quote - /api/chain : Elysium head block, block time, gas, HYPE in USD - /api/core : busiest HyperCore perps. /api/core?coin=HYPE&bps=10 : one market ## Kit - Install: see /downloads/latest.json for the tarball, then `npx /downloads/ init --gateway ` - CLI: init, status, chain, core, gateway, models, quote, ask, agent, pay, receipts, config, serve, operator credit, operator fund, mcp - MCP tools: venice_ask, venice_quote, rochas_agent, rochas_receipts, ely_chain, ely_status, core_market, core_top ## Limits - The gateway sees requests in transit and stores nothing. Venice's own retention policy applies upstream. - HyperCore is read from Hyperliquid's public info API. - Payments on Elysium are final once mined.