{"uid":"cap_2IO2lJaizyJQxb16ujWM4","slug":"one-engine-text-normalize-trim-b2953805","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/t7?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.0065","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.0065/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yR-KejmgfpuVljmttDmFn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0065","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 whitespace from the start and end of this text for me: '   Hello, world!   '?","exampleUseCases":[{"title":"Sanitize user form input","prompt":"I have a user-submitted name field that came in as '   Jane Doe   ' — can you strip the leading and trailing spaces so it's clean before I save it?"},{"title":"Normalize scraped web content","prompt":"I scraped this paragraph from a webpage and it has a bunch of extra spaces at the beginning and end — can you trim it so the text is clean?"},{"title":"Clean up log file entries","prompt":"These log lines I pulled have inconsistent whitespace padding around them. Can you trim each one so they're normalized before I parse them?"}],"resultDescription":"Returns a JSON object containing the trimmed version of the input text, with all leading and trailing whitespace removed. The response schema is open (additionalProperties: true), so the exact field name(s) holding the result may vary.","failureModes":["Text exceeds 50,000 character limit — request rejected","Missing required 'text' field in request body — validation error","Payment failure via x402 (insufficient USDC balance or wallet misconfiguration) — 402 response","Network timeout connecting to Cloudflare Worker — no response"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call microservice to trim whitespace from text strings, especially in autonomous agent pipelines that already use x402 micropayments on Base. It is ideal for high-frequency, low-cost text sanitization tasks where spinning up a local function is undesirable or where you want a consistent, auditable API call in your workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:10.692Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-trim-61eddf63"}