{"uid":"cap_0dqu_jWcfthThyjK6ikR0","slug":"one-engine-text-normalize-remove-blank-lines-t5-98b1e928","name":"ONE Engine Text Normalize – Remove Blank Lines (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/blank-lines/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_QOZKn-JJJGcFkXS2Kjdv9","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":"Removes blank lines from input text using a T5-based normalization model, returning cleaned text with no empty lines.","exampleAgentPrompt":"Clean up this text by removing all the blank lines from it: [paste text here]. Use the ONE Engine blank-line normalization endpoint.","exampleUseCases":[{"title":"Cleaning scraped web content","prompt":"I just scraped a bunch of text from a webpage and it has tons of empty lines scattered throughout — can you strip all the blank lines out so it reads cleanly?"},{"title":"Pre-processing LLM prompt input","prompt":"Before I send this document to the language model, can you remove all the blank lines from it so I don't waste tokens on empty space?"},{"title":"Tidying copy-pasted document text","prompt":"I copied this article from a PDF and it's full of blank lines everywhere — can you clean it up by removing all the empty lines?"}],"resultDescription":"Returns a JSON object containing the normalized version of the input text with all blank lines removed, preserving non-empty lines and their order.","failureModes":["Text exceeds 50000 character limit — request rejected or truncated","Empty text input — may return empty string or error","Network timeout on Cloudflare Workers edge — retry recommended","Payment failure via x402 protocol — 402 response if USDC payment not included or insufficient","Malformed JSON body — 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, low-cost, pay-per-call solution to strip blank lines from text as part of a preprocessing pipeline. Ideal for AI agents that need to normalize raw or scraped text cheaply ($0.0025 USDC) without standing up custom infrastructure. Prefer over regex-based local solutions when running in serverless or constrained environments that benefit from offloading text normalization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:50.083Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-remove-blank-lines-t5-98b1e928"}