Bytefusedocs

AI Tools

AI Summarize

Summarize a PDF of any length. Long documents are handled with map-reduce — each chunk is summarized, then combined — so the input size is effectively unbounded.

PRO / ENTERPRISE only 100 credits / callSynchronous

Overview

Upload a PDF; the summary comes back inline in the response (no download URL). Billed a flat 100 credits per call, whatever the document length.

POSThttps://api.bytefuse.in/api/v1/ai/summarize

Paid plans only

The AI tools require a PRO or ENTERPRISE plan. Anonymous calls return 401; an authenticated free-tier account returns 403. This gate runs before any credits are touched.

Request

Content type multipart/form-data:

filefilerequired
The PDF to summarize (must end in .pdf, else 415). Scanned PDFs are OCR’d first.
lengthstringoptional
short (~80 words), medium (~200), or long (~500). An unknown value silently falls back to medium.Default: medium
stylestringoptional
paragraph (flowing prose) or bullets. Anything other than bullets is treated as paragraph.Default: paragraph

Response

200 OK, application/json:

200 OK
{
  "success": true,
  "summary": "…the generated summary…",
  "credits_charged": 100,
  "length": "medium",
  "style": "paragraph",
  "source_words": 4213,
  "summary_words": 198,
  "chunks": 1,
  "processing_time_ms": 3120
}
summarystringoptional
The generated summary.
source_wordsintoptional
Word count of the extracted source text.
summary_wordsintoptional
Word count of the summary.
chunksintoptional
Number of map-reduce chunks — 1 is single-shot, more means map-reduce ran.
credits_chargedintoptional
Always 100. Mirrors X-Credits-Charged.

Examples

curl -X POST https://api.bytefuse.in/api/v1/ai/summarize \
  -H "X-API-Key: dt_live_your_key" \
  -F "file=@report.pdf" \
  -F "length=long" \
  -F "style=bullets"
# 401 if anonymous, 403 if the account is free tier.

Errors

401Anonymous / no valid credential.
403Authenticated free-tier account — AI tools need PRO or ENTERPRISE.
415Missing filename or not a .pdf.
422No extractable text in the PDF.
402 / 429 / 503Insufficient credits, rate limited, or capacity/config error.
500AI processing failed unexpectedly.

See AI Extract Data and AI Translate for the other LLM tools.