{"uid":"cap_MdYvig2MC48_GQ5lii6Cc","slug":"facilitator-credit-reserve-replenishment-and-insufficient-credits-98be97a5","name":"Facilitator Credit-Reserve Replenishment and Insufficient-Credits Recovery Procedure","description":"Deterministic recovery and prevention procedure for agents whose x402 facilitator credit runs dry mid-run. Inputs: current facilitator balance, forecast call burn rate per hour, remaining budget, /settle failure responses (insufficient_credits), top-up rail options, and minimum reserve target. Output: a reserve-floor threshold per burn forecast, a pre-funded versus pay-per-call failover decision, a step-by-step recovery sequence when /settle already returned insufficient_credits and traffic","url":"https://k2so.wrong.systems/api/services/facilitator-credit-reserve-replenishment-and-ins?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":"Facilitator Credit-Reserve Replenishment and Insufficient-Credits Recovery Proce 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":"facilitator-credit-reserve-replenishment-and-ins","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"facilitator-credit-reserve-replenishment-and-ins","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_nISQmyaiihZpLhVwA3Ump","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 recovering from and preventing x402 facilitator credit exhaustion mid-agent-run","exampleAgentPrompt":"My x402 facilitator just returned insufficient_credits and my agent is stalled mid-run — walk me through the recovery sequence and tell me what reserve-floor threshold I should set given my current burn rate so this doesn't happen again.","exampleUseCases":[{"title":"Mid-run insufficient_credits recovery","prompt":"My agent's /settle call just failed with insufficient_credits and everything has stopped — what's the exact step-by-step sequence to get it back online and prevent this from happening again?"},{"title":"Proactive credit reserve planning","prompt":"Before my agent goes live, I want to set a safe credit reserve floor based on my expected call volume of about 500 calls per hour — what threshold should I pre-fund and should I use pre-funded or pay-per-call failover?"},{"title":"Failover rail decision after credit exhaustion","prompt":"My facilitator credit just hit zero mid-batch and I have three top-up rail options available — which one should I use to recover fastest, and what's the recommended replenishment procedure for x402?"}],"resultDescription":"A JSON response containing a plain-prose decision procedure (120+ words) describing the reserve-floor threshold calculation, pre-funded vs pay-per-call failover recommendation, and step-by-step recovery sequence for insufficient_credits errors, plus metadata including the generation model, timestamp, and generation source (llm, reasoning, or deterministic).","failureModes":["Payment required (402) if x402 payment header is not included in the request","Malformed query parameters return validation errors","Service may return cached or previously generated procedure if topic is unchanged","LLM-backed generation may occasionally return shorter or less specific procedures"],"whenToPreferThis":"Choose this endpoint when an autonomous agent has encountered an x402 facilitator insufficient_credits failure and needs a deterministic, structured recovery procedure — or when proactively planning credit reserve thresholds before a high-volume agent run. Prefer this over generic documentation when you need a machine-readable, actionable procedure that accounts for burn rate forecasting and top-up rail selection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T05:28:38.940Z","isFirstParty":false,"canonicalSlug":"facilitator-credit-reserve-replenishment-and-insufficient-credits-98be97a5"}