DeepFellow DOCS

EmbeddingRequest

PropertyTypeRequiredDescription
inputstring | string[] | integer[] | integer[][]YesInput text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input tokens for the model (8192 tokens for all embedding models), cannot be an empty string, and any array must be 2048 dimensions or less. In addition to the per-input token limit, all embedding models enforce a maximum of 300, 000 tokens summed across all inputs in a single request.
modelstring | enumYesID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.
dimensionsinteger | nullNoThe number of dimensions the resulting output embeddings should have.
encoding_formatenum | nullNoThe format to return the embeddings in.
userstring | nullNoA unique identifier for the end-user

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.