{"uid":"cap_3MxoCKRdeyldgXFxrzOdU","slug":"live-multi-rail-x402-routing-optimizer-16f3cf98","name":"Live Multi-Rail x402 Routing Optimizer","description":"Paid routing endpoint: feed a payment intent (amount, optional rail filter, reliability floor) and get every eligible rail quoted with expected fee, total cost, reliability, finality, a cheapest-rail recommendation, and float sizing for pooled settlement. Machine-readable JSON computed from the provider's measured per-rail fee index.","url":"https://k2so.wrong.systems/api/services/live-multi-rail-x402-routing-optimizer","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)"},"rails":{"type":"string","examples":["base-x402,solana-usdc"],"description":"Optional comma-separated rail filter: base-x402,base-mpp-tempo,solana-usdc,open-usd,xrpl-usdc,telco-carrier"},"amount":{"type":"string","examples":["0.10","1.00","0.002"],"description":"Payment intent amount in USDC decimal (e.g. 0.10). Required."},"origin":{"type":"string","examples":["eip155:8453"],"description":"Optional payer chain hint (eip155:8453, solana:...)"},"minReliability":{"type":"string","examples":["0.9"],"description":"Optional minimum route reliability 0..1"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Live multi-rail x402 routing optimizer 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"},"float":{"type":"object"},"intent":{"type":"object"},"routes":{"type":"array"},"service":{"type":"string","description":"Service slug"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"indexSource":{"type":"string"},"indexUpdatedAt":{"type":"string"},"recommendation":{"type":"object"}}},"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":"live-multi-rail-x402-routing-optimizer","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"live-multi-rail-x402-routing-optimizer","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_uQrHj4HTVIfkwkUNL1cUg","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":"Given a payment intent, returns all eligible payment rails quoted with fees, reliability, finality, a cheapest-rail recommendation, and float sizing for pooled settlement.","exampleAgentPrompt":"Compare all available payment rails for a 200 USDC transfer and tell me which is cheapest, what each rail charges in fees, the reliability score, and how long finality takes — filter to rails with at least a 95% reliability floor.","exampleUseCases":[{"title":"Minimize fees on large USDC transfer","prompt":"I need to send 500 USDC — can you check all available payment rails and tell me which one is cheapest right now, including the fee breakdown and expected finality time?"},{"title":"Reliability-gated payment routing for agent","prompt":"My agent is about to make a payment of 75 USDC and I need it to go through reliably — find all rails that meet at least a 99% reliability floor and recommend the best one."},{"title":"Float sizing for pooled settlement desk","prompt":"We're running a pooled settlement operation and need to know how much float to hold — can you pull the current rail quotes for a 1000 USDC intent and give me the float sizing recommendation?"}],"resultDescription":"A machine-readable JSON object listing every eligible payment rail with: expected fee, total cost, reliability score, finality estimate, a cheapest-rail recommendation, and float sizing for pooled settlement. Includes a prose decision brief for agents, generation source, and ISO-8601 timestamp.","failureModes":["Invalid or missing payment amount returns an error JSON","Rail filter specifies an unsupported or unavailable rail, yielding an empty eligible-rail set","No rails meet the specified reliability floor, returning an empty recommendation","Payment required (x402) but client fails to attach payment, blocking the response","Provider fee index temporarily unavailable, resulting in a stale or failed quote"],"whenToPreferThis":"Choose this endpoint when an AI agent or autonomous system needs to programmatically select and optimize a payment rail before executing a transfer — especially when cost, reliability, and finality all matter. It is purpose-built for multi-rail x402 environments and returns machine-readable structured JSON suitable for downstream automation, unlike narrative or single-rail advisory endpoints.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:45:40.530Z","isFirstParty":false}