# Batch Error Budget Check

> Batch Error Budget Check 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).

Validates whether a batch's failed item count and failure fraction are within caller-specified budget thresholds, returning bounded counts, normalized values, and a versioned deterministic result.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/batch-error-budget-check
- 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/batch-error-budget-check-83db7d3b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4n3df3hjEeX-DZt6iHc2i

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-error-budget-check-83db7d3b -d '<json body>'
```

Example prompt: Before we send this batch downstream, check if it's within budget — we processed 500 items total, 23 failed, and our limits are a maximum of 30 failures and a maximum failure fraction of 0.06.

## When to prefer this

Use this endpoint when you need a fast, deterministic, in-memory check of whether a batch's failure rate is within caller-defined budgets before passing structured data to a downstream tool with a strict contract. Prefer this over custom logic when you need a versioned, auditable result with normalized values and no external dependencies or data retention.

## Known failure modes

- Missing required fields (total, failed, maximum_failed, or maximum_failure_fraction) result in a validation error
- Non-integer values for total or failed fields cause a schema rejection
- failed greater than total may return an error or undefined behavior
- maximum_failure_fraction outside [0,1] range may produce unexpected results
- Network or payment failure results in no response

## How this service works

Batch Error Budget Check: Batch Error Budget Check checks failed item count and fraction against caller budgets from bounded caller-supplied values without an external provider. Call Batch Error Budget Check 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 Error Budget Check as versioned deterministic JSON. Price:…

## Output

Returns a versioned deterministic JSON object containing the bounded failure count, normalized failure fraction, whether each threshold was exceeded, and a versioned result contract indicating pass or fail against both the absolute failure count budget and the maximum failure fraction budget.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "total": {
   "type": "integer",
   "description": "Total supplied to Batch Error Budget Check; used only for this bounded calculation and processed in memory without retention."
  },
  "failed": {
   "type": "integer",
   "description": "Failed supplied to Batch Error Budget Check; used only for this bounded calculation and processed in memory without retention."
  },
  "maximum_failed": {
   "type": "integer",
   "description": "Maximum Failed supplied to Batch Error Budget Check; used only for this bounded calculation and processed in memory without retention."
  },
  "maximum_failure_fraction": {
   "type": "number",
   "description": "Maximum Failure Fraction supplied to Batch Error Budget Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "within_budget": true,
   "failure_fraction": 0.02
  },
  "schema": "delx/util-batch-error-budget-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "8b15167fa2df66d4e3d2a52dd4444cb183d36be4420fe605061ab083c80646bd",
   "external_calls": 0
  },
  "operation": "data_batch:batch_error_budget_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/batch-error-budget-check-83db7d3b/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)
