{"uid":"cap_OYIVU5s12putYwdv3HwSP","slug":"one-engine-t5-whitespace-normalizer-2e82dbfc","name":"ONE Engine T5 Whitespace 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/whitespace/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_74fBGy4ngehrk33f9SsnQ","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 whitespace in text up to 50,000 characters using a T5-based model, removing irregular spacing, tabs, and newlines.","exampleAgentPrompt":"Clean up the whitespace in this text for me — it's got irregular spaces, extra newlines, and random tabs scattered throughout: 'Hello   world\\n\\n  this  is\\t\\ta   messy   string.'","exampleUseCases":[{"title":"Preprocessing scraped web content","prompt":"I just scraped a bunch of web pages and the text is full of weird extra spaces and newlines. Can you normalize all the whitespace in this block of text before I run it through my embedding pipeline?"},{"title":"Cleaning user-generated form input","prompt":"A user submitted a support ticket with all kinds of random double-spaces and stray tabs in it. Can you clean up the whitespace so it reads properly before I store it in the database?"},{"title":"Fixing copied document formatting","prompt":"I pasted this text from a PDF and it's got inconsistent spacing all over the place. Can you normalize the whitespace so it's clean and readable?"}],"resultDescription":"Returns a JSON object containing the whitespace-normalized version of the input text, with irregular spaces, tabs, and extraneous newlines cleaned and standardized.","failureModes":["Text exceeds 50,000 character limit — request rejected","Empty or missing 'text' field — validation error returned","Payment failure via x402 — 402 response with payment requirements","Upstream T5 model timeout — 5xx error returned","Malformed JSON body — 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call whitespace normalization step for text preprocessing pipelines — especially useful for cleaning scraped web content, user-generated text, or PDF-extracted strings before downstream NLP tasks like embedding, classification, or search indexing. Prefer this over regex-based approaches when you want model-aware normalization that understands natural language spacing conventions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:15.486Z","isFirstParty":false,"canonicalSlug":"one-engine-t5-whitespace-normalizer-2e82dbfc"}