Create Embeddings

Creates an embedding vector representing the input text.

Body Params
string
enum
required

The name of the embedding model to use.要使用的 embedding 模型名称。

Allowed:
required
Defaults to 硅基流动embedding上线,多快好省的 embedding 服务,快来试试吧

Input 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 (512 tokens for all models except BAAI/bge-m3 which is 8192), cannot be an empty string.
输入的文本将被编码为字符串或 tokens 数组。要在单个请求中嵌入多个输入,请传递字符串数组或字符串数组。每个字符串不得超过模型的最大 tokens 限制(BAAI/bge-m3模型为8192tokens,其余模型为512tokens),且不能为空字符串。

string
enum
Defaults to float

"The format to return the embeddings in. Can be either float or base64. 返回嵌入的格式。可以是 float 或 base64."

Allowed:
Responses

Language
Credentials
Bearer
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json