# Batch Completion Gate

> Batch Completion Gate 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-23).

Validates whether a batch of items meets terminal coverage and a minimum success fraction threshold, returning counts, normalized values, and a pass/fail verdict.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/batch-completion-gate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/batch-completion-gate-6b1d5e8b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X5ZL6hCWq2wQeCuLeksOs

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-completion-gate-6b1d5e8b -d '<json body>'
```

Example prompt: Before we pass these results to the next stage, check if the batch meets our minimum success threshold — we ran 200 total tasks, 162 succeeded, 18 failed, and 20 are still pending, and we need at least 80% success to proceed.

## When to prefer this

Use this endpoint when an AI agent or workflow orchestrator needs a deterministic, stateless pass/fail gate on batch completion before handing off to a downstream tool with stricter contracts. Prefer it over custom logic when you need a versioned, reproducible result contract and normalized success metrics without building the validation yourself.

## Known failure modes

- Invalid input types (non-integer counts) cause rejection
- Negative counts or counts exceeding total may produce unexpected results
- minimum_success_fraction outside [0,1] range may cause errors
- Missing required fields (total, succeeded) may return incomplete verdict
- Network errors result in no verdict being returned

## How this service works

Batch Completion Gate: Batch Completion Gate checks terminal item coverage and minimum success fraction from bounded caller-supplied values without an external provider. Call Batch Completion Gate 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 Completion Gate as versioned deterministic JSON. Price: $0.001 USDC vi…

## Output

Returns a versioned deterministic JSON object containing: a pass/fail completion verdict, the computed success fraction (normalized), raw counts for succeeded/failed/pending/total items, and a versioned result contract identifier for reproducibility.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "total": {
   "type": "integer",
   "description": "Total supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."
  },
  "failed": {
   "type": "integer",
   "description": "Failed supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."
  },
  "pending": {
   "type": "integer",
   "description": "Pending supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."
  },
  "succeeded": {
   "type": "integer",
   "description": "Succeeded supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."
  },
  "minimum_success_fraction": {
   "type": "number",
   "description": "Minimum Success Fraction supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "accepted": true,
   "terminal": true,
   "success_fraction": 0.98,
   "counts_consistent": true
  },
  "schema": "delx/util-batch-completion-gate/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "45cc9ea2025aa13c530cde0b88f740e2a6bf1c0fe987a0a48ab911605f109e36",
   "external_calls": 0
  },
  "operation": "data_batch:batch_completion_gate"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/batch-completion-gate-6b1d5e8b/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)
