Create embeddings from input

Provides the embedding for the input text.

Returns a single vector of floating point numbers for your input, known as a text embedding. Among other uses, a text embedding enables you to calculate the similarity between two documents or two words.

Authentication

X-BabelStreetAPI-Keystring
API Key authentication via header
OR
X-RosetteAPI-Keystring
API Key authentication via header

Request

This endpoint expects an object.
languagestringOptional
3 letter code of language.
optionsobjectOptional

Response

OK
documentEmbeddinglist of doublesOptional
document embeddings
tokenEmbeddingslist of doublesOptional

per-token embeddings

tokenslist of stringsOptional
extracted tokens