{"uid":"cap_od1ILo5Ok8ZBwNUhFN1mW","slug":"one-engine-text-trim-3b82473d","name":"ONE Engine Text 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/t6?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.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9EBPGODqCNQkQSN_EMd30","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","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 text strings up to 50,000 characters","exampleAgentPrompt":"Can you trim the whitespace off the edges of this text before I store it: '   Hello world, this is my output.   '?","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 beginning and end — can you trim it so it's clean before I pass it to the next step?"},{"title":"Normalize agent-generated output","prompt":"The text my AI pipeline just returned has leading and trailing whitespace that's messing up my downstream parser. Can you strip that off for me?"},{"title":"Prepare user input for storage","prompt":"Before saving this user-submitted comment to the database, trim any leading or trailing spaces from it: '   Great product, loved it!   '"}],"resultDescription":"A JSON object containing the input text with all leading and trailing whitespace removed, ready for downstream agent processing or storage.","failureModes":["Text exceeds 50,000 character limit — request rejected","Missing required 'text' field — validation error returned","Payment failure via x402 — 402 response if USDC balance insufficient","Empty string input — returns empty string without error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a fast, cheap, stateless utility to trim whitespace from text edges (up to 50,000 characters) without any complex NLP or transformation logic. At $0.004 per call it is ideal for high-frequency preprocessing pipelines where normalizing text edges is a routine step before storage, analysis, or further processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:40.082Z","isFirstParty":false,"canonicalSlug":"one-engine-text-trim-3b82473d"}