# Delx Seeded K-Fold Split

> Delx Seeded K-Fold Split 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).

Reproducibly splits a set of N items into K folds using a deterministic seed, returning fold-to-index assignments for cross-validation workflows.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/seeded-kfold-split
- 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-k-fold-split-acccea46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nWyILvgZrYbpWpJ215Iq5

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-k-fold-split-acccea46 -d '<json body>'
```

Example prompt: Split 200 items into 5 folds using the seed 'experiment42' — I need the same fold assignments every time I run this.

## When to prefer this

Choose this endpoint when you need a deterministic, reproducible k-fold partition of N items using a fixed seed — especially for machine learning cross-validation, reproducible experiments, or consistent parallel job distribution. It is stateless, fast, and leaves no retained data, making it suitable for privacy-sensitive pipelines. Prefer this over custom shuffle logic when you need auditability via input SHA-256 hashing and a guaranteed no-retention policy.

## Known failure modes

- Missing required fields (seed, folds, item_count) result in a validation error
- Non-integer values for folds or item_count may cause a type error
- Requesting more folds than items may produce empty or degenerate folds
- Extremely large item_count values may cause timeout or rejection
- Invalid JSON body returns a 400-level error

## How this service works

Seeded Kfold Split: Seeded Kfold Split assigns item indices to reproducible cross-validation folds from bounded caller-supplied values without an external provider. Call Seeded Kfold Split 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 Kfold Split as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, state…

## Output

Returns a JSON object containing an array of folds, where each fold is a list of integer indices assigned to that fold. Also includes operation metadata such as the schema version, status, whether input was retained (always false), the SHA-256 hash of the input, and the number of external calls made (always 0).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "string",
   "maxLength": 8192,
   "description": "Seed supplied to Seeded Kfold Split; used only for this bounded calculation and processed in memory without retention."
  },
  "folds": {
   "type": "integer",
   "description": "Folds supplied to Seeded Kfold Split; used only for this bounded calculation and processed in memory without retention."
  },
  "item_count": {
   "type": "integer",
   "description": "Item Count supplied to Seeded Kfold Split; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "folds": [
    [
     0,
     6
    ],
    [
     3,
     4
    ],
    [
     7,
     2
    ],
    [
     1,
     8
    ],
    [
     9,
     5
    ]
   ]
  },
  "schema": "delx/util-seeded-kfold-split/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "1c82d188bfda6a3b8a6c4d0f5c621ee9924271306631661b47dfd5050597818a",
   "external_calls": 0
  },
  "operation": "seeded_decision:seeded_kfold_split"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-seeded-k-fold-split-acccea46/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)
