Skip to main content
POST
Generate Embeddings

Authorizations

Authorization
string
header
required

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

Headers

x-tfy-metadata
string

Optional metadata for the request

Body

application/json

Parameters for generating embeddings.

model
string
required

Identifier of the embedding model to use.

input
required

Input text to embed, encoded as a string or array of tokens

user
string | null

Unique identifier representing end-user

Response

Embeddings generated successfully.