{"uid":"cap_M7fKap3otCoiQM8e5TROs","slug":"one-engine-text-normalize-trim-3c285d75","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/t2?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.0007","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.0007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_E17JCljS-6u9GPB_7FLLn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0007","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 a text string up to 50,000 characters.","exampleAgentPrompt":"Can you trim the whitespace off the edges of this text for me: '   Hello, world!   '?","exampleUseCases":[{"title":"Clean user-submitted form input","prompt":"I just received some user input from a form field and it has extra spaces at the beginning and end — can you trim it clean so I can safely store it in the database? The text is: '   John Doe   '"},{"title":"Normalize API response strings","prompt":"This API response came back with leading and trailing whitespace that's messing up my comparisons — can you trim this string for me: '  order_confirmed  '?"},{"title":"Prepare text before keyword matching","prompt":"Before I run keyword matching on this paragraph, I want to strip any leading or trailing spaces from it. Here's the text: '   The quick brown fox jumps over the lazy dog.   '"}],"resultDescription":"Returns a JSON object containing the trimmed version of the input text, with leading and trailing whitespace removed.","failureModes":["Text exceeds 50,000 character limit — returns an error response","Missing required 'text' field in request body — returns a validation error","Payment failure via x402 — request rejected before processing"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call microservice to trim whitespace from strings without standing up your own text processing infrastructure. Ideal for autonomous agents that occasionally need to normalize text inputs at very low cost ($0.0007 USDC per call) without bundling a full NLP or text processing library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:27.515Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-trim-61eddf63"}