Serverless AI Text Summarization
AI powered text summarization service that creates concise summaries while preserving key information.
Endpoint
Text summarization with key information preservation
POSThttps://api.xtartapp.com/text/summarization
*Authentication
You must use a Bearer token provided by the dashboard to use for authentication. Add the token to the Authorization header.
Request body
Name | Type | Required | Max | Description |
---|---|---|---|---|
text | string | Yes | 10000 | The text to summarize |
Response
Name | Type | Description |
---|---|---|
data | object | The data of the summarized result |
data.summarizedText | string | The summarized version of the input text |
data.originalText | string | The original text |
metadata | object | Metadata about the summarization process |
metadata.cost | number | The cost of the summarization request |
Errors
{
"error": "string",
"code": "string"
}
HTTP Status | Error Code | Message |
---|---|---|
400 | INVALID_PAYLOAD | Occurs when the payload is invalid. |
400 | INVALID_REQUEST | Ex.: The request is invalid. |
400 | SUMMARIZE_ERROR | Ex: could not summarize the text | parsing error |
400 | HARM_CONTENT | Ex.: The content is harmful and cannot be processed. |
400 | INSUFFICIENT_BALANCE | The user has insufficient balance |
401 | UNAUTHORIZED | Ex.: The token is invalid. |
429 | TOO_MANY_REQUESTS | Ex.: The request limit has been reached. |