Create embeddings for text inputs. Useful for semantic search, clustering, and classification tasks.
Parameter
Type
Description
model
required
string
ID of the model to use for embeddings.
input
required
string | array
Text or list of texts to embed.
encoding_format
optional
string
Default: "float". Use "base64" for binary.