本文档由 数眼智能 提供,专注于人工智能行业的API服务商! 扫码入群即可领取免费额度!
curl --location --request POST 'https://api.shuyanai.com/v1/embeddings' \
--header 'Authorization: {{Authorization}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": "The food was delicious and the waiter...",
"model": "text-embedding-3-small",
"encoding_format": "float"
}'{
"object": "list",
"data": [
{
"object": "embedding",
"embedding": [
0.0023064255,
-0.009327292, // ... (1536 个浮点数,用于 ada-002)
-0.0028842222
],
"index": 0
}
],
"model": "text-embedding-ada-002",
"usage": {
"prompt_tokens": 8,
"total_tokens": 8
}
}