{"uid":"cap_vWGeVl2yDZcHZS8vxFxGP","slug":"one-engine-text-line-ending-normalizer-435413a3","name":"ONE Engine Text Line-Ending Normalizer","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/t6?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.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yF5QTpVdNpKgQ2MVYLzsj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","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 (e.g. converting \\r\\n, \\r, and mixed endings) to a consistent format for downstream agent processing.","exampleAgentPrompt":"Normalize the line endings in this text so they're all consistent — it has a mix of Windows CRLF and Unix LF endings and I need it cleaned up before I pass it to the next step.","exampleUseCases":[{"title":"Cross-platform text pipeline preparation","prompt":"I'm getting text from multiple sources with mixed line endings — some Windows CRLF, some old Mac CR, some Unix LF. Can you normalize all the line endings to be consistent before I store it in the database?"},{"title":"Code snippet line-ending cleanup","prompt":"This code I scraped has a bunch of mixed \\r\\n and \\n line endings and it's causing issues in my editor. Can you normalize the line endings so it's all uniform?"},{"title":"Document preprocessing for LLM ingestion","prompt":"Before I send this document to the language model, can you clean up the line endings? It was exported from Windows and has CRLF everywhere which is messing up my token count."}],"resultDescription":"Returns a JSON object containing the input text with all line endings normalized to a consistent format (typically LF), suitable for further downstream processing by agents or pipelines.","failureModes":["Text exceeds 50,000 character limit — request rejected","Empty text field — may return error or empty result","Malformed JSON request body — returns 400-level error","Payment failure via x402 on Base — returns 402 Payment Required","Network timeout on Cloudflare Worker edge"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, stateless text transformation to normalize line endings before passing text to downstream agents, LLMs, databases, or parsers. At $0.004 per call with pay-per-use x402 billing, it's ideal for high-volume pipelines or agent workflows that process text from mixed sources (Windows, Mac, Unix) without needing to spin up custom preprocessing code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:39.369Z","isFirstParty":false,"canonicalSlug":"one-engine-text-line-ending-normalizer-435413a3"}