{"uid":"cap__9AlNTeTw49ilbMLsQ6eA","slug":"one-engine-text-token-lines-t1-40fde582","name":"ONE Engine Text Token Lines (T1)","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-token/lines/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_ToU1rp8t0faWoHq0GHDSV","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":"Splits input text into individual lines and returns token/line-level data for up to 50,000 characters of text.","exampleAgentPrompt":"Split this document into individual lines and give me the token breakdown: 'Line one of my report.\nLine two with more data.\nLine three is the conclusion.'","exampleUseCases":[{"title":"Line count for large document","prompt":"I have a big block of text from a log file — can you split it into lines and tell me how many lines there are? Here's the content: 'ERROR 2024-01-01: disk full\nWARNING 2024-01-02: low memory\nINFO 2024-01-03: process started'"},{"title":"Tokenizing a multi-line script","prompt":"Take this script I pasted and break it apart line by line so I can process each line separately: 'INT. COFFEE SHOP - DAY\nJohn walks in.\nHe orders a latte.'"},{"title":"Preprocessing text for pipeline","prompt":"Before I feed this article into my next processing step, can you split it into lines and return the token data for each line? Here's the article text: 'Artificial intelligence is transforming industries.\nCompanies are investing billions.\nThe future looks automated.'"}],"resultDescription":"Returns a structured object containing the input text split into lines, with token-level data for each line segment, enabling downstream per-line processing or analysis.","failureModes":["Text exceeds 50,000 character limit — request rejected or truncated","Empty text field — may return empty lines array or error","Malformed JSON body — 400 bad request","Payment not included or insufficient USDC — 402 payment required","Service unavailable on Cloudflare Workers edge — 503 or timeout"],"whenToPreferThis":"Choose this endpoint when you need a cheap, pay-per-call utility to split and tokenize text by lines without setting up a local NLP library. Ideal for autonomous agents on Base that need lightweight text preprocessing at $0.0005 per call with x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:59.670Z","isFirstParty":false,"canonicalSlug":"one-engine-text-token-lines-t1-40fde582"}