# PrepLayer.ai Batch Endpoint

> PrepLayer.ai Batch Endpoint is a paid API for AI agents from api.maximusmediahouse.com, paid per call via x402, $0.4/call, status unknown (last checked 2026-10-29).

Execute up to 10 text-processing primitive calls (normalize, validate, extract, redact, classify, dedupe, diff, chunk, slugify, hash, etc.) in a single round-trip request at a 20% discount over individual calls.

## Facts

- Endpoint: POST https://api.maximusmediahouse.com/v1/batch?utm_source=zero.xyz
- Price: $0.4/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/preplayer-ai-batch-endpoint-68d92d07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YxugdhInF1dD-vMJDQa3r

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 preplayer-ai-batch-endpoint-68d92d07 -d '<json body>'
```

Example prompt: I need to process this incoming user record in one shot — normalize the text, extract any emails and phone numbers, and redact the PII all at once using PrepLayer's batch endpoint so I only pay for one round trip.

## When to prefer this

Choose this batch endpoint when you need to apply 2–10 different PrepLayer text primitives to inputs in a single pipeline step and want to minimize latency and cost. At $0.04 per call (vs $0.05 single-call), it provides a 20% discount and eliminates multiple HTTP round trips. Prefer it over chaining individual PrepLayer endpoints when all inputs are available upfront and you don't need streaming or inter-step dependencies.

## Known failure modes

- Exceeding 10 sub-requests returns a validation error
- Invalid endpoint enum value causes the entire batch or individual item to fail
- Malformed input body for a sub-request may return a per-item error without failing the whole batch
- x402 payment failure or insufficient USDC balance blocks the entire request
- Network id mismatch (unsupported chain) results in payment rejection
- Empty requests array is rejected by minItems:1 constraint

## How this service works

Run up to 10 primitive calls in one round trip. One x402 payment of $0.40 (=$0.04 per call, 20% off the single-call price). Each request specifies an `endpoint` (normalize, validate, extract, redact, classify, dedupe, diff, chunk, extract_custom, validate_json, slugify, hash) and the input for it; the response carries 10 results in the same order. Single-call batch — no streaming.

## Output

An ordered array of up to 10 results corresponding to each sub-request in the same sequence they were submitted. Each result reflects the output of the specified primitive (e.g. normalized text, extracted entities with byte offsets, redacted string with PII spans, classification labels, hash digest, slug, diff edit script, validation errors, dedupe fingerprint, or text chunks).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "network": {
   "type": "string",
   "description": "Optional x402 network id (defaults to eip155:8453)."
  },
  "requests": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "endpoint",
     "input"
    ],
    "properties": {
     "input": {
      "type": "object",
      "description": "The per-endpoint input body."
     },
     "endpoint": {
      "enum": [
       "normalize",
       "validate",
       "extract",
       "redact",
       "classify",
       "dedupe",
       "diff",
       "chunk",
       "extract_custom",
       "validate_json",
       "slugify",
       "hash"
      ],
      "type": "string"
     }
    }
   },
   "maxItems": 10,
   "minItems": 1,
   "description": "Up to 10 sub-requests."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/preplayer-ai-batch-endpoint-68d92d07/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.maximusmediahouse.com](https://www.zero.xyz/host/api.maximusmediahouse.com/llms.txt)
