# Delx Commerce — Seeded Window Pick

> Delx Commerce — Seeded Window Pick 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-02).

Returns a deterministic contiguous sub-window of an integer array derived from a seed string, with verifiable evidence of no data retention.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/seeded-window-pick?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-seeded-window-pick-f39e6518
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Rae0QT6Z1GbKJKcVbomk

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-window-pick-f39e6518 -d '<json body>'
```

Example prompt: Pick a deterministic window of 3 consecutive items from the list [1,2,3,4,5,6,7,8,9,10] using the seed 'alpha42', and give me back the selected items and where the window starts.

## When to prefer this

Choose this endpoint when you need a deterministic, reproducible, and verifiable selection of a contiguous window from an integer array based on a seed — especially in agent workflows where auditability matters (the SHA-256 evidence and no-retention guarantee are provided). It is ideal for trustless or decentralized contexts where you pay per result in USDC and require proof that no data was stored or external calls were made. Prefer alternatives if you need non-contiguous sampling, weighted selection, or operations on non-integer data types.

## Known failure modes

- Window size exceeds the length of the provided items array — likely returns an error or empty result
- Items array exceeds 256 elements — rejected by schema validation
- Seed string exceeds 8192 characters — rejected by schema validation
- Missing required fields (seed, items, or window_size) — likely returns a validation error
- Payment failure or insufficient USDC balance — x402 payment required before result is returned

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the selected contiguous sub-array of integers ('items') and the zero-based 'start_index' at which the window begins, along with a status field ('pass'/'fail'), the operation name ('seeded_decision:seeded_window_pick'), the schema version, and an evidence block confirming the input SHA-256 hash, no external calls were made, and no data was retained.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "string",
   "maxLength": 8192,
   "description": "Seed supplied to Seeded Window Pick; 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 Window Pick; used only for this bounded calculation and processed in memory without retention."
  },
  "window_size": {
   "type": "integer",
   "description": "Window Size supplied to Seeded Window Pick; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "items": [
    2,
    3,
    4
   ],
   "start_index": 1
  },
  "schema": "delx/util-seeded-window-pick/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "1046227e8b1c61c8658038d68757f80f7254aa306a9fdab930936da0103b9e24",
   "external_calls": 0
  },
  "operation": "seeded_decision:seeded_window_pick"
 }
}
```

## More

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