{"uid":"cap_fKCahj4Ah7cR9tPX0FE00","slug":"one-engine-text-normalize-line-endings-t5-57ceaf6d","name":"ONE Engine Text Normalize Line Endings (T5)","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/line-endings/t5?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.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Hi4o9Z3PErpKgtjSCva_Q","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes line endings in text strings to a consistent format for downstream agent processing.","exampleAgentPrompt":"Can you normalize the line endings in this text I just scraped — it has a mix of CRLF and LF characters and I need it cleaned up before I pass it to my pipeline: \"Hello\\r\\nWorld\\nFoo\\r\\nBar\"?","exampleUseCases":[{"title":"Cleaning scraped web content for NLP","prompt":"I pulled some text from a website and it has mixed CRLF and LF line endings — can you normalize all the line endings before I feed it into my text classifier? Here's the raw content: \"Product overview\\r\\nFeatures:\\nItem 1\\r\\nItem 2\"."},{"title":"Preprocessing user-submitted documents","prompt":"Users are uploading documents from both Windows and Mac machines and the line endings are all over the place — normalize the line endings in this block of text so it's consistent: \"Name: John\\r\\nAge: 30\\nCity: London\\r\\nCountry: UK\"."},{"title":"Normalizing code snippets for diff tools","prompt":"Before I run a diff on these two code snippets, I need to make sure the line endings match — can you normalize the line endings in this snippet: \"def hello():\\r\\n    print('hi')\\r\\n    return None\\n\"?"}],"resultDescription":"Returns a JSON object containing the input text with all line endings normalized to a consistent format (typically LF), ready for downstream text processing pipelines.","failureModes":["Text exceeds 50,000 character limit — request rejected","Empty text field — may return error or pass-through","Malformed JSON body — 400 bad request","Payment not provided or insufficient — 402 Payment Required","Network timeout on Cloudflare Worker edge"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call solution to normalize line endings in text strings as part of an automated agent pipeline. It is ideal for preprocessing scraped content, user-submitted text, or documents with mixed Windows (CRLF), Unix (LF), or legacy Mac (CR) line endings before passing them to NLP models, diff tools, or storage systems. At $0.0025 USDC per call via x402 on Base, it suits high-frequency agentic workflows where a full text-processing library would be overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:54.038Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-line-endings-t5-57ceaf6d"}