Embeddings

POST

Generate vector data points from text and images.

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
truncatebooleanOptionalDefaults to false

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.

idstringOptional

Unique ID for the embeddings.

objectstringOptional

Type of object (list).

createdintegerOptional

Timestamp of when the embeddings was created.

modelstringOptional

The embeddings model used.

datalist of objectsOptional

The set of vectorized data.

Errors

Built with