Embeddings

Generate vector data points from text and images.

Authentication

AuthorizationBearer

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
Unique ID for the embeddings.
objectstring

Type of object (list).

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

Errors

400
Bad Request Error
403
Forbidden Error