Flexible Length & Format Control
Generate short, medium, or detailed summaries formatted as bullet points, executive summaries, or paragraphs.
Intelligent text summarization API for articles, legal documents, meeting notes, and customer feedback.
https://rsflowhub.com/api/v1/ai/text-summarize
X-API-Key header{
"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"
}
{
"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
}
}
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.
POST /api/v1/ai/text-summarizeX-API-Key headerSend these fields as a JSON body. An invalid or missing field returns a 422 error that names the field.
| Field | Type | Required | Description |
|---|---|---|---|
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. |
Copy, replace rfh_your_api_key with your key and run. Prefer a client library? See the official SDKs.
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"}'
<?php
$client = new \GuzzleHttp\Client();
$response = $client->post('https://rsflowhub.com/api/v1/ai/text-summarize', [
'headers' => [
'Content-Type' => 'application/json',
'X-API-Key' => 'rfh_your_api_key',
],
'json' => array (
'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',
),
]);
echo $response->getBody();
const response = await fetch('https://rsflowhub.com/api/v1/ai/text-summarize', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'rfh_your_api_key'
},
body: JSON.stringify({"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"})
});
const data = await response.json();
console.log(data);
import requests
url = "https://rsflowhub.com/api/v1/ai/text-summarize"
headers = {
"Content-Type": "application/json",
"X-API-Key": "rfh_your_api_key"
}
payload = {"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 = requests.post(url, json=payload, headers=headers)
print(response.json())
Every RSFlowHub endpoint uses the same envelope, so one parser handles all of them. Failed calls are not charged.
{
"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"
}
}
{
"success": false,
"request_id": "req_8c1d4e2a-7f3b-4a9c",
"error": {
"code": "VALIDATION_ERROR",
"message": "The given data was invalid.",
"details": {
"text": [
"This field is required."
]
}
},
"meta": {
"version": "v1",
"timestamp": "2026-10-05T09:30:00Z"
}
}
| Field | Type | Meaning |
|---|---|---|
success | boolean | true when the call worked, false on any error. |
request_id | string | Unique id for this call. Quote it when you contact support. |
data.result | object | The result of this endpoint (see the example). |
error | object | Only on failure: code, message and details per field. |
meta | object | API version and server timestamp. |
All error codes: Errors reference
Generate short, medium, or detailed summaries formatted as bullet points, executive summaries, or paragraphs.
Adjust summary vocabulary for executive leadership, technical engineering teams, or general readers.
Extract main takeaways, action items, and key entities alongside the main summary body.
Safely preserves article headers, markdown elements, and HTML formatting without corruption.
How teams use the Long Document & Text Summarization API in production.
Automatically generate 3-bullet executive digests for long news articles and editorial blog posts.
• 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.
Summarize 30-minute video conference transcripts into actionable bullet items for team Slack channels.
• 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.
Condense multi-page research papers and legal briefs into concise executive summaries.
Summary: Buyer must settle closing fees within 10 business days per section 4(b).Accelerates document review turnaround.
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
Agents start with the context instead of scrolling the chat.
Save a one-line summary next to each lead the chatbot captures.
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.
The same job done three ways.
| Topic | RSFlowHub API | Raw LLM prompts | Rules / regex |
|---|---|---|---|
| Output | Validated JSON fields | Free text you have to parse | Fixed patterns only |
| Setup | One POST request, no prompts | Write and maintain prompts and parsing | Write and maintain rule lists |
| Provider outage | Automatic fallback to a backup model | You build retries and a second vendor | Not applicable |
| Pricing | 1 credit per call, failed calls free | Per token, per vendor | Your own servers and upkeep |
| Understands context | Yes, AI model | Yes, AI model | No, keywords only |
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.
Flowy
AI assistant