# Facilitator Credit-Reserve Replenishment and Insufficient-Credits Recovery Procedure

> Facilitator Credit-Reserve Replenishment and Insufficient-Credits Recovery Procedure is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.002/call, status down (last checked 2026-10-31).

Returns a deterministic decision procedure for recovering from and preventing x402 facilitator credit exhaustion mid-agent-run

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/facilitator-credit-reserve-replenishment-and-ins?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/facilitator-credit-reserve-replenishment-and-insufficient-credits-98be97a5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MdYvig2MC48_GQ5lii6Cc

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability facilitator-credit-reserve-replenishment-and-insufficient-credits-98be97a5
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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

## Output

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).

## Request schema (JSON Schema)

```json
{
 "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": {
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/facilitator-credit-reserve-replenishment-and-insufficient-credits-98be97a5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so.wrong.systems](https://www.zero.xyz/host/k2so.wrong.systems/llms.txt)
