# Delx Seeded Balanced Groups

> Delx Seeded Balanced Groups 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 integers into balanced groups using a reproducible seed string

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/seeded-balanced-groups
- 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-balanced-groups-d17c3ce6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QkBwmk_jdqIZkT1Kp59iV

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-balanced-groups-d17c3ce6 -d '<json body>'
```

Example prompt: Split the items [1,2,3,4,5,6,7] into 3 balanced groups using the seed 'my-agent-run-42' — I need the same grouping every time I run with that seed.

## When to prefer this

Use this endpoint when you need a deterministic, reproducible, balanced partitioning of a list of integers using a seed — ideal for agent workflows requiring consistent task assignment across runs. Prefer it over random shuffling when reproducibility matters (e.g., retrying a failed batch should re-assign the same items). It processes everything in-memory with no retention, making it safe for sensitive ID lists. Choose this over a generic random split when auditability (via SHA-256 evidence) is needed.

## Known failure modes

- Invalid or missing group_count may cause a 400 error or undefined partitioning behavior
- Exceeding maxItems (256) on the items array may result in rejection
- Very large seed strings near the 8192-character limit may be truncated or cause unexpected hashing
- Non-integer values in the items array will fail schema validation
- group_count larger than the number of items results in some groups being empty

## How this service works

Seeded Balanced Groups: Seeded Balanced Groups distributes items reproducibly across near-equal groups from bounded caller-supplied values without an external provider. Call Seeded Balanced Groups 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 Balanced Groups as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-…

## Output

Returns a JSON object containing a 'groups' array of arrays, where each sub-array holds a balanced subset of the input integers. Also includes metadata: status ('pass'), schema version ('delx/util-seeded-balanced-groups/v1'), evidence fields confirming no data retention (retained: false), input SHA-256 hash for auditability, and external_calls count (0), plus an operation identifier.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "groups": [
    [
     3,
     6,
     5
    ],
    [
     2,
     1
    ],
    [
     7,
     4
    ]
   ]
  },
  "schema": "delx/util-seeded-balanced-groups/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "5e73677b9e39056c1e2a57b5393da0a22a4c5722d878e5d471fb8ea36275c80d",
   "external_calls": 0
  },
  "operation": "seeded_decision:seeded_balanced_groups"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-seeded-balanced-groups-d17c3ce6/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)
