Serverless AI Text Rephrasing

AI powered text rephrasing service that rewrites content in different tones and languages while preserving the original meaning.

Endpoint

Rephrase text in a specified tone and language

POSThttps://api.xtartapp.com/text/rephrasing

*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 be rephrased.
tonestringYes-The target tone for rephrasing. Supported tones: professional, casual, technical, friendly, formal, humorous, empathetic, assertive, creative.

Response

NameTypeDescription
dataobjectThe data of the text rephrasing
data.rephrasedTextstringThe rephrased text in the specified tone
data.tonestringThe tone used for rephrasing
metadataobjectMetadata about the text rephrasing process
metadata.costnumberThe cost of the text rephrasing request

Errors

{
   "error": "string", 
   "code": "string"
}
HTTP StatusError CodeMessage
400INVALID_PAYLOADOccurs when the payload is invalid.
400INVALID_REQUESTEx.: The request is invalid.
400TEXT_REPHRASING_ERROREx: could not rephrase 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.