{
  "format": "delx/intent-card/v1",
  "id": "latency-summary-api",
  "intent": "Latency Summary for an agent workflow",
  "title": "Latency Summary API for agents",
  "description": "Calculate p50, p95, p99, mean, min, and max from bounded latency samples. Use it before an autonomous workflow acts on untrusted input, changes an API, retries a request, or evaluates production reliability. Returns bounded machine-readable JSON for $0.002 USDC via x402 on Base. Execution is deterministic, first-party, local-only, stateless, and does not call an upstream provider; structured validation failures are not billed.",
  "keywords": [
    "Latency Summary API",
    "Latency Summary for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/latency-summary-api",
  "machine_url": "https://commerce.delx.ai/intents/latency-summary-api.json",
  "recommendation": {
    "tool_name": "util_latency_summary",
    "service_name": "Delx Latency Summary",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/latency-summary",
    "price_usdc": "0.002",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "latencies_ms": {
          "type": "array",
          "minItems": 1,
          "maxItems": 10000,
          "items": {
            "type": "number",
            "minimum": 0
          }
        }
      },
      "required": [
        "latencies_ms"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "latencies_ms": [
        12,
        18,
        22,
        31,
        55
      ]
    },
    "example_output": {
      "schema": "delx/latency-summary/v1",
      "count": 5,
      "min_ms": 12,
      "mean_ms": 27.6,
      "p50_ms": 22,
      "p95_ms": 50.2,
      "p99_ms": 54.04,
      "max_ms": 55
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/latency-summary -m POST -H 'x-delx-source: intent-card-latency-summary-api' --max-amount 0.002 -b '{\"latencies_ms\":[12,18,22,31,55]}'",
      "max_amount_usdc": "0.002"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-latency-summary-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/latency-summary"
  }
}
