{"uid":"cap_U2FL6H4pJ_BXriBgapXb7","slug":"one-engine-text-normalize-trim-61eddf63","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/t8?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.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1kdIPVjJvFMCFE5BbmEvt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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":"Trim the whitespace from the beginning and end of this text: '   Hello world, this is my document content that needs cleaning.   '","exampleUseCases":[{"title":"Clean scraped web content","prompt":"I just scraped some text from a webpage and it has a bunch of extra spaces at the start and end — can you trim all that whitespace off it before I store it?"},{"title":"Normalize user-submitted form input","prompt":"A user submitted a comment with leading and trailing spaces. Can you trim that whitespace from the text '   Great product, loved it!   ' so it's clean before I save it to the database?"},{"title":"Preprocess text before embedding","prompt":"Before I send this document chunk to my embedding model, can you trim any extra whitespace off the edges? Here's the text: '\n\n  This is the body of my document.  \n\n'"}],"resultDescription":"Returns a JSON object containing the trimmed version of the input text with leading and trailing whitespace removed, up to 50,000 characters input size.","failureModes":["Text exceeds 50,000 character limit — request rejected","Missing required 'text' field — validation error","Payment failure via x402 protocol — call not processed","Empty string input may return empty result"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call text trimming operation without spinning up your own infrastructure, especially in autonomous agent pipelines on Base using x402 micropayments. Useful when you want a reliable remote trim operation as part of a larger text normalization workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:11.927Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-trim-61eddf63"}