Serverless AI Text Embedding

AI powered text embedding service that converts text into high-dimensional vector representations. Use these embeddings for semantic search, text similarity comparisons, or to power your ML models with semantic understanding.

Endpoint

Convert text into vector embeddings for semantic search and AI applications.

POSThttps://api.xtartapp.com/embeddings/embed

*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 convert to vector embeddings

Response

NameTypeDescription
dataarrayThe vector embedding representation of the input text
data[]numberIndividual floating-point values in the embedding vector
metadataobjectMetadata about the embedding process
metadata.costnumberThe cost of the embedding request

Errors

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