# Delx Median

> Delx Median is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Computes the median of a list of numbers, providing a robust central tendency measure that is unaffected by outliers.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/median
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-median-8d44b334
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ilce_j3-Ri6kwS-XYQpjm

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-median-8d44b334 -d '<json body>'
```

Example prompt: What's the median of these numbers: 12, 45, 7, 99, 23, 4, 56, 88? I need the median specifically because there are some big outliers pulling the average up.

## When to prefer this

Choose this endpoint when you need a robust central tendency measure and your data may contain outliers or skewed distributions that would distort a simple mean. Prefer this over a mean calculation when data includes anomalies, extreme values, or long-tail distributions such as incomes, prices, or sensor readings. It is also ideal when you need a guaranteed deterministic result without any external API key or subscription overhead.

## Known failure modes

- Empty array or missing 'values' field returns a structured validation error (not billed)
- Array exceeding 10,000 items is rejected
- Non-numeric values in the array cause a validation error
- Payment failure or insufficient USDC balance blocks the call

## How this service works

Median of numbers. Use for robust central tendency when outliers pollute averages. Returns the median of the provided numeric list. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.

## Output

Returns the median value of the provided numeric array as deterministic first-party JSON. The median is the middle value when numbers are sorted — or the average of the two middle values for even-length arrays — making it robust against extreme outliers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "maxItems": 10000,
   "minItems": 1,
   "description": "Numeric samples for stats tools (mean/median/stdev/percentile). Cap 10k numbers."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 5,
  "median": 6,
  "schema": "delx/median/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-median-8d44b334/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
