Embeddings

Generate vector data points from text and images.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
modelstringRequired
The model to use for generating vectors.
inputstring or list of strings or integers or lists of integers or objectsRequired
truncatebooleanOptional
Boolean setting whether to truncate inputs. Not supported by bridgetower.
truncation_directionstringOptional
Which direction to truncate, "Left" or "Right". Not supported by bridgetower.

Response

Successful response.
idstring or null
Unique ID for the embeddings.
objectstring or null

Type of object (list).

createdinteger or null
Timestamp of when the embeddings was created.
modelstring or null
The embeddings model used.
datalist of objects or null
The set of vectorized data.

Errors