{"uid":"cap_wRE_Xf9lT4ou8wuV1fcfd","slug":"delx-commerce-text-truncate-api-c2a94145","name":"Delx Commerce Text Truncate API","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/text-truncate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_itaqj4DB4TSxhfIKH7NWI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Truncates text to a specified length or limit via a pay-per-call HTTP API using USDC micropayments on Base or Solana.","exampleAgentPrompt":"Truncate this product description to 150 characters: 'The Delx Commerce platform offers pay-per-result APIs for AI agents with no signup required, exact pricing, verifiable delivery, and USDC payments on Base and Solana.'","exampleUseCases":[{"title":"Trim product description for listing card","prompt":"Shorten this product description to 200 characters for the preview card: 'Our premium noise-cancelling headphones deliver crystal-clear audio, 40-hour battery life, and foldable design perfect for travel and remote work.'"},{"title":"Clip article excerpt for social post","prompt":"I need to truncate this article intro to 280 characters so it fits in a tweet: 'Artificial intelligence is reshaping the global economy at an unprecedented pace, with new models emerging every month that outperform their predecessors on benchmarks once thought years away from being reached.'"},{"title":"Enforce database field character limit","prompt":"Cut this user bio down to 100 characters before I store it — here it is: 'Passionate software engineer with 10 years of experience building distributed systems, open-source contributor, coffee enthusiast, and weekend hiker.'"}],"resultDescription":"A JSON object containing the truncated version of the submitted text, cut to the specified length or limit defined in the request body. The response conforms to the output example schema declared at call time.","failureModes":["Missing required 'input' or 'output' fields returns a validation error","Incorrect bodyType enum value causes request parsing failure","Empty or null body text may return an empty truncated result or error","Payment failure via x402 protocol prevents execution and returns 402 Payment Required","Malformed JSON body causes a 400-level parse error","Overly large input body may exceed payload limits and return 413"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, no-signup text truncation utility that charges only per successful call via USDC micropayment. It is ideal for AI agent workflows that require verifiable, pay-per-result processing without API key management or subscription overhead. Prefer it over self-hosted string truncation when auditability of the operation and crypto-native payment rails (Base or Solana) matter to the workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:49.060Z","isFirstParty":false,"canonicalSlug":"delx-commerce-text-truncate-api-c2a94145"}