Serverless AI Text Paraphrase
AI powered text paraphrasing service that rewrites text while preserving its original meaning.
Endpoint
Text paraphrasing with meaning preservation
POSThttps://api.xtartapp.com/text/paraphrase
*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 | 2500 | The text to paraphrase |
Response
Name | Type | Description |
---|---|---|
data | object | The data of the paraphrased result |
data.paraphrasedText | string | The paraphrased version of the input text |
data.originalText | string | The original text |
metadata | object | Metadata about the paraphrasing process |
metadata.cost | number | The cost of the paraphrasing 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 | PARAPHRASE_ERROR | Ex: could not paraphrase 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. |