Extract key sentences from any text or URL. Extractive summarization using TF-IDF scoring โ fast, offline, no third-party NLP API needed.
Given a block of text or a URL, this endpoint extracts the most important sentences using TF-IDF frequency scoring with position weighting. The first sentence gets a 1.5ร boost (often the topic sentence), the last sentence gets 1.2ร (often a conclusion), and all sentences are filtered for minimum length. Perfect for AI agents that need to digest long articles, reports, or web pages before acting.
The API fetches the page, strips HTML tags, and returns the top N sentences.
text or url.text).3, max: 10).The algorithm uses extractive summarization โ it picks real sentences from the original text rather than generating new ones. Sentences are scored by:
Top-N sentences are returned in their original document order, so the summary reads naturally.
$0.002 per request via x402 micropayment on Base (USDC). Max text: 50,000 characters. Max sentences: 10. Rate limit: 60 req/min.