# Delx Seeded Train-Test Split

> Delx Seeded Train-Test 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-13).

Splits a list of integer items into reproducible train and test sets using a deterministic seed and a specified test fraction.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/seeded-train-test-split
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-seeded-train-test-split-e88ebbcd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-dbRmfLtnmwGvie8E0kb7

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-train-test-split-e88ebbcd -d '<json body>'
```

Example prompt: Split the list [1, 2, 3, 4, 5] into train and test sets using seed 'abc123' and a test fraction of 0.2 — I need the same split every time I run this.

## When to prefer this

Prefer this endpoint when you need a lightweight, stateless, reproducible train-test split for a small list of integers (up to 256 items) within an agent workflow — especially when auditability matters, since the response includes input hashes and confirms no external calls or data retention. It is ideal for pipelines that must produce identical splits across runs given the same seed and fraction.

## Known failure modes

- Invalid seed type (non-string) returns validation error
- test_fraction outside [0,1] range causes computation failure
- items array exceeds 256-element limit returns 400 error
- Malformed request body returns schema validation error
- Empty items array may return empty train or test sets

## How this service works

Seeded Train Test Split: Seeded Train Test Split splits items into reproducible train and test sets from bounded caller-supplied values without an external provider. Call Seeded Train Test 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 Train Test Split as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-p…

## Output

Returns a JSON object with two arrays: 'train' containing the training subset and 'test' containing the test subset of the original integer items, along with operation metadata, an evidence block confirming no data retention and no external calls, and a SHA-256 hash of the input for auditability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "string",
   "maxLength": 8192,
   "description": "Seed supplied to Seeded Train Test Split; 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 Train Test Split; used only for this bounded calculation and processed in memory without retention."
  },
  "test_fraction": {
   "type": "number",
   "description": "Test Fraction supplied to Seeded Train Test Split; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "test": [
    5
   ],
   "train": [
    1,
    3,
    2,
    4
   ]
  },
  "schema": "delx/util-seeded-train-test-split/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "0584495460669e5b8cdc192403f94897df5ed2ef02ef94dff1c52727c63d9fe5",
   "external_calls": 0
  },
  "operation": "seeded_decision:seeded_train_test_split"
 }
}
```

## More

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