Extractive summary of a PDF or paged text
denk.halowerk.com/v1/page-cited-summary
Extractive summary of a PDF or paged text: the most central sentences, verbatim and in document order, each with its page number, optionally focused on a query. Extracts the text layer of every PDF page with pdfjs-dist (or takes pages as text, or text split by form feeds), removes lines repeated on most pages (headers, footers), joins hyphenated line breaks and splits sentences with Intl.Segmenter
POST
https://denk.halowerk.com/v1/page-cited-summaryUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://denk.halowerk.com/v1/page-cited-summary", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"pages":[{"page":1,"text":"The pilot started in March. The battery reduced peak load by 23 percent."},{"page":2,"text":"Costs fell accordingly."}],"sentences":2}),
});
console.log(await res.json());Example input
{
"pages": [
{
"page": 1,
"text": "The pilot started in March. The battery reduced peak load by 23 percent."
},
{
"page": 2,
"text": "Costs fell accordingly."
}
],
"sentences": 2
}