# Delx Avg N

> Delx Avg N 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 arithmetic mean and count of a supplied list of numbers, useful for agent metric aggregation.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/avg-n
- 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-avg-n-e6c1a68f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sfjFPoM1QN1kAV5u9idmL

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-avg-n-e6c1a68f -d '<json body>'
```

Example prompt: Can you calculate the average of these numbers for me: [12.5, 9.3, 14.7, 11.2, 10.8]?

## When to prefer this

Choose this endpoint when you need a quick, stateless mean computation over a numeric list without shipping a math library or standing up compute infrastructure — especially in agent pipelines where you want a pay-per-use micro-computation with no credential setup. Ideal for summarising metric samples, sensor readings, or cost arrays inline in an agentic workflow.

## Known failure modes

- Empty values array returns an error or undefined average
- Non-numeric values in the array cause a validation failure
- Malformed request body (missing values field) returns a 400-level error
- Payment failure via x402 protocol prevents execution

## How this service works

Average of a numeric list. Call when you need a mean for agent metrics samples. Returns average and count for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns the arithmetic mean (average) and the count of elements in the supplied numeric array, as a local JSON response with no data retention.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "description": "Input field: values."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "value": 4,
  "schema": "delx/util-avg-n/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-avg-n-e6c1a68f/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)
