{"uid":"cap_B__M4b4zNqTdHpB30S3jJ","slug":"one-engine-text-normalize-control-clean-8e8d6a32","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/t1?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.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5GIDN5dFd6SaeiGfQXVmI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","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 applying text normalization transformations.","exampleAgentPrompt":"Clean this text by removing all control characters and normalizing it: 'Hello\r\nWorld\t\b\f — there are some weird invisible characters in here that need to be stripped out.'","exampleUseCases":[{"title":"Sanitize user-submitted form text","prompt":"I'm getting text submissions from users that contain random control characters and weird unicode sequences — can you clean this up so it's safe to store and display: 'Name:\tJohn\r\nDoe\bSmith\fAddress: 123 Main St\r\n'?"},{"title":"Normalize scraped web content","prompt":"I just scraped some web content and it's full of control characters and formatting garbage. Can you normalize and clean this text so it's readable plain text: 'Product Description:\r\n\tAmazing widget\b\b\b\f with features\r\n\t\t- Fast\n\t\t- Reliable'?"},{"title":"Preprocess text before NLP pipeline","prompt":"Before I run this through my sentiment analysis model, can you strip out all the control characters and normalize it? Here's the raw text: 'Customer review:\r\nGreat product!\t\t\bFast shipping.\f\rWould buy again\r\n\r\n.'"}],"resultDescription":"Returns a JSON object containing the normalized and cleaned version of the input text, with control characters removed and text normalization applied. The response schema is open (additionalProperties: true), so may include the cleaned text field and potentially metadata about what was changed.","failureModes":["Text exceeds 50000 character limit — request rejected with error","Empty text field provided — may return error or empty result","Payment not provided or insufficient — 402 Payment Required response blocking access","Malformed JSON body — 400 Bad Request","Network timeout on the Cloudflare Workers edge — transient 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, low-cost ($0.0005 USDC) per-call text cleaning operation specifically targeting control characters and normalization. Ideal for preprocessing pipelines where text must be sanitized before storage, display, or NLP processing. Prefer this over general-purpose LLM-based cleaning when you want deterministic, fast, and cheap programmatic normalization without AI inference overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T00:54:02.647Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-control-clean-9d070b83"}