# Outcome Ledger Inference Cost Analyzer

> Outcome Ledger Inference Cost Analyzer is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-17).

Reconciles x402 payment call logs against success outcomes to compute amortized true inference cost per successful agent transaction, attributing waste from retries and failures to their originating successful outcome.

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/outcome-ledger-inference-cost-analyzer?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/outcome-ledger-inference-cost-analyzer-8554ef5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3vysXJkxsTr1UHu8mGFAT

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 outcome-ledger-inference-cost-analyzer-8554ef5d
```

Example prompt: Can you analyze my x402 payment call logs and work out the true amortized inference cost per successful transaction — factoring in all the retry attempts, failed calls, refunds, and per-rail surcharges so I know what each successful outcome actually cost me?

## When to prefer this

Choose this endpoint when you need to understand the true economic cost of agentic inference workflows that use x402 micropayments, specifically when retry loops, failures, and multi-rail fees distort the naive per-call cost figure. It is purpose-built for x402 payment ecosystems and produces an amortized cost measure tied to successful outcomes rather than raw call volume — making it more useful than generic cost dashboards when failure rates are non-trivial or when comparing payment rail efficiency.

## Known failure modes

- Missing or malformed payment logs result in inability to reconcile cost data
- No success outcome markers provided yields undefined amortized cost
- x402 payment not completed returns 402 Payment Required before analysis is served
- Invalid query parameters return schema validation errors
- Upstream LLM generation failure may result in fallback to deterministic cost estimate or empty brief

## How this service works

Reconciles x402 payment call logs against success outcome markers to compute true inference cost per successful agent transaction. Ingests per-call fees, retry attempts, failure records, refunds, and per-rail surcharges, then produces an amortized cost measure that attributes waste to the originating successful outcome.

## Output

Returns a structured response containing the amortized inference cost per successful agent transaction, with waste attributed back to originating successful outcomes. Includes a decision procedure brief (prose explanation for agents), generation source (llm/reasoning/deterministic), ISO-8601 timestamp, service slug, and payment confirmation fields indicating whether the x402 micropayment was processed.

## 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": "Outcome Ledger Inference Cost Analyzer 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"
        },
    
… (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": "outcome-ledger-inference-cost-analyzer",
   "procedure": "same as brief",
   "generatedAt": "2026-01-01T00:00:00.000Z",
   "generationSource": "deterministic"
  },
  "service": "outcome-ledger-inference-cost-analyzer",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/outcome-ledger-inference-cost-analyzer-8554ef5d/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)
