{"uid":"cap_jRi4yVvvWb3KTDCxaV-Xm","slug":"one-engine-text-normalize-trim-19c0c533","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/t1?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.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ySx8jFxXLCMuG7rWgvZlv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","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 of up to 50,000 characters.","exampleAgentPrompt":"Can you trim the leading and trailing whitespace from this text: '   Hello, world!   This is my input.   '?","exampleUseCases":[{"title":"Sanitize scraped web content","prompt":"I just scraped some HTML content and it has a bunch of leading and trailing whitespace around the actual text — can you trim it so it's clean before I analyze it?"},{"title":"Normalize user-submitted form input","prompt":"A user submitted this text in a form field and it has extra spaces at the start and end: '   Please contact me asap.   ' — strip the surrounding whitespace for me."},{"title":"Clean LLM output before storing","prompt":"The AI response I got has some extra blank space at the beginning and end, can you trim that raw text so it's tidy before I save it to the database?"}],"resultDescription":"Returns a JSON object containing the trimmed version of the input text with leading and trailing whitespace removed.","failureModes":["Text exceeding 50,000 characters may be rejected or truncated","Missing required 'text' field returns a validation error","Payment failure via x402 (insufficient USDC balance) returns 402 status"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call, on-chain-payable utility to trim whitespace from text within an autonomous agent pipeline on Base, especially when you want a simple single-operation transformation without standing up your own string processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:41:55.061Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-trim-61eddf63"}