# Delx Categorical Distribution

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

Builds a bounded frequency distribution (counts and proportions) for an array of categorical values, returning deterministic JSON analytics.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/categorical-distribution
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-categorical-distribution-92988215
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ACsJ9N5AIyVsjA_v6XLvR

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-categorical-distribution-92988215 -d '<json body>'
```

Example prompt: Can you build a frequency distribution for these categorical values so I can see how often each category appears: ["fraud", "legit", "fraud", "unknown", "legit", "legit", "fraud"]?

## When to prefer this

Choose this endpoint when you need a fast, stateless, deterministic categorical frequency distribution computation at very low cost ($0.003 USDC) with no data retention, as a preflight or analysis step before data, policy, or commercial decisions. Prefer it over general-purpose analytics tools when you need a lightweight, privacy-safe local computation with no upstream data sharing.

## Known failure modes

- Empty values array returns empty distribution or an error
- Non-array input type causes schema validation failure
- Extremely large arrays may hit payload size limits
- Network timeout if the endpoint is temporarily unavailable

## How this service works

Build a bounded frequency distribution for categorical values. Use it as a bounded preflight or analysis step inside an enterprise agent workflow before data, policy, integration, security, or commercial decisions reach production. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, memory-only, and has no paid upstream or input retention. Results are advisory; the caller remains responsible for authorization and product…

## Output

Returns deterministic machine-readable JSON containing frequency counts for each unique category and their relative proportions (frequencies as fractions or percentages), suitable for downstream decision logic in agent workflows.

## 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,
  "schema": "delx/util-categorical-distribution/v1",
  "truncated": false,
  "categories": [
   {
    "count": 2,
    "value": "ready",
    "percent": 66.6667
   },
   {
    "count": 1,
    "value": "failed",
    "percent": 33.3333
   }
  ],
  "unique_count": 2
 }
}
```

## More

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