Switch two lines. Route everywhere.
Change the base URL and the key. Model names, streaming, tool calls, and vision stay as they are on OpenRouter, because the request is relayed as sent, with routing pinned to zero-retention endpoints.
# before, OpenRouter
OPENAI_BASE_URL=https://openrouter.ai/api/v1
OPENAI_API_KEY=sk-or-v1-...
# after, Ingenium. Same two variables.
OPENAI_BASE_URL=https://ingenium.family/api/v1
OPENAI_API_KEY=sk-ing-...Try a request in the Playground before the base URL changes.
Every reply carries x-folio-cost, micro-dollars or pending until the cost is reconciled, and x-folio-balance, the free balance after this request's hold.
Every reply also carries x-folio-attestation, the id of the reserve check in force when the call ran.
Proof of credit
Fetch the check named on a reply, recover the signer, and compare it with the address on the proof page. Then compare the digest with the Anchored event on ReserveAnchor.
curl https://ingenium.family/api/proof/SNAPSHOT_IDimport { hashTypedData, verifyTypedData } from "viem";
const types = { ReserveAttestation: ["snapshotId:string","upstreamMicro:uint256","owedMicro:uint256","unclaimedMicro:uint256","headroomMicro:int256","priceBps:uint16","takenAt:uint64","source:string"].map((s) => ({ name: s.split(":")[0], type: s.split(":")[1] })) };
const p = await fetch("https://ingenium.family/api/proof/SNAPSHOT_ID").then((r) => r.json());
const message = { ...p.attestation };
for (const k of ["upstreamMicro", "owedMicro", "unclaimedMicro", "headroomMicro", "takenAt"]) message[k] = BigInt(message[k]);
const ok = await verifyTypedData({ address: p.signer, domain: p.domain, types, primaryType: "ReserveAttestation", message, signature: p.signature });
const digest = hashTypedData({ domain: p.domain, types, primaryType: "ReserveAttestation", message });ok is true when the recovered signer is the address published on /proof. digest is the hash the keeper writes on chain once an hour.
Ask
/ask reads an Elysium wallet and answers in plain words. Sign in with the wallet. The wallet is the account. Each question spends credit the same way a key does, and the line under the answer is the cost.
The desk pays three questions a day. A holder over 10,000 INGENIUM spends credit first. Past that, buy credit with HYPE, or hold INGENIUM and the perk pays for the question.
The tools are read-only. Tokens stay where they are.
Let your agent run the desk
Price, stats, and models answer anyone who connects. Balance, usage, hold, awards, and claim answer a key. A claim writes credit onto the wallet that key already spends from. A leaked key leaves that credit on the same wallet.
What the purchase is
A fixed amount of API credit in dollars. $100 of credit is $100 of model usage at OpenRouter's listed prices, which are the providers' own prices. Payment is native HYPE on Elysium (chain 99901). An empty subsidy pool prices the credit at cost. Subsidy lowers the price, and the floor is 20% under face.
The model on the reply
Responses carry the provider's own model name and id. The route leaves the model as named.
Prompt storage
The gateway keeps billing metadata: model, token counts, cost, and timing. Prompts and completions on /api/v1 pass through and stay off disk. A question on /ask is stored with its answer so it can be shared and so the three free questions a day are counted. Every request carries provider.zdr = true, so it reaches zero-retention endpoints.
Where the discount comes from
INGENIUM holders share the fee fixed when the token launches on Elysium. The split is development, the holder perk vault, and the buyer discount vault. Cash in the discount vault covers the gap between the HYPE paid and the OpenRouter price of the credit. An empty vault prices the purchase at cost. The payment buys the credit.
Holding and staking
INGENIUM in the wallet counts once toward the daily perk. INGENIUM in IngeniumStake counts twice. An unstake request drops it back to once for a 7 day wait.
Why the desk might pause
Every 5 minutes the sum of every balance is compared with the OpenRouter account balance. When balances would exceed it, buying and new awards pause and a key answers 402 until a top-up lands. Credit already on the books can still be spent down to what upstream will serve. Before a request is forwarded, its worst case is set aside from the balance. The real cost replaces that hold when the reply lands. A request the free balance cannot cover is refused before it is sent.
Refunds
Credit is access to the models, paid in HYPE. HYPE that sits in SaleEscrow for 24 hours with no fill returns to the buyer wallet through refund(quoteId) on the contract.