{"uid":"cap_ykKB9NJjRCQl3bNjZs3YN","slug":"one-engine-text-clean-pack-t4-f0d21e7b","name":"ONE Engine Text Clean Pack T4","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v2/text-clean-pack/t4?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"tier":4,"result":"Tier-dependent output"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0018","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.0018/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0018","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0018","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sER_zdRcDCK66XzdLVR6t","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0018","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Cleans and normalizes raw text strings at tier 4 quality using a pay-per-call utility API on Base via x402.","exampleAgentPrompt":"Clean up this raw text for me — it has weird formatting and extra whitespace — using the T4 tier: 'This is   some messy\n\ntext with   odd spacing and—special chars!!'","exampleUseCases":[{"title":"Preprocessing scraped web content","prompt":"I just scraped a bunch of product descriptions from a website and they're full of weird HTML artifacts and irregular spacing. Can you run them through a T4 text cleaner so they're normalized before I store them in the database?"},{"title":"Sanitizing user-submitted form input","prompt":"A user just submitted this feedback form response and it's got strange line breaks and mixed punctuation: 'Great product!!!  But---the shipping was slow...' — can you clean it up at tier 4 so it's consistent before we log it?"},{"title":"Normalizing LLM-generated text output","prompt":"The AI-generated summary I got back has inconsistent spacing and some stray formatting characters. Can you clean and normalize it using the T4 text clean pack so it's ready to display to users?"}],"resultDescription":"A JSON object containing a 'tier' field (integer, value 4) and a 'result' field with the cleaned and normalized version of the input text string.","failureModes":["Missing or empty 'text' field in request body returns an error response","Payment not included or insufficient USDC via x402 results in 402 Payment Required","Malformed JSON body returns a parse error","Extremely long text strings may exceed processing limits","Network timeouts on the Cloudflare Workers edge infrastructure"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, low-cost ($0.0018 USDC per call) text cleaning and normalization step in an agentic pipeline, particularly when operating on Base with x402 micropayment infrastructure. Prefer this over heavier NLP services when you just need noise removal and normalization rather than semantic analysis or transformation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:40:52.232Z","isFirstParty":false,"canonicalSlug":"one-engine-text-clean-pack-t4-f0d21e7b"}