{"uid":"cap_v7z5VxZwkCRjTV_IkguSK","slug":"one-engine-text-normalize-control-clean-top-10-3a3e7034","name":"ONE Engine Text Normalize Control-Clean (Top-10)","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/control-clean/t10?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.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ccWUHTcP-jezVqNzbXSmd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes and cleans text by removing control characters and noise, returning the top-10 cleaned segments or tokens.","exampleAgentPrompt":"Clean this raw text by removing any control characters and normalizing it — here's the input: 'Hello\\u0000 World\\u0003\\nThis is\\u001F messy text with hidden\\u0008 control chars.' Give me the top 10 cleaned segments.","exampleUseCases":[{"title":"Sanitizing scraped web content","prompt":"I just scraped a bunch of web pages and the text is full of weird control characters and junk. Can you normalize and clean this text for me so it's ready for analysis? Here it is: 'Product title:\\u0000 Widget Pro\\u0003\\nPrice: $29.99\\u001F\\nDescription: Great product\\u0008 for home use.'"},{"title":"Cleaning PDF-extracted text","prompt":"I extracted text from a PDF and it's got all kinds of control characters and noise in it. Can you run it through the control-clean normalizer and give me the top 10 clean segments? Here's the text: 'Annual Report 2023\\u000C\\nRevenue: $1.2M\\u0000\\nExpenses:\\u001B[31m $800K\\u001B[0m\\nNet profit: $400K.'"},{"title":"Preprocessing user-submitted content","prompt":"A user submitted this bio and it has hidden control characters that are breaking our downstream text processing. Please normalize and clean it, stripping all control characters: 'My name is Alex.\\u0000 I love coding\\u0003 and building apps.\\u001F I live in NYC.'"}],"resultDescription":"Returns a JSON object containing the normalized, control-character-free version of the input text, structured as up to 10 cleaned segments or top-ranked cleaned text outputs, ready for downstream processing.","failureModes":["Text exceeding 50000 characters will likely be rejected or truncated","Empty or whitespace-only input may return an empty result","Payment failure via x402/Base may prevent the call from completing ($0.03 USDC required)","Malformed JSON body (missing required 'text' field) returns a 4xx error","Network timeout on Cloudflare Workers edge under high load"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call solution to strip control characters and normalize raw text — especially useful for text extracted from PDFs, scraped web pages, or user-submitted content that may contain non-printable or invisible characters. At $0.03 USDC per call it suits high-frequency agent pipelines where you pay only for what you use, 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:10.584Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-control-clean-top-10-3a3e7034"}