---
title: "AI SUMMARIZATION of anything — POST {text} (16,000 chars"
method: POST
path: "/api/summarize-text"
tags: ["AI Utilities"]
---

# AI SUMMARIZATION of anything — POST {text} (16,000 chars

`POST /api/summarize-text`

## Request

- Base URL: `https://api.webbersites.com`
- URL: `https://api.webbersites.com/api/summarize-text`
- Auth: API key in header `X-PAYMENT`

AI SUMMARIZATION of anything — POST {text} (16,000 chars: transcripts, threads, logs), OR {url} (web page auto-scraped, or PDF/DOCX/CSV auto-extracted), OR {file_base64} for an uploaded PDF/DOCX/CSV/TXT up to 5 MB. Keeps every load-bearing fact, number, and decision. {style}: paragraph (default), bullets, or tldr; {max_words}: 10-300 (default 120); {focus} to steer ('action items'). Want key sentences with no AI? GET /api/summarize ($0.002).

Price: $0.01 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

## Request body

- object
  - `text` string: Raw text to summarize, up to 16,000 characters (provide exactly one of text, url, file_base64)
  - `url` string: Public http(s) URL to fetch and summarize — an article/page (main content auto-extracted) or a PDF/DOCX/CSV document
  - `file_base64` string: Base64-encoded PDF, DOCX, CSV, or plain-text file, up to 5 MB decoded (data URI prefix ok)
  - `filename` string: Optional filename hint for file_base64 type detection, e.g. report.pdf
  - `type` string: Optional parser override for url/file_base64: pdf, docx, or csv
  - `style` string: paragraph (default), bullets, or tldr
  - `max_words` number: summary length cap, 10-300 (default 120)
  - `focus` string: Optional steer: what the summary should emphasize

## Response `200`

Success

- object
  - `summary` string
  - `style` string
  - `source` string: text, url, or file
  - `source_type` string: what was summarized: text, article, pdf, docx, or csv
  - `title` string
  - `input_chars` number
  - `input_truncated` boolean: true if extracted content was cut to the summarization cap
  - `model` string
  - `usage` object

## Other responses

- `402`: Payment required — the response body lists accepted payment methods (amount, asset, network, pay-to address). Retry the request with a signed X-PAYMENT header.

---

[API](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api.md) · [All operations](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api/revisions/c14a76c67a94?raw)
