# SignalDesk AI – Stats Histogram

> SignalDesk AI – Stats Histogram is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Computes a frequency histogram over an array of numeric observations, returning binned counts with lower/upper bounds.

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/stats/histogram?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-stats-histogram-6ffb39e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9s2fIC9Vw9Fapocvjvs-h

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 signaldesk-ai-stats-histogram-6ffb39e4 -d '<json body>'
```

Example prompt: Can you build a histogram from these 50 reaction-time measurements — [12.3, 45.1, 33.7, ...] — split into 10 bins and show me how many values fall in each range?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call histogram computation without standing up your own statistics library or data pipeline. It is ideal for ad-hoc distribution analysis on up to 1,000 observations where you want a quick binned view of data spread. Prefer a local library or heavier analytics service if you need weighted histograms, 2D histograms, >1,000 observations, or persistent storage of results.

## Known failure modes

- values array is empty or missing → 400 validation error
- bins parameter outside 1–50 range → 400 validation error
- more than 1000 values submitted → 400 validation error
- values contain non-finite numbers (Infinity, NaN) → validation rejection
- payment not included or insufficient → 402 Payment Required
- worker cold-start or quota exhausted → 503 or timeout

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

Returns a JSON array of bin objects, each with a lower bound, upper bound, count of observations in that bin, and a flag indicating whether the upper bound is inclusive. Together the bins cover the full range of input values.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "maximum": 50,
   "minimum": 1,
   "description": "Number of bins."
  },
  "values": {
   "type": "array",
   "items": {
    "type": "number",
    "maximum": 1000000000000000,
    "minimum": -1000000000000000
   },
   "maxItems": 1000,
   "minItems": 1,
   "description": "Up to 1000 finite observations."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bins": [
   {
    "count": 2,
    "lower": 0,
    "upper": 2,
    "upper_inclusive": false
   },
   {
    "count": 3,
    "lower": 2,
    "upper": 4,
    "upper_inclusive": true
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-stats-histogram-6ffb39e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
