Serverless AI Image to Text Conversion

Powerful image to text conversion service that extracts all text content from images while preserving formatting and structure. Perfect for document digitization, content extraction, and text analysis of visual materials.

Endpoint

Extract all text from images with preserved structure

POSThttps://api.xtartapp.com/image/to-text

*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
imagestringYes-Filename of the optimized .ximage file previously uploaded to the platform.

Response

NameTypeDescription
dataobjectThe extracted text data from the image
data.textstringThe full text extracted from the image with preserved formatting
metadataobjectMetadata about the image to text conversion process
metadata.costnumberThe cost of the image to text conversion request

Errors

{
   "error": "string", 
   "code": "string"
}
HTTP StatusError CodeMessage
400INVALID_PAYLOADOccurs when the payload is invalid.
400INVALID_REQUESTThe request is invalid.
400IMAGE_TO_TEXT_ERRORCould not extract text from image | parsing error.
400INVALID_IMAGEThe image was not found or is invalid.
400HARM_CONTENTThe content is harmful and cannot be processed.
400INSUFFICIENT_BALANCEThe user has insufficient balance.
401UNAUTHORIZEDThe token is invalid.
429TOO_MANY_REQUESTSThe request limit has been reached.