x402
utility

Measure payload byte size against soft and hard ceilings before paying. Call when you need this bounded result before handing data to a downstream tool. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Honest limit: execution uses only caller-supplied data in memory; it does not call a paid upstream, retain input, search the web, read a live RPC, or invoke a media generator. Results are advisory; the caller owns authorization, budgets, and production controls.

post/api/v1/x402/payload-size-check

Request

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

Request body

payloadobject required

Input field: payload.

soft_limit_bytesinteger

Input field: soft limit bytes.

hard_limit_bytesinteger

Input field: hard limit bytes.

Response

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

schemastring
bytesinteger
charsinteger
soft_limit_bytesinteger
hard_limit_bytesinteger
within_softboolean
within_hardboolean
statusstring
recommend_truncateboolean

Changes

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