---
title: AI Summarize Documents API
slug: summarize-documents
url: https://apyhub.com/apyhub/service/summarize-documents
provider: ApyHub
categories: [Artificial Intelligence, Smart Generation]
auth: api_key
---

# AI Summarize Documents API

Summarize PDF, DOCX, DOC, or ODT files from an upload or URL. Returns a plain-text summary with short, medium, or long length options.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/ai/summarize-documents/file` | What it does Uploads a document and returns a generated text summary for that file. The request bod… | 2600 |
| POST | `/ai/summarize-documents/url` | What it does Summarizes a document fetched from a direct URL and returns the generated summary in t… | 2600 |

## About

## What it does
Document Summarizer turns a PDF, DOCX, DOC, or ODT into a concise plain-text summary. Send an uploaded file to `POST /file` or a direct document URL to `POST /url`, and get back a single `summary` string.

Choose the length that fits your workflow: `short` for roughly 20 words, `medium` for roughly 60 words, or `long` for roughly 100 words. You can also set `output_language` with a BCP-47 language code if you need the summary in a language other than English.

Use Document Summarizer when you need to surface the main points of a report, contract, memo, or research paper without building your own document-processing pipeline. It is useful for preview cards, document triage, review queues, and internal search workflows where a brief human-readable summary is enough.

The response format stays simple: the summary is returned in `data.summary`, so you can store it, display it, or pass it into another step with minimal parsing.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/summarize-documents
