{"uid":"cap_YxugdhInF1dD-vMJDQa3r","slug":"preplayer-ai-batch-endpoint-68d92d07","name":"PrepLayer.ai Batch Endpoint","description":"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.","url":"https://api.maximusmediahouse.com/v1/batch?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.4/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.4","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.4","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FfJYDbuLWr0yqlw_9RWkY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.4","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"ETL pipeline pre-processing batch","prompt":"Before we store these 10 user-submitted text fields, run them through PrepLayer's batch endpoint — normalize the first three, validate the emails in the next four, and hash the last three for dedup checks — all in one call."},{"title":"Content moderation intake pipeline","prompt":"I have a new user post coming in — can you batch a classify call to check for urgency and credential phishing signals, a redact call to strip any PII, and a slugify call to generate a safe URL handle, all in one PrepLayer batch request?"},{"title":"Document ingestion and diff workflow","prompt":"We just got two versions of a contract — run a PrepLayer batch with a diff of the two texts, a chunk of the newer version, and a validate_json on the metadata block, all together so we get everything back in one response."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:36:53.731Z","isFirstParty":false,"canonicalSlug":"preplayer-ai-batch-endpoint-68d92d07"}