# Agent Result Cost Check

> Agent Result Cost 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 declared agent result cost falls within a caller-supplied USDC budget, returning an explicit accept/reject status with mismatch reasons

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/agent-result-cost-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/agent-result-cost-check-2ee6d7f1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N40UaAErvVNHvii7JHD3O

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 agent-result-cost-check-2ee6d7f1 -d '<json body>'
```

Example prompt: Before you pay for this agent result, check if the declared cost of 0.05 USDC is within my maximum budget of 0.10 USDC and tell me whether to accept or reject it.

## When to prefer this

Use this endpoint when you need a deterministic, stateless, in-memory cost guard before accepting or paying for an x402 agent result — especially when you cannot trust the caller to self-report accurate costs and need an independent, versioned audit trail of the accept/reject decision with explicit mismatch reasons.

## Known failure modes

- Missing or malformed cost_usdc string causes validation to fail with input error
- Missing or malformed maximum_usdc string causes budget check to abort
- Non-numeric cost or budget strings return a parse error
- cost_usdc exceeding maximum_usdc returns rejection with mismatch reason
- Payment failure for the $0.001 USDC call fee returns 402 error

## How this service works

Agent Result Cost Check: Agent Result Cost Check checks declared result cost against a call budget from bounded caller-supplied values without an external provider. Call Agent Result Cost Check before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for Agent Result Cost Check as versioned deterministic JSON. Price…

## Output

Returns versioned deterministic JSON containing contract-specific validation checks, normalized cost evidence, explicit accept or reject status, and a list of mismatch reasons explaining why the cost was accepted or rejected relative to the stated budget.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cost_usdc": {
   "type": "string",
   "maxLength": 8192,
   "description": "Cost USDC supplied to Agent Result Cost Check; used only for this bounded calculation and processed in memory without retention."
  },
  "maximum_usdc": {
   "type": "string",
   "maxLength": 8192,
   "description": "Maximum USDC supplied to Agent Result Cost Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "amount_usdc": "0.001",
   "maximum_usdc": "0.002",
   "within_budget": true
  },
  "schema": "delx/util-agent-result-cost-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "22cac9b8faf2680905382f84e7f4ba215e19e1473c911e345e9e10defcc59533",
   "external_calls": 0
  },
  "operation": "delivery_contract:agent_result_cost_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-result-cost-check-2ee6d7f1/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)
