# Image Result Contract Check

> Image Result Contract 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-13).

Validates caller-supplied image delivery metadata (URL, hash, MIME type, size, dimensions) against a contract without fetching or generating any media, returning contract gaps and a normalized receipt.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/image-result-contract-check
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/image-result-contract-check-4b1a5bf7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X62F5TVe7nH9j8-uIQ-jj

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 image-result-contract-check-4b1a5bf7 -d '<json body>'
```

Example prompt: Before I accept this image purchase, can you check the image result object against the contract — validate the HTTPS URL, SHA-256 shape, MIME type, and make sure it's under 20 MB, 8192px wide, and 8192px tall?

## When to prefer this

Use this endpoint when an AI agent needs to screen an image delivery result for contract compliance before accepting or settling a purchase, without actually downloading or generating any media. Prefer it over generic schema validators when you need explicit contract-gap reporting on image-specific fields (URL scheme, SHA-256 shape, MIME type, byte ceiling, dimension ceilings) and a normalized receipt. It is local-only and safe to call during pending refund states.

## Known failure modes

- Missing or malformed 'result' object returns validation errors listing absent fields
- Non-HTTPS artifact URL flagged as a contract gap
- SHA-256 hash in unexpected format triggers hash shape error
- Unsupported MIME type causes MIME contract gap
- Byte size exceeding max_size_bytes (up to 104857600) returns size ceiling violation
- Width or height exceeding max_width or max_height (up to 32768) returns dimension ceiling violation
- Payment failure via x402 prevents receipt from being issued

## How this service works

Validate caller-supplied image delivery metadata before accepting an agent purchase. Checks HTTPS artifact URL, SHA-256 shape, supported MIME type, byte ceiling, and dimension ceilings without fetching or generating media. Returns explicit contract gaps and a normalized receipt for 0.001 USDC via x402 on Base; local-only and safe while generation refunds are pending.

## Output

Returns a list of explicit contract gaps (e.g. invalid URL scheme, unsupported MIME type, hash shape mismatch, size or dimension ceiling exceeded) along with a normalized receipt confirming the validated metadata fields. No media is fetched or generated; the check is purely local against the supplied metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "result": {
   "type": "object"
  },
  "max_width": {
   "type": "integer",
   "default": 8192,
   "maximum": 32768,
   "minimum": 1
  },
  "max_height": {
   "type": "integer",
   "default": 8192,
   "maximum": 32768,
   "minimum": 1
  },
  "max_size_bytes": {
   "type": "integer",
   "default": 20971520,
   "maximum": 104857600,
   "minimum": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "gaps": [],
  "valid": true,
  "limits": {
   "max_width": 8192,
   "max_height": 8192,
   "max_size_bytes": 20971520
  },
  "schema": "delx/util-image-result-contract-check/v1",
  "normalized_receipt": {
   "url": "https://cdn.example.com/output.webp",
   "width": 1024,
   "height": 1024,
   "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
   "size_bytes": 245760,
   "content_type": "image/webp"
  },
  "checked_without_fetch": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/image-result-contract-check-4b1a5bf7/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)
