{"uid":"cap_OgRWwVYHWAEY16gBFj2MB","slug":"x402-pricing-scheme-selection-decision-procedure-a4b80e7d","name":"x402 Pricing-Scheme Selection Decision Procedure","description":"Paid agent-facing brief on x402 pricing-scheme selection for variable-cost services: an agent-facing decision procedure for choosing between exact (fixed quoted price) and upto (token-dependent estimate) 402 payment schemes, setting worst-case spend bounds for upto quotes, pre-authorization vs post-settlement reconciliation, refund handling, and when to reject upto in favor of exact.. Blunt decision procedure, not marketing.","url":"https://k2so.wrong.systems/api/services/x402-pricing-scheme-selection-for-variable-cost?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":"x402 pricing-scheme selection for variable-cost services: an agent-fac 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":"x402-pricing-scheme-selection-for-variable-cost","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"x402-pricing-scheme-selection-for-variable-cost","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":"down","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_Atpwqu3XQYjK7jEHr1rO-","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 blunt, agent-facing decision procedure for choosing between exact and upto x402 payment schemes for variable-cost services, including spend bounds, pre-auth vs post-settlement, refund handling, and scheme rejection criteria.","exampleAgentPrompt":"I need a decision procedure for picking between exact and upto x402 payment schemes — specifically how to set worst-case spend bounds for upto quotes, when to use pre-auth vs post-settlement, how refunds work, and when to just reject upto and demand exact instead.","exampleUseCases":[{"title":"Choosing scheme for LLM token-variable API","prompt":"I'm building an agent that calls a token-based LLM API over x402 and the cost varies per response — walk me through how to decide whether to use exact or upto pricing, and how to cap my worst-case spend."},{"title":"Pre-auth vs post-settlement reconciliation policy","prompt":"My agent needs a policy for when to pre-authorize x402 payments versus settling after the fact — give me the decision procedure for variable-cost services so I can hardcode the right logic."},{"title":"Handling refunds when upto quote overshoots","prompt":"What should my agent do when an upto x402 payment ends up costing less than the quoted maximum — walk me through the refund handling procedure and when to just reject upto entirely."}],"resultDescription":"A structured response containing a prose decision procedure (brief) for agents, indicating how to select between exact and upto x402 payment schemes, configure spend bounds, handle pre-auth and post-settlement reconciliation, manage refunds, and when to reject upto in favor of exact. Also includes generation metadata: model used, generation source (llm/reasoning/deterministic), timestamp, and service slug.","failureModes":["Payment not included — returns 402 with payment requirements","Invalid meta parameter value — ignored or schema-only response returned","Service temporarily unavailable — provider downtime","Topic override not recognized — falls back to default decision procedure topic"],"whenToPreferThis":"Use this endpoint when an AI agent needs an authoritative, blunt decision procedure for x402 payment scheme selection — specifically when building or auditing agent payment logic that must handle variable-cost services, upto pricing, spend caps, or reconciliation policies. Prefer over generic documentation when you need a machine-consumable, opinionated procedure rather than marketing copy.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T22:28:30.316Z","isFirstParty":false,"canonicalSlug":"x402-pricing-scheme-selection-decision-procedure-a4b80e7d"}