Skip to content
RSFlowHub
  1. Home
  2. APIs
  3. Text & Language
  4. Long Document & Text Summarization API
Text & Language API

Long Document & Text Summarization API

Intelligent text summarization API for articles, legal documents, meeting notes, and customer feedback.

POST https://rsflowhub.com/api/v1/ai/text-summarize
  • 1 credit per call
  • X-API-Key header
  • JSON in, JSON out
POST /api/v1/ai/text-summarize
{
    "text": "Artificial intelligence (AI) is intelligence demonstrated by machines, as opposed to intelligence of humans and other animals. Example tasks in which this is done include speech recognition, computer vision, translation between (natural) languages, as well as other mappings of inputs. AI applications include advanced web search engines (e.g., Google Search), recommendation systems (used by YouTube, Amazon, and Netflix), understanding human speech (such as Siri and Alexa), self-driving cars (e.g., Waymo), generative or creative tools (ChatGPT and AI art), automated decision-making, and competing at the highest level in strategic game systems (such as chess and Go).",
    "length": "short",
    "format": "bullet_points",
    "target_audience": "general"
}
200 OK response.json
{
    "result": {
        "summary": "The customer reports repeated login failures after the latest update and asks for a fix before their Friday launch.",
        "original_length": 1240,
        "summary_length": 118
    }
}
Definition

What is the Long Document & Text Summarization API?

Long Document & Text Summarization API is a REST API on RSFlowHub for web, mobile and AI agent applications. Send a JSON request to POST /api/v1/ai/text-summarize with your API key; RSFlowHub runs it on a tuned AI model, falls back to a backup provider if needed, and returns a structured JSON result, usually within 1 to 3 seconds.

Endpoint
POST /api/v1/ai/text-summarize
Authentication
X-API-Key header
Price
1 credit per call
Rate limit
10 to 120 requests / minute by plan
Typical response
1 to 3 seconds
Format
JSON, UTF-8

Request parameters

Send these fields as a JSON body. An invalid or missing field returns a 422 error that names the field.

FieldTypeRequiredDescription
text string Required The raw text content to summarize (Max: 25,000 characters).
length string Optional Desired summary length: "short", "medium", or "long". Default is "short".
format string Optional Output format: "paragraph", "bullet_points", or "key_takeaways". Default is "paragraph".
target_audience string Optional Adjust the reading level and tone (e.g., "general", "expert", "5_year_old").
extract_schema object Optional Optional schema definition (JSON object) of exact data points you want extracted from the text. Example: {"company_name":"string", "revenue":"number"}
custom_instructions string Optional Optional specific rules to guide the summarization or extraction process.

Code examples

Copy, replace rfh_your_api_key with your key and run. Prefer a client library? See the official SDKs.

request.sh
curl -X POST "https://rsflowhub.com/api/v1/ai/text-summarize" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: rfh_your_api_key" \
  -d '{"text":"Artificial intelligence (AI) is intelligence demonstrated by machines, as opposed to intelligence of humans and other animals. Example tasks in which this is done include speech recognition, computer vision, translation between (natural) languages, as well as other mappings of inputs. AI applications include advanced web search engines (e.g., Google Search), recommendation systems (used by YouTube, Amazon, and Netflix), understanding human speech (such as Siri and Alexa), self-driving cars (e.g., Waymo), generative or creative tools (ChatGPT and AI art), automated decision-making, and competing at the highest level in strategic game systems (such as chess and Go).","length":"short","format":"bullet_points","target_audience":"general"}'

Response

Every RSFlowHub endpoint uses the same envelope, so one parser handles all of them. Failed calls are not charged.

response.json
{
    "success": true,
    "request_id": "req_3f9a2c7e-5b1d-4e8a-9c2f-7d6e1a0b4c8d",
    "data": {
        "result": {
            "summary": "The customer reports repeated login failures after the latest update and asks for a fix before their Friday launch.",
            "original_length": 1240,
            "summary_length": 118
        }
    },
    "meta": {
        "version": "v1",
        "timestamp": "2026-10-05T09:30:00Z"
    }
}
Envelope fields
FieldTypeMeaning
successbooleantrue when the call worked, false on any error.
request_idstringUnique id for this call. Quote it when you contact support.
data.resultobjectThe result of this endpoint (see the example).
errorobjectOnly on failure: code, message and details per field.
metaobjectAPI version and server timestamp.

