# Live Multi-Rail x402 Routing Optimizer

> Live Multi-Rail x402 Routing Optimizer is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Given a payment intent, returns all eligible payment rails quoted with fees, reliability, finality, a cheapest-rail recommendation, and float sizing for pooled settlement.

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/live-multi-rail-x402-routing-optimizer
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/live-multi-rail-x402-routing-optimizer-16f3cf98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3MxoCKRdeyldgXFxrzOdU

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 live-multi-rail-x402-routing-optimizer-16f3cf98
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## 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)"
      },
      "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",
         "desc
… (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": "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/live-multi-rail-x402-routing-optimizer-16f3cf98/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)
