{"uid":"cap_aMKV4NE0YbwvA9BlEZwFd","slug":"one-engine-text-token-lines-top-10-c39093e2","name":"ONE Engine Text Token Lines Top-10","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/t10?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.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_K_ug7JanNrVJR1t9g7ijS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts the top 10 lines by token count from a given text block, returning the most token-dense lines.","exampleAgentPrompt":"Can you find the top 10 lines with the most tokens in this article? Here's the text: [paste up to 50,000 characters of text]","exampleUseCases":[{"title":"Identify verbose contract clauses","prompt":"I have a long legal contract — can you pull out the 10 lines that have the most tokens? I want to know which clauses are the wordiest. Here's the full text: [contract text]"},{"title":"LLM context budget analysis","prompt":"I'm trying to figure out which lines in this document are eating up the most token budget. Can you give me the top 10 lines ranked by token count from this text? [paste document]"},{"title":"Summarization pre-processing filter","prompt":"Before I summarize this research paper, I want to see the 10 most token-dense lines so I can prioritize what to cut. Here's the paper text: [paste text up to 50,000 chars]"}],"resultDescription":"Returns a JSON object containing the top 10 lines from the input text ranked by token count, including each line's content and its associated token count or rank position.","failureModes":["Text exceeding 50,000 characters may be rejected or truncated","Empty or whitespace-only text may return an empty result set","Very short texts with fewer than 10 lines will return fewer than 10 results","Payment failure via x402 will block the request","Malformed JSON body missing the 'text' field returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.03 USDC) pay-per-call extraction of the top 10 token-heavy lines from a text — especially useful for LLM context budgeting, document pre-processing, or identifying verbose sections before summarization. Prefer this over building your own tokenizer when you need a lightweight, hosted solution billed via x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:16.115Z","isFirstParty":false,"canonicalSlug":"one-engine-text-token-lines-top-10-c39093e2"}