{"uid":"cap_6s8BewuKgM3as1YZxMK5Z","slug":"one-engine-text-normalize-trim-top-10-650d6e5f","name":"ONE Engine Text Normalize Trim (Top 10)","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/t10?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.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9th9pNa1Vd6QI9pN2nq44","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Trims and normalizes whitespace or formatting in a text string, returning up to the top 10 normalized results.","exampleAgentPrompt":"Can you trim and normalize all the extra whitespace and formatting in this text: '   Hello,   world!   This is   some   messy   text.   '?","exampleUseCases":[{"title":"Cleaning scraped web content","prompt":"I just scraped some text from a webpage and it's full of extra spaces and irregular whitespace — can you trim and normalize it so it's clean and ready to use? Here's the text: '   Welcome   to   our   site!   Visit   us   today.   '"},{"title":"Preprocessing user input before storage","prompt":"Before I save this user-submitted form response to my database, can you normalize and trim it to remove any stray whitespace? The text is: '  John    Doe    —   Software   Engineer  '"},{"title":"Normalizing document chunk for NLP pipeline","prompt":"I need to clean up this document chunk before feeding it into my NLP pipeline — please trim and normalize all the whitespace: '   Natural   language   processing   is   fascinating.   It   enables   many   applications.   '"}],"resultDescription":"Returns a JSON object containing up to 10 normalized/trimmed versions or representations of the input text, with whitespace and formatting cleaned according to the normalization rules applied by the trim operation.","failureModes":["Text exceeding 50,000 characters may be rejected or truncated","Missing required 'text' field returns a validation error","Empty string input may return an empty or trivial result","Payment failure via x402 on Base blocks the request","Malformed JSON body returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call text trimming and normalization operation without spinning up a local NLP library. It is ideal for autonomous agents that occasionally need to clean text strings on-demand and want to pay only for what they use via x402 microtransactions on Base. It is well-suited for preprocessing steps in pipelines handling moderate-length text (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:43:38.872Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-trim-top-10-650d6e5f"}