Serverless AI Text Explanation

AI powered text explanation service that explains complex concepts clearly at different levels of complexity in multiple languages.

Endpoint

Explain text at different complexity levels

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

*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 or concept to be explained.
complexitystringNo-The complexity level for the explanation. Supported levels: beginner, intermediate, advanced. Default: intermediate
languagestringNo-The language to explain the text in. Supported languages: en, es, fr, de, zh, ja, ko, pt, it, ru, ar, hi. Default: en

Response

NameTypeDescription
dataobjectThe data of the text explanation
data.explanationsarrayAn array of explanation texts at the specified complexity level
data.textstringThe original text that was explained
data.complexitystringThe complexity level of the explanation
data.languagestringThe language used for the explanation
metadataobjectMetadata about the text explanation process
metadata.costnumberThe cost of the text explanation request

Errors

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