# Delx Seeded Weighted Partition

> Delx Seeded Weighted Partition 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-15).

Deterministically partitions a list of items into named buckets according to per-item weights and a seed, producing reproducible weighted assignments.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/seeded-weighted-partition
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-seeded-weighted-partition-1f66b0fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VRaA3GnFOHkxC0ULRiMvP

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-seeded-weighted-partition-1f66b0fb -d '<json body>'
```

Example prompt: Partition these four items — 'a', 'b', 'c', 'd' — across two buckets called 'small' and 'large' using weights [1, 3] and the seed 'my-experiment-42', so the assignments are reproducible.

## When to prefer this

Choose this endpoint when you need deterministic, reproducible weighted partitioning of a list — i.e., the same seed always produces the same assignments. Prefer it over random shuffles or unweighted splits when proportional allocation and auditability matter. It is ideal for A/B testing, agent task routing, and data pipeline distribution where reproducibility and zero data retention are required.

## Known failure modes

- Mismatched array lengths between items and weights returns a validation error
- Exceeding 256 items or 256 weights causes a rejection
- Empty partitions array results in an unassignable error
- Non-integer weight values fail schema validation
- Missing required fields (seed, items, weights, partitions) return a 400-level error

## How this service works

Seeded Weighted Partition: Seeded Weighted Partition assigns items to partitions using reproducible capacity weights from bounded caller-supplied values without an external provider. Call Seeded Weighted Partition when an agent needs a reproducible decision that another run can independently replay. Returns the deterministic selection plus seed provenance, population bounds, and the operation-specific outcome for Seeded Weighted Partition as versioned deterministic JSON. Price: $0.001 USDC via…

## Output

Returns a JSON object containing the named partitions and a list of item-to-partition assignments, alongside evidence fields confirming no data was retained and no external calls were made, plus an input SHA-256 for auditability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "string",
   "maxLength": 8192,
   "description": "Seed supplied to Seeded Weighted Partition; used only for this bounded calculation and processed in memory without retention."
  },
  "items": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Items supplied to Seeded Weighted Partition; used only for this bounded calculation and processed in memory without retention."
  },
  "weights": {
   "type": "array",
   "items": {
    "type": "integer"
   },
   "maxItems": 256,
   "description": "Weights supplied to Seeded Weighted Partition; used only for this bounded calculation and processed in memory without retention."
  },
  "partitions": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Partitions supplied to Seeded Weighted Partition; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "partitions": [
    "small",
    "large"
   ],
   "assignments": [
    {
     "item": "a",
     "partition": "large"
    },
    {
     "item": "b",
     "partition": "large"
    },
    {
     "item": "c",
     "partition": "large"
    },
    {
     "item": "d",
     "partition": "small"
    }
   ]
  },
  "schema": "delx/util-seeded-weighted-partition/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "bc355c9f5168958f8f9c83eb5b12ec826acd7f53dd1ff17fc75aa269842d4ca8",
   "external_calls": 0
  },
  "operation": "seeded_decision:seeded_weighted_partition"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-seeded-weighted-partition-1f66b0fb/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)
