Skip to main content
POST
创建嵌入

功能说明

将输入的文本转换为向量(Embeddings),适用于语义搜索、推荐系统、分类和聚类等场景。

请求参数

调用示例

返回结果

返回包含向量数据的对象。

相关参考

Authorizations

Authorization
string
header
required

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

Body

application/json
model
string
required

模型名称

input
string
required

要转化的文本

Response

200 - application/json

成功响应

object
string
data
object[]
model
string
usage
object