# Delx Seeded Consistent Shard

> Delx Seeded Consistent Shard 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 assigns a key to a consistent shard index using a seed and total shard count, with no data retention.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/seeded-consistent-shard
- 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-consistent-shard-56325e2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__OvUP1ETW29NSSrMn21m0

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-consistent-shard-56325e2e -d '<json body>'
```

Example prompt: Assign the key 'user-98342' to one of 16 shards using the seed 'my-cluster-v2' so I can route it consistently every time.

## When to prefer this

Use this endpoint when you need a fast, stateless, reproducible shard assignment for a key that must always map to the same bucket given the same seed and shard count — especially in agent workflows requiring consistent routing, partitioning, or load distribution without maintaining local hashing logic. Prefer over local hashing when you need auditable, seedable, in-memory-only computation with a verifiable input hash.

## Known failure modes

- Missing required field (key, seed, or shard_count) returns a validation error
- shard_count of 0 or negative may cause a division error
- Excessively long key or seed strings (over 8192 chars) are rejected
- Network timeout if the Delx API is unavailable

## How this service works

Seeded Consistent Shard: Seeded Consistent Shard maps a stable key to one shard without mutable state from bounded caller-supplied values without an external provider. Call Seeded Consistent Shard 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 Consistent Shard as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First…

## Output

Returns the computed shard index for the given key (0-based, within shard_count), the shard_count used, operation status ('pass'), the schema identifier, a SHA-256 hash of the input for auditability, and confirmation that no data was retained and no external calls were made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "key": {
   "type": "string",
   "maxLength": 8192,
   "description": "Key supplied to Seeded Consistent Shard; used only for this bounded calculation and processed in memory without retention."
  },
  "seed": {
   "type": "string",
   "maxLength": 8192,
   "description": "Seed supplied to Seeded Consistent Shard; used only for this bounded calculation and processed in memory without retention."
  },
  "shard_count": {
   "type": "integer",
   "description": "Shard Count supplied to Seeded Consistent Shard; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "shard": 8,
   "shard_count": 16
  },
  "schema": "delx/util-seeded-consistent-shard/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "3193822187c34bc2c5cf38dd467ce7ac4b223323e04a38e0cdc759a2a3dd8791",
   "external_calls": 0
  },
  "operation": "seeded_decision:seeded_consistent_shard"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-seeded-consistent-shard-56325e2e/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)
