{"uid":"cap_Wtq4BsnGJN1jgfJhUOsrX","slug":"one-engine-text-normalize-control-clean-9d070b83","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/t4?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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EbeugdlZzdixEBAcw684f","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes and cleans control characters and formatting artifacts from raw text strings up to 50,000 characters.","exampleAgentPrompt":"Clean up this text for me — strip out any control characters and normalize the formatting: 'Hello\\x00World\\r\\nThis\\x01has\\x0Bweird\\x1Bchars in it.'","exampleUseCases":[{"title":"Sanitize scraped web content","prompt":"I just scraped a bunch of text from a website and it's full of control characters and weird invisible formatting — can you clean it up so it's plain readable text I can process further?"},{"title":"Fix OCR output before indexing","prompt":"This OCR output has tons of stray control codes and garbage characters mixed in with the real text. Can you normalize and clean it up before I index it?"},{"title":"Prepare user input for NLP pipeline","prompt":"Before I run sentiment analysis on this user-submitted comment, can you strip out any control characters or non-printable junk so the text is clean?"}],"resultDescription":"A JSON object containing the cleaned and control-character-normalized version of the input text, with non-printable and control characters removed or replaced according to the t4 cleaning tier.","failureModes":["Text exceeds 50,000 character limit — request rejected","Missing required 'text' field — validation error","Payment not provided or insufficient USDC balance — 402 response","Malformed JSON body — parse error","Network timeout on Cloudflare Workers edge"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call solution to strip control characters and normalize text formatting without spinning up your own preprocessing pipeline. Ideal for agents processing scraped, OCR-generated, or user-submitted text that may contain non-printable characters. At $0.0015 USDC per call it's cost-effective for high-volume text sanitization tasks where a full NLP service would be overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:05.998Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-control-clean-9d070b83"}