xrp_infer
Run one inference paid PER CALL in XRP on the XRP Ledger via x402, no channel. Non-custodial, two steps: (1) call without payment to get the 402 quote (exact drops, destination, destination tag, signed quote; priced from the XRP Ledger's own XRP/RLUSD market); nothing is spent. (2) Sign one XRP Payment for exactly that in your own wallet and call again with the same prompt, model and maxTokens plus payment = base64 of {"x402Version":1,"scheme":"exact","network":,"payload":{"txBlob":,"quote":<accepts[0].extra.quote>}}. The broker checks the payment before broadcasting it, waits for validation (a few seconds), and returns the completion, the settlement tx hash, and a signed receipt. This server never takes a wallet seed: an xrpSeed argument is refused. On failure returns isError "error: (): ". Codes: key_refused; pending (202: submitted but not validated yet; call again with the same payment); payment_failed (402: the payment was refused before broadcast or did not settle; nothing is spent unless the text includes a settlement tx); invalid_request (400); upstream_failed (502: the payment SETTLED but the model provider then failed; the text includes the settlement tx. No automatic refund: contact embryospace@gmail.com with it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id or policy: auto|cheapest|best, claude-*, grok-*. | claude-haiku-4-5 |
| prompt | Yes | The user prompt. | |
| system | No | Optional system prompt. | |
| payment | No | The base64 X-PAYMENT value carrying your signed XRP Payment for the quote from step 1. Omit to get the quote. | |
| maxTokens | No | Max output tokens. |