# Batch Dependency Levels

> Batch Dependency Levels is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Topologically sorts a batch of jobs into ordered dependency levels so they can be executed in the correct sequence

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/batch-dependency-levels?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/batch-dependency-levels-9c9be6b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Wj3eIL3Cqt0fXAPepC0Qo

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 batch-dependency-levels-9c9be6b3 -d '<json body>'
```

Example prompt: I have a batch of 12 jobs where some depend on others finishing first — can you topologically sort them into dependency levels so I know which ones can run in parallel and which must wait?

## When to prefer this

Use this endpoint when you need a deterministic, versioned topological sort of a job batch before handing the plan to a downstream execution engine or tool with a strict ordering contract. It is ideal when jobs have dependency relationships that must be resolved into parallel-safe execution waves, and when you need a structured, normalized result with counts rather than building your own graph sort logic.

## Known failure modes

- Circular dependency detected — jobs form a cycle with no valid topological ordering
- Input array exceeds maximum of 256 jobs — request rejected
- Individual job object exceeds 128 properties limit
- Malformed job objects that cannot be parsed
- Missing or empty jobs array in the request body
- Payment failure via x402 protocol — call not processed

## How this service works

Batch Dependency Levels: Batch Dependency Levels topologically groups bounded jobs into executable dependency levels from bounded caller-supplied values without an external provider. Call Batch Dependency Levels before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for Batch Dependency Levels as versioned deterministic JSON. Pric…

## Output

Returns a versioned deterministic JSON object containing the jobs grouped into ordered dependency levels (waves/tiers), along with counts of jobs per level, normalized job values, and a versioned result contract — enabling downstream tools or agents to execute groups in parallel where safe and sequentially where required.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "jobs": {
   "type": "array",
   "items": {
    "type": "object",
    "maxProperties": 128,
    "additionalProperties": true
   },
   "maxItems": 256,
   "description": "Jobs supplied to Batch Dependency Levels; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "levels": [
    [
     "a"
    ],
    [
     "b",
     "c"
    ]
   ],
   "cycle_or_missing": []
  },
  "schema": "delx/util-batch-dependency-levels/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "cec84ec4f047849cfa3ecf3ed56401549860d2fc882012e6aa7b29aa2b2dbc19",
   "external_calls": 0
  },
  "operation": "data_batch:batch_dependency_levels"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/batch-dependency-levels-9c9be6b3/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)
