# Delx Commerce — Seeded Reservoir Sample

> Delx Commerce — Seeded Reservoir Sample is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Returns a reproducible random sample of integers from a list using a seed, with cryptographic evidence of no data retention or external calls.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/seeded-reservoir-sample?utm_source=zero.xyz
- Price: $0.001/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-seeded-reservoir-sample-6bbfd58d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vAZ-5nFbuHJI1aKSontwD

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-seeded-reservoir-sample-6bbfd58d -d '<json body>'
```

Example prompt: From the list [2, 5, 7, 11, 13, 17, 19, 23], pick 3 items using seed 'alpha42' — I need it to be reproducible and verifiably processed without retaining my data.

## When to prefer this

Choose this endpoint when you need deterministic, reproducible random sampling from an integer array and require cryptographic proof that the input was not retained and no external calls were made — particularly useful in auditable agent workflows, privacy-sensitive contexts, or trust-minimized environments where verifiable computation matters. Prefer it over a generic shuffle or random library call when on-chain payment accountability and evidence of stateless processing are required.

## Known failure modes

- items array exceeds 256-element limit — request rejected
- seed string exceeds 8192 character limit — request rejected
- count greater than items length — may return fewer results or error
- malformed JSON body — HTTP 400 response
- payment not provided or insufficient USDC — HTTP 402 response
- invalid integer types in items array — schema validation 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 the sampled items (as an integer array), their original indices, an operation name, schema version, a pass/fail status, and an evidence block containing a SHA-256 hash of the input, a flag confirming no data was retained, and a count of zero external calls made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "string",
   "maxLength": 8192,
   "description": "Seed supplied to Seeded Reservoir Sample; used only for this bounded calculation and processed in memory without retention."
  },
  "count": {
   "type": "integer",
   "description": "Count supplied to Seeded Reservoir Sample; used only for this bounded calculation and processed in memory without retention."
  },
  "items": {
   "type": "array",
   "items": {
    "type": "integer"
   },
   "maxItems": 256,
   "description": "Items supplied to Seeded Reservoir Sample; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "items": [
    1,
    3,
    5
   ],
   "indices": [
    0,
    2,
    4
   ]
  },
  "schema": "delx/util-seeded-reservoir-sample/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "fe584420fbe1d387c960f909168094961a1eae04083c9ffe25a052869b8a68e5",
   "external_calls": 0
  },
  "operation": "seeded_decision:seeded_reservoir_sample"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-seeded-reservoir-sample-6bbfd58d/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)
