嵌入
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/image/embeddings
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/image/embeddings' \
--header 'Authorization;' \
--header 'content-type: application/json' \
--data-raw '{
"response_as_dict": true,
"attributes_as_list": false,
"show_original_response": false,
"representation": "document"
}'
响应示例响应示例
200 - 成功示例
{
"alephalpha": {
"items": [
{
"embedding": [
0.09472656,
1.203125,
0.09277344,
1.09375,
0.9296875,
0.828125,
-3.421875,
-1.3125,
0.58203125,
-2.734375
]
}
]
}
}
请求参数
Header 参数
content-type
string
必需
示例值:
application/json
Authorization
string
必需
默认值:
Bearer <your_key>
Body 参数application/json
返回响应
修改于 2024-04-11 08:49:37