---
title: "AI Summarizer API: Summarize Text and Web Pages"
slug: ai-summarize-api
url: https://apyhub.com/apyhub/service/ai-summarize-api
provider: ApyHub
categories: [Model Kit]
tags: [summarization, text-summary, web-page-summary, tldr]
auth: api_key
version: v1
service_type: sync
endpoints: 2
atoms: 1000
mcp: true
alias: ai-summarize
---

# AI Summarizer API: Summarize Text and Web Pages

Summarization API for text and web pages. Send text or a URL, pick short, medium or long, and get the summary in the language you choose. Free tier.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/apyhub/ai-summarize-api/text` | What it does Summarizes raw text provided in the JSON request body. Accepts input text, target summ… | 1000 |
| POST | `https://api.eu.apyhub.com/apyhub/ai-summarize-api/url` | What it does Fetches and summarizes content directly from a public web page URL. The API extracts a… | 1000 |

## Endpoint reference

### Summarize Text

`POST https://api.eu.apyhub.com/apyhub/ai-summarize-api/text` · 1000 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `text` | body | string | yes |  |
| `summary_length` | body | string | yes |  |
| `output_language` | body | string | yes |  |

#### Quickstart

Summarize the provided text in the requested language and length.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/ai-summarize-api/text" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"ApyHub provides simple APIs for common developer tasks.","summary_length":"short","output_language":"en"}'
```

#### What you'll get back


Returns a JSON object with a data object. The data object contains a summary string with the generated summary.

```json
{
  "data": {
    "summary": "Artificial intelligence is changing how industries operate."
  }
}
```

### Summarize URL

`POST https://api.eu.apyhub.com/apyhub/ai-summarize-api/url` · 1000 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | body | string | yes |  |
| `summary_length` | body | string | yes |  |
| `output_language` | body | string | yes |  |

#### Quickstart

Summarize a webpage by sending its URL, desired summary length, and output language.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/ai-summarize-api/url" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/article",
    "summary_length": "short",
    "output_language": "en"
  }'
```

#### What you'll get back

Returns a JSON object with a data object. The data object contains a summary string with the generated summary.

```json
{
  "data": {
    "summary": "Artificial intelligence is changing how industries operate."
  }
}
```

## About

## What it does
The AI Summarizer API turns long content into a short summary. Send raw text or the URL of a web page, choose a short, medium, or long summary, and get it back in the language you need.

When you send a URL, the API fetches the page and removes navigation, ads, and other clutter before summarizing, so the summary covers the actual content. Both endpoints return the summary directly in the response.

Use it to create article previews and newsletter digests, give support and research teams the gist of long pages, or summarize content in a different language from the original. To summarize PDF or Word files, use the [AI Summarize Documents API](https://apyhub.com/apyhub/service/summarize-documents).

You can start on ApyHub's free tier with no card required.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

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