{"uid":"cap_g2UBeDTJ0vcQAjfeFZc0V","slug":"one-engine-text-normalize-trim-41bec95e","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/t3?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.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uUf-OMGTuUhJ8vAoq4CfK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","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 via a pay-per-call API.","exampleAgentPrompt":"Trim the whitespace from the start and end of this text for me: '   Hello, world!   ' — I need it cleaned up before I pass it to the next step.","exampleUseCases":[{"title":"Clean user input before storage","prompt":"I have a user-submitted form field that often has extra spaces at the beginning and end — can you trim this text before we save it: '  John Doe  '?"},{"title":"Normalize scraped web content","prompt":"I just scraped this product description from a website and it has a bunch of leading and trailing whitespace — please trim it so it looks clean: '   High-quality noise-cancelling headphones.   '"},{"title":"Preprocess text for NLP pipeline","prompt":"Before I run sentiment analysis on this customer review, I need to strip the extra spaces from both ends: '   The service was excellent but the wait was long.   '"}],"resultDescription":"Returns a JSON object containing the trimmed version of the input text, with leading and trailing whitespace removed. The response schema is open (additionalProperties: true), so the result object may include the processed text and potentially metadata about the operation.","failureModes":["Text exceeds 50,000 character limit — request rejected","Missing required 'text' field — validation error returned","Payment failure via x402 on Base — call not processed","Network timeout on Cloudflare Workers edge — retry required","Malformed JSON body — parse error returned"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, low-cost ($0.001 USDC) programmatic trim operation within an autonomous agent pipeline that already uses x402/Base payments, and you want to avoid importing string libraries or handling edge cases yourself. Best for agents needing reliable, stateless text normalization as a micro-step in a larger workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:14.957Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-trim-61eddf63"}