{"uid":"cap_H2j5Fp0XswCu6GsQDOUew","slug":"one-engine-text-normalize-trim-7b1e9bb3","name":"ONE Engine Text Normalize Trim","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/text-normalize/trim/t4?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text up to 50000 characters"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tQ--og8uDEF7lZlUBJea4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Trims leading and trailing whitespace from text strings up to 50,000 characters via a pay-per-call API.","exampleAgentPrompt":"Can you trim the whitespace from the beginning and end of this text: '   Hello, world!   ' — I need it cleaned up before I pass it along.","exampleUseCases":[{"title":"Clean user input before storage","prompt":"Take this user-submitted form field value and strip any leading or trailing spaces from it before I save it to the database: '   John Doe   '"},{"title":"Normalize agent-generated output","prompt":"The text my pipeline just produced has extra whitespace padding at the start and end — can you trim it so it's clean? Here it is: '\\n\\n  Some generated content here.  \\n'"},{"title":"Preprocess text before sentiment analysis","prompt":"Before I run sentiment analysis, I need to normalize this review text by trimming any surrounding whitespace: '   The product was absolutely fantastic!   '"}],"resultDescription":"Returns a JSON object containing the trimmed version of the input text, with leading and trailing whitespace removed. The exact response shape may vary but will include the processed text result.","failureModes":["Text exceeds 50,000 character limit — request rejected","Missing required 'text' field in request body — validation error","Insufficient USDC balance for x402 micropayment — payment failure","Malformed JSON request body — parse error","Network or Cloudflare Worker downtime — 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call text trimming operation without setting up your own string-processing infrastructure. Ideal for autonomous agents that occasionally need to normalize text as part of a pipeline and want a simple, cheap utility call (at $0.0015 USDC) rather than spinning up a full text-processing service. Best for single text inputs up to 50,000 characters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:30:01.520Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-trim-61eddf63"}