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.
POST
https://api.bytefuse.in/api/v1/ai/summarizePaid plans only
The AI tools require a PRO or ENTERPRISE plan. Anonymous calls return401; an authenticated free-tier account returns 403. This gate runs before any credits are touched.Request
Content type multipart/form-data:
filefilerequiredThe PDF to summarize (must end in
.pdf, else 415). Scanned PDFs are OCR’d first.lengthstringoptionalshort (~80 words), medium (~200), or long (~500). An unknown value silently falls back to medium.Default: mediumstylestringoptionalparagraph (flowing prose) or bullets. Anything other than bullets is treated as paragraph.Default: paragraphResponse
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
}summarystringoptionalThe generated summary.
source_wordsintoptionalWord count of the extracted source text.
summary_wordsintoptionalWord count of the summary.
chunksintoptionalNumber of map-reduce chunks —
1 is single-shot, more means map-reduce ran.credits_chargedintoptionalAlways
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.
