apyhub
ARTIFICIAL INTELLIGENCE · SMART GENERATION

AI Summarize API

What it does

Text Summarizer condenses plain text or the contents of a web page into a shorter summary. Send text for direct input, or send a url to summarize a page, along with summary_length and output_language.

Use it when you need a fast way to turn long articles, reports, or support content into something easier to scan. The service is useful for content triage, research workflows, internal knowledge tools, and front ends that need a short version of source material before showing the full text.

The responses from Text Summarizer are not defined in the schema provided here, so the service should be described conservatively. Based on the available endpoints, it accepts either raw text or a web page URL plus summary settings, and returns a structured summary response from the API.

If your workflow needs to summarize user-submitted text or a live web page in a chosen language, Text Summarizer fits directly into that step without requiring you to fetch or process the content yourself.

▣ ENDPOINT 01 / 02
POST
Summarize plain text
https://api.eu.apyverse.com/apyhub/ai-summarize-api/text

QUICKSTART

GUIDE

Quickstart

Summarize a piece of text by sending the required text field.

curl -X POST "https://api.eu.apyverse.com/apyhub/ai-summarize-api/text" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"Artificial intelligence is transforming every industry..."}'

What you'll get back

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

{
  "data": {
    "summary": "Artificial intelligence is changing how industries operate."
  }
}
TRY ITLIVE · 2600 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body

About this endpoint

What it does

Generates a summary of the provided plain text and returns it in a JSON response. You send the source text in the request body, and the response contains a summary string.

Request Body

ParameterTypeMandatoryDescription
textStringYesThe text to summarize.
summary_lengthENUMNoTarget length of the summary. Allowed values: short (default, ~20 words), medium (~60 words), long (~100 words).
output_languageStringNoBCP-47 language code for the output text, for example en, fr, or de. Defaults to English.

Response

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

ParameterTypeMandatoryDescription
dataObjectYesWrapper object for the response payload.
data.summaryStringNoThe generated summary text.

Body

Name
Type
Description
bodyOPTIONAL
object
▣ ENDPOINT 02 / 02
POST
Summarize a web page
https://api.eu.apyverse.com/apyhub/ai-summarize-api/url

QUICKSTART

GUIDE

Quickstart

Summarize a web page by sending its URL in a simple JSON request.

curl -X POST "https://api.eu.apyverse.com/apyhub/ai-summarize-api/url" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://en.wikipedia.org/wiki/Artificial_intelligence"
  }'

What you'll get back

Returns a JSON object with a data object field. Inside data, summary is a string containing the generated summary.

{
  "data": {
    "summary": "..."
  }
}
TRY ITLIVE · 2600 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body

About this endpoint

What it does

Fetches the web page at the provided URL and returns a summary in the response. You can optionally control the summary length and the output language.

Request Body

ParameterTypeMandatoryDescription
urlStringYesURL of the web page to fetch and summarize.
summary_lengthENUMNoTarget length of the summary. Allowed values: short, medium, long.<br>Default: short.<br>Approximate lengths: short (~20 words), medium (~60 words), long (~100 words).
output_languageStringNoBCP-47 language code for the output. Defaults to English.

Response

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

ParameterTypeMandatoryDescription
dataObjectYesWrapper object for the response payload.
data.summaryStringNoThe generated summary of the web page.

Body

Name
Type
Description
bodyOPTIONAL
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.