# Delx Commerce P95 Latency Estimator

> Delx Commerce P95 Latency Estimator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Computes the 95th percentile (P95), min, max, and count statistics from a provided array of numeric latency or metric samples.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/p95-estimate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-p95-latency-estimator-1051db68
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TB8_97jrsE1Q7HqBdPcy1

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 delx-commerce-p95-latency-estimator-1051db68 -d '<json body>'
```

Example prompt: I have these 11 latency samples in milliseconds — 10, 15, 20, 25, 30, 35, 40, 50, 80, 150, 200 — can you calculate the P95, min, and max for me?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call P95 (and supporting min/max/count) computation without setting up any backend statistics infrastructure. It is ideal for AI agents doing on-the-fly latency analysis, performance monitoring, or SLO checks where samples are already collected and a single API call is sufficient. Prefer it over building custom percentile logic when cost predictability ($0.003 USDC flat) and no-signup access matter.

## Known failure modes

- Empty or missing samples array returns error
- Non-numeric values in samples array may cause computation failure
- Payment failure via x402 protocol prevents endpoint execution
- Very small sample sizes yield unreliable P95 estimates (noted in advisory)
- Malformed request body returns 400-level error

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the P95 estimate, minimum value, maximum value, and sample count derived from the provided numeric samples array, along with a schema identifier and an advisory note clarifying it is an order-statistic estimate on the provided sample only.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "samples": {
   "type": "array",
   "description": "Latency or metric samples for quantile estimation."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "max": 200,
  "min": 10,
  "p95": 200,
  "count": 11,
  "schema": "delx/util-p95-estimate/v1",
  "advisory": "Order-statistic estimate on the provided sample only."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-p95-latency-estimator-1051db68/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
