{"uid":"cap_mxZcD5BIRHITX8loTgGeV","slug":"paid-llm-receipt-delivery-proof-verification-procedure-94c6532e","name":"Paid LLM Receipt Delivery-Proof Verification Procedure","description":"Deterministic procedure an agent runs after paying for an LLM API call, before consuming output. Checks: receipt binds the request hash, names a model run id, captures the output hash before the output is used, matches the paid amount to the quoted price, sets timeout and retry gates for slow or missing responses, and classifies refund or dispute state when the run fails. Verdicts: delivery-proven, verify-more, refuse-output-with-evidence.","url":"https://k2so.wrong.systems/api/services/per-model-run-receipt-verification-for-paid-llm?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Paid LLM receipt delivery-proof verification procedure paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"paid":true,"result":{"ok":true,"brief":"plain prose decision procedure (120+ words)","model":"deepseek/deepseek-v4-flash-0731","topic":"string topic","service":"per-model-run-receipt-verification-for-paid-llm","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"per-model-run-receipt-verification-for-paid-llm","provider":"K-2SO"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j71mqD5MchO-LY-nL7NWZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a deterministic decision procedure for verifying that a paid LLM API call receipt proves actual delivery before consuming the output.","exampleAgentPrompt":"After I paid for that LLM API call, walk me through the deterministic steps to verify the receipt actually proves delivery — checking the request hash binding, model run ID, output hash, and paid amount — before I use the response.","exampleUseCases":[{"title":"Post-payment output safety gate","prompt":"I just paid for an LLM API response via x402 — give me the step-by-step procedure to verify the receipt proves delivery, including how to check the request hash, model run ID, and whether the paid amount matches, before my agent consumes the output."},{"title":"Receipt dispute classification workflow","prompt":"My agent received a receipt after paying for an AI model run but something looks off — walk me through the decision procedure to classify this as valid, refund-eligible, or disputable based on the receipt fields."},{"title":"Timeout and retry rule lookup","prompt":"What are the exact timeout and retry rules an agent should follow when trying to verify a paid LLM receipt, and when should it stop retrying and escalate to a refund or dispute?"}],"resultDescription":"A structured brief containing a blunt, deterministic decision procedure in prose form, covering: request hash binding verification, model run ID validation, output hash capture before use, paid amount matching, timeout and retry rules, and refund-or-dispute state classification. Also includes metadata like generation timestamp, source, and service slug.","failureModes":["Receipt fields missing or malformed — procedure may flag unverifiable state","Network timeout fetching the procedure — agent should retry per returned retry rules","Payment not confirmed on-chain — endpoint returns unpaid/402 response","Topic override not recognized — falls back to default per-model-run procedure","LLM generation failure — generationSource field indicates fallback to deterministic output"],"whenToPreferThis":"Use this endpoint when an agent has just completed a paid x402 LLM API call and needs a deterministic, step-by-step procedure to verify the receipt proves delivery before consuming or acting on the output. Prefer this over general payment validation tools when the specific concern is LLM output delivery proof, receipt hash binding, and refund/dispute classification in a per-model-run billing context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:05:52.743Z","isFirstParty":false,"canonicalSlug":"paid-llm-receipt-delivery-proof-verification-procedure-94c6532e"}