InputPOST /api/v1/x402/truncate-middle
{
"text": "abcdefghijklmnopqrstuvwxyz",
"max_chars": 11
}
Agent data quality · data-quality
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.
One-command purchase
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/truncate-middle -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"text":"abcdefghijklmnopqrstuvwxyz","max_chars":11}'
{
"text": "abcdefghijklmnopqrstuvwxyz",
"max_chars": 11
}
{
"schema": "delx/util-truncate-middle/v1",
"text": "abcde…vwxyz",
"max_chars": 11,
"truncated": true
}
Machine-readable evidence