x402
utility

Truncate long text in the middle with an ellipsis. Call when you keep start+end context inside UI/log width limits. Returns truncated text and truncated flag for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

post/api/v1/x402/truncate-middle

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/truncate-middle
  • Auth: none declared

Request body

textstring required

Input field: text.

max_charsinteger required

Input field: max chars.

Response

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

schemastring
textstring
max_charsinteger
truncatedboolean

Changes

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