创建嵌入请求
Creates an embedding vector representing the input text.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The name of the embedding model to use.要使用的 embedding 模型名称。
BAAI/bge-large-zh-v1.5
, BAAI/bge-large-en-v1.5
, netease-youdao/bce-embedding-base_v1
, BAAI/bge-m3
, Pro/BAAI/bge-m3
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),且不能为空字符串。
Response
The object type, which is always "list".
The name of the model used to generate the embedding.
The list of embeddings generated by the model.
embedding
The usage information for the request.
The number of tokens used by the prompt.
The number of tokens used by the completion.
The total number of tokens used by the request.