# Delx Commerce — Seeded K-Fold Split

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

Splits a dataset of N items into K folds reproducibly using a provided seed, returning fold-to-index assignments.

## Facts

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

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

Example prompt: Split 100 items into 5 folds using seed 'experiment-42' so I get the same fold assignments every time I run it.

## When to prefer this

Prefer this endpoint when you need a lightweight, pay-per-call, no-signup solution for reproducible k-fold splits with verifiable, auditable evidence of computation (SHA-256 input hash, no data retention). Ideal for ML pipelines where determinism and auditability matter and you don't want to run your own shuffle logic. Not suitable for large-scale batch splits or when you need stratified splits based on label distributions.

## Known failure modes

- Invalid or missing 'folds' integer — API may return an error or unexpected output
- Item count of zero or negative — computation undefined, likely returns an error
- Mismatched folds vs item count causing uneven partition — API handles this but distribution may be unequal
- Payment failure (insufficient USDC balance) — 402 response before computation runs
- Seed string exceeding 8192 character limit — request rejected

## How this service works

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

## Output

Returns a JSON object with fold assignments as a list of lists, each inner list containing the item indices for that fold. Also includes a schema identifier, operation name, pass/fail status, and a verifiable evidence block with SHA-256 hash of inputs, confirmation that no data was retained, and number of external calls made (zero).

## 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-commerce-seeded-k-fold-split-2cbdfc19/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)
