# Delx Step Budget Plan

> Delx Step Budget Plan is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Allocates a total millisecond time budget across ordered workflow steps using optional relative weights, returning a deterministic per-step breakdown.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/step-budget-plan
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-step-budget-plan-6a3ab02a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Yo38icivjHMkJhyzGQ0V3

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-step-budget-plan-6a3ab02a -d '<json body>'
```

Example prompt: Split a 10000ms total budget across these three workflow steps — 'fetch', 'process', and 'write' — giving 'process' twice the weight of the others.

## When to prefer this

Use this endpoint when you need a deterministic, locally-computed millisecond budget split across an ordered list of workflow steps before executing side effects. Prefer it over manual division when you need weighted allocation, machine-readable JSON output, or want a stateless utility with no data retention. Ideal for multi-step agent orchestration where predictable per-step timeouts are required.

## Known failure modes

- Mismatched array lengths between steps and weights returns a validation error
- Zero or negative total_budget_ms may produce a 400 bad request
- Empty steps array returns an error or trivial result
- All-zero weights array may cause a division-by-zero or validation error
- Payment failure via x402 returns a 402 response before computation occurs

## How this service works

Allocate a total millisecond budget across ordered workflow steps using optional weights — call when you must split one wall-clock budget across ordered steps. Use before side effects when composing multi-step agent jobs—the same loyalty/workflow demand band agents already pay for on Bazaar, but fully local. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and…

## Output

A deterministic JSON object mapping each workflow step name to its allocated millisecond budget, computed from the total budget and optional weights. If no weights are provided, the budget is split equally. The response is machine-readable and stateless.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "steps": {
   "type": "array",
   "description": "Ordered workflow step names to allocate the total budget across."
  },
  "weights": {
   "type": "array",
   "description": "Optional relative weights aligned with steps; equal weights if omitted."
  },
  "total_budget_ms": {
   "type": "number",
   "description": "Total millisecond budget to split across steps."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "plan": [
   {
    "step": "fetch",
    "weight": 1,
    "budget_ms": 750
   },
   {
    "step": "parse",
    "weight": 2,
    "budget_ms": 1500
   },
   {
    "step": "decide",
    "weight": 1,
    "budget_ms": 750
   }
  ],
  "schema": "delx/util-step-budget-plan/v1",
  "step_count": 3,
  "total_budget_ms": 3000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-step-budget-plan-6a3ab02a/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)
