POST

Produce an extractive summary of text (configurable sentence count, en/fr/auto). Uses LexRank locally on CPU, no LLM

/v1/text/summarize

Web · lex-rank-local

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/text/summarize
Content-Type: application/json

{
  "text": "Hello, world!",
  "max_sentences": 5,
  "language": "auto"
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Produce an extractive summary of text (configurable sentence count, en/fr/auto). Uses LexRank locally on CPU, no LLM.

Request schema

Body: JSON · application/json

FieldTypeDescription
textstringrequired
max_sentencesintegerrequiredmin: 1
languagestringrequiredenum: en, fr, auto
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/text/summarize \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Hello, world!",
  "max_sentences": 5,
  "language": "auto"
}'

402 payment flow omitted — see Integrations for settlement.