x402
utility

Recommend a batch size from item count, hard cap, and average item bytes — call when batching micro-calls under item and byte caps. Use before side effects when composing multi-step agent jobs—the same loyalty/workflow demand band agents already pay for on Bazaar, but fully local. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media generation. Results are advisory; the caller owns authorization and production controls.

post/api/v1/x402/batch-size-plan

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/batch-size-plan
  • Auth: none declared

Request body

item_countnumber required

Number of items to batch.

max_batchnumber

Hard maximum items per batch.

max_bytesnumber

Hard maximum bytes per batch.

avg_item_bytesnumber

Average bytes per item used for the byte-limited batch size.

Response

Paid utility result. Downstream tool errors are returned as structured result payloads with HTTP 200 after payment succeeds.

schemastring
item_countinteger
recommended_batch_sizeinteger
estimated_batchesinteger
max_batchinteger
byte_limited_batchinteger

Changes

No recorded changes to this operation across all 1 revision of this API.