{
  "format": "delx/intent-card/v1",
  "id": "calibration-ece-api",
  "intent": "Calibration ECE Lite for an agent workflow",
  "title": "Calibration ECE Lite API for agents",
  "description": "Expected calibration error from forecast/outcome pairs. Call when scoring probability model calibration offline. Returns ece and n as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.",
  "keywords": [
    "Calibration ECE Lite API",
    "Calibration ECE Lite for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/calibration-ece-api",
  "machine_url": "https://commerce.delx.ai/intents/calibration-ece-api.json",
  "recommendation": {
    "tool_name": "util_calibration_ece",
    "service_name": "Calibration ECE Lite",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/calibration-ece",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "forecasts": {
          "type": "array",
          "description": "Forecast probabilities in [0,1]"
        },
        "outcomes": {
          "type": "array",
          "description": "Binary outcomes 0/1 aligned with forecasts"
        },
        "bins": {
          "type": "integer",
          "description": "Number of calibration bins"
        }
      },
      "required": [
        "forecasts",
        "outcomes"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "forecasts": [
        0.1,
        0.4,
        0.7,
        0.9
      ],
      "outcomes": [
        0,
        0,
        1,
        1
      ],
      "bins": 5
    },
    "example_output": {
      "schema": "delx/util-calibration-ece/v1",
      "ece": 0.225,
      "n": 4
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/calibration-ece -m POST -H 'x-delx-source: intent-card-calibration-ece-api' --max-amount 0.001 -b '{\"forecasts\":[0.1,0.4,0.7,0.9],\"outcomes\":[0,0,1,1],\"bins\":5}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-calibration-ece-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/calibration-ece"
  }
}
