Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/jsonRequired
{
"model": "text-embedding-v3",
"input": "人工智能"
}
Request Code Samples
curl --location '/v1/embeddings' \
--header 'X-Request-Id;' \
--header 'X-Tenant-Id;' \
--header 'X-Channel;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "text-embedding-v3",
"input": "人工智能"
}'
Responses
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.0023,
-0.0094,
0.0151
]
}
],
"model": "text-embedding-v3",
"usage": {
"prompt_tokens": 4,
"total_tokens": 4
}
}
Modified at 2026-06-29 08:45:13