apyhub
ARTIFICIAL INTELLIGENCE · SMART GENERATION

AI Summarize API

Hosted on ApyHub

What it does

AI Summarizer turns text or a web page URL into a shorter summary. Send raw text with summary_length and output_language, or send a url with the same summary settings, and get a concise result back.

Use AI Summarizer when you need to condense long articles, reports, product pages, or internal docs into something a reader can scan quickly. It fits workflows like content triage, knowledge-base previews, research assistants, and reading-list digests.

The text endpoint accepts text, summary_length, and output_language. The URL endpoint accepts url, summary_length, and output_language. Both are straightforward inputs for applications that already have source content and want an automated summary step without building their own extraction and summarization pipeline.

What it does

AI Summarizer turns text or a web page URL into a shorter summary. Send raw text with summary_length and output_language, or send a url with the same summary settings, and get a concise result back.

Use AI Summarizer when you need to condense long articles, reports, product pages, or internal docs into something a reader can scan quickly. It fits workflows like content triage, knowledge-base previews, research assistants, and reading-list digests.

The text endpoint accepts text, summary_length, and output_language. The URL endpoint accepts url, summary_length, and output_language. Both are straightforward inputs for applications that already have source content and want an automated summary step without building their own extraction and summarization pipeline.

▣ ENDPOINT 01 / 02
POST
Summarize Text
http://localhost:8080/apyhub/ai-summarize-api/text
QUICKSTARTGUIDE

Quickstart

Summarize the provided text in the requested language and length.

curl -X POST "http://localhost:8080/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.

{
  "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

Summarizes the text you send in the request body. The endpoint accepts a text input plus summary preferences and returns a success acknowledgement; the response schema is not yet defined.

Request Body

ParameterTypeMandatoryDescription
textStringYesThe text to summarize.
summary_lengthStringYesThe desired summary length.
output_languageStringYesThe language for the summary output.

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 URL
http://localhost:8080/apyhub/ai-summarize-api/url
QUICKSTARTGUIDE

Quickstart

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

curl -X POST "http://localhost:8080/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.

{
  "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

Submits a URL for summarization and sends back a successful acknowledgement. The request body requires the URL to summarize, the desired summary length, and the output language.

Request Body

ParameterTypeMandatoryDescription
urlStringYesThe URL to summarize.
summary_lengthStringYesThe requested summary length.
output_languageStringYesThe language for the generated summary.

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
▣ 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.