{"uid":"cap_ucl63_UZOLaS6HfBzeh-z","slug":"one-engine-text-normalize-control-clean-1d69f3c9","name":"ONE Engine Text Normalize Control-Clean","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/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_gcY4t7C6C_VFQf8_lsN1P","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":"Normalizes and control-cleans input text by removing or standardizing control characters, whitespace, and formatting artifacts.","exampleAgentPrompt":"Clean up this text by removing control characters and normalizing whitespace — it's raw scraped content and has a bunch of invisible junk in it: [paste text here].","exampleUseCases":[{"title":"Sanitize scraped web content","prompt":"I just scraped a bunch of articles from the web and the text is full of weird control characters and non-printable junk. Can you run it through control-clean normalization to strip all that out before I feed it into my summarizer?"},{"title":"Prep user input for NLP pipeline","prompt":"Before I send this user-submitted form text to my sentiment analysis model, I want to normalize and control-clean it to remove any hidden characters or odd whitespace. Here's the text: 'Thanks for the help!\r\n\t\b Really appreciate it.'"},{"title":"Fix copy-pasted document text","prompt":"I copied text out of a PDF and it's full of weird formatting artifacts and control codes — can you run the control-clean normalizer on it to give me a clean plain-text version?"}],"resultDescription":"A JSON object containing the normalized, control-cleaned version of the input text with control characters removed and whitespace standardized. The exact output fields are dynamically typed but typically include the cleaned text string.","failureModes":["Text exceeds 50,000 character limit — request rejected","Empty or missing 'text' field — validation error","Payment not attached or insufficient USDC — 402 Payment Required","Malformed JSON body — 400 Bad Request","Cloudflare Worker timeout for extremely complex inputs"],"whenToPreferThis":"Choose this endpoint when you need a cheap, pay-per-call text normalization step for an autonomous agent pipeline — especially useful for cleaning scraped, copy-pasted, or user-generated text of control characters and whitespace anomalies before feeding into NLP models, embeddings, or storage. At $0.001 USDC per call it is well-suited for high-volume preprocessing tasks where a lightweight sanitization pass is needed without a heavy ML model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:13.922Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-control-clean-1d69f3c9"}