All error codes: Errors reference

Features

Flexible Length & Format Control

Generate short, medium, or detailed summaries formatted as bullet points, executive summaries, or paragraphs.

Target Audience Adaptation

Adjust summary vocabulary for executive leadership, technical engineering teams, or general readers.

Structured Key Takeaways

Extract main takeaways, action items, and key entities alongside the main summary body.

HTML & Markdown Protection

Safely preserves article headers, markdown elements, and HTML formatting without corruption.

Use cases

How teams use the Long Document & Text Summarization API in production.

Media & Publishing

Executive News & Article Digest

Automatically generate 3-bullet executive digests for long news articles and editorial blog posts.

Input
Artificial intelligence (AI) is intelligence demonstrated by machines, as opposed to intelligence of humans...
Output
• Machines demonstrate AI to perform tasks like speech recognition.\n• Popular applications include search engines and self-driving cars.

Improves reader engagement and newsletter click-through rates.

SaaS Productivity

Meeting Transcript & Call Summary

Summarize 30-minute video conference transcripts into actionable bullet items for team Slack channels.

Input
John discussed Q3 sales growth, Sarah recommended upgrading cloud servers, and Alex will send the proposal.
Output
• Q3 Sales: On track for growth.\n• Infrastructure: Upgrade cloud servers.\n• Action: Alex to send proposal.

Saves team members 15+ minutes per meeting digest.

Legal & Research

Research Paper & Legal Briefing

Condense multi-page research papers and legal briefs into concise executive summaries.

Input
In accordance with section 4(b) of the agreement, the buyer agrees to pay the closing fee within 10 business days...
Output
Summary: Buyer must settle closing fees within 10 business days per section 4(b).

Accelerates document review turnaround.

AI chatbot

Summarize chatbot conversations

When an AI chatbot hands a conversation to your team, nobody wants to read forty messages. Summarize the chat with the text summarization API and give the agent a short note of what the visitor asked and what was already answered.

How it works in a chatbot

  1. Chat with 30 messages about a late order
  2. API returns: a 3 line summary
  3. The summary is attached to the support ticket

Faster handovers

Agents start with the context instead of scrolling the chat.

Lead notes

Save a one-line summary next to each lead the chatbot captures.

Daily digests

Summarize the day's conversations into a short report for the owner.

Want a chatbot without building one? The RSFlowHub AI chatbot for your website is live in about 5 minutes with one script tag: it answers from your documents, captures leads and creates support tickets. Read the chat widget guide, try the live chatbot demo, see chatbot pricing, or build your own with the chatbots API.

Long Document & Text Summarization API vs building it yourself

The same job done three ways.

TopicRSFlowHub APIRaw LLM promptsRules / regex
Output Validated JSON fieldsFree text you have to parseFixed patterns only
Setup One POST request, no promptsWrite and maintain prompts and parsingWrite and maintain rule lists
Provider outage Automatic fallback to a backup modelYou build retries and a second vendorNot applicable
Pricing 1 credit per call, failed calls freePer token, per vendorYour own servers and upkeep
Understands context Yes, AI modelYes, AI modelNo, keywords only

Frequently asked questions

Which input text lengths are supported?
The Text Summarization API supports input text payloads from short paragraphs up to long multi-page document transcripts.
Can I get summaries in bullet points?
Yes! Simply pass format="bullet_points" in your API request to receive bulleted takeaway summaries.
How fast is the Text Summarization API?
Text Summarization requests usually complete in 1 to 3 seconds, depending on input length and the AI model. Identical repeat requests are served from cache and return faster.
Does the API support multi-lingual summarization?
Yes! You can summarize text in English, Spanish, French, German, Hindi, Gujarati, Japanese, and 45+ other languages.
How many credits does each request consume?
Standard Text Summarization API calls consume 1 base credit per request.

Start using the Long Document & Text Summarization API

Free plan with 100 credits/month + 1,000 bonus credits when you sign in before 23 Nov. Test it in the playground first, no code needed.

RSFlowHub

Sign in to continue

You'll come straight back to this page.

Forgot password?

New to RSFlowHub? Create a free account