{"uid":"cap_t2xteg-QcoI6o4Cwl9Fmq","slug":"one-engine-t5-text-trim-normalizer-05cb6613","name":"ONE Engine T5 Text Trim Normalizer","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/t5?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.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TbXxoWUosZUFHdL8evcwO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes and trims text input using a T5-based model, removing excess whitespace and cleaning up text formatting.","exampleAgentPrompt":"Clean up and normalize this messy scraped text for me — it has inconsistent spacing and stray whitespace throughout: 'Hello   world,  this   is   a   test   string  with  lots  of   extra   spaces.'","exampleUseCases":[{"title":"Preprocessing scraped web content","prompt":"I just scraped a bunch of text from a webpage and it's full of weird extra spaces and line breaks. Can you normalize and trim it so it's clean before I feed it into my summarizer? Here's the text: 'Product   Description:   This   item  is   great  for   everyday   use .  '"},{"title":"Cleaning OCR output for document pipeline","prompt":"My OCR tool just processed a scanned document and the output text has tons of inconsistent whitespace and weird formatting. Please normalize and trim it so it reads cleanly — the raw output is: '  Invoice  Number :  12345   Date :  2024 - 01 - 15  Amount :  $ 500 .00  '"},{"title":"Standardizing user-submitted form input","prompt":"A user submitted a text field in my form and the input has leading spaces, trailing spaces, and double spaces throughout. Normalize and trim it for me before I store it: '   John   Smith ,   123  Main Street ,   Springfield   '}],"}],"resultDescription":"Returns a JSON object containing the normalized and trimmed version of the submitted text, with excess whitespace removed and text cleaned via T5-based normalization.","failureModes":["Text exceeds 50000 character limit — request rejected","Empty text field — may return error or empty result","Malformed JSON body — 400 bad request","Payment not included or insufficient — 402 Payment Required","Network timeout on large inputs — partial or no response","Model inference failure — 500 internal server error"],"whenToPreferThis":"Choose this endpoint when you need lightweight, cost-effective text normalization and trimming at $0.0025 per call via x402 micropayments on Base, particularly for preprocessing pipelines where you want to clean whitespace and normalize text without running a full NLP stack locally. Ideal for agentic workflows needing per-call billing with no subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:22.888Z","isFirstParty":false,"canonicalSlug":"one-engine-t5-text-trim-normalizer-05cb6613"}