Bearer authentication
Session tokens authorize funded execution without linking the user to a public Solana wallet.
MONERO AI / DEVELOPERS
Create XMR-funded sessions, route paid inference, verify receipts and expose only the payment evidence your application actually needs.
Session tokens authorize funded execution without linking the user to a public Solana wallet.
Every paid run records digests, selected route, exact charge and settlement reference.
Strict schemas limit prompts, branches, output tokens and maximum bounty budgets.
HTTP API
/api/xmr/statusRead Monero proof quorum, XMR oracle, storage and Solana paymaster health.
/api/xmr/sessionsReturns a bearer credential, exact XMR amount and wallet URI. Keep the token in the client.
/api/xmr/sessions/:id/fundSubmit the transaction ID and payment proof. The server verifies it against a node quorum and prevents replay.
/api/xmr/sessions/:id/runAuthorize with the session bearer token and submit a resource ID plus an OpenAI-compatible messages payload.
/api/xmr/bountiesFund two to four independent model branches and a separate verification route from one XMR session.
/api/xmr/proofs/verifyValidate a Monero transaction proof without publishing the complete payment graph.
SESSION CREATION
The API returns the exact wallet request and a secret bearer token. Store the token only in the client that will run inference.
const response = await fetch("/api/xmr/sessions", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ amountMicroUsdg: "1000000" })
});
const { session, token } = await response.json();
// Open session.paymentUri in the user's Monero wallet.