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

NameTypeRequiredMaxDescription
textstringYes2500The text to paraphrase

Response

NameTypeDescription
dataobjectThe data of the paraphrased result
data.paraphrasedTextstringThe paraphrased version of the input text
data.originalTextstringThe original text
metadataobjectMetadata about the paraphrasing process
metadata.costnumberThe cost of the paraphrasing request

Errors

{
   "error": "string", 
   "code": "string"
}
HTTP StatusError CodeMessage
400INVALID_PAYLOADOccurs when the payload is invalid.
400INVALID_REQUESTEx.: The request is invalid.
400PARAPHRASE_ERROREx: could not paraphrase the text | parsing error
400HARM_CONTENTEx.: The content is harmful and cannot be processed.
400INSUFFICIENT_BALANCEThe user has insufficient balance
401UNAUTHORIZEDEx.: The token is invalid.
429TOO_MANY_REQUESTSEx.: The request limit has been reached.