Run in Apidog
Nhận biểu diễn vector cho đầu vào đã cho, giúp các mô hình và thuật toán máy học dễ dàng sử dụng. 📘 Xem thêm hướng dẫn liên quan: Embedding Request Provide your bearer token in the Authorization
header when making requests to protected resources. Example: Authorization: Bearer ********************
Body Params application/json
{
"model" : "text-embedding-3-large" ,
"input" : "Meo meo meo meo meo meo meo meo meo meo meo meo"
} Request Code Samples
curl --location --request POST '/v1/embeddings' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "text-embedding-3-large",
"input": "Meo meo meo meo meo meo meo meo meo meo meo meo"
}' Responses application/json Generate Code
{
"object" : "list" ,
"data" : [
{
"object" : "embedding" ,
"embedding" : [
0.0023064255 ,
-0.009327292 ,
.... (1536 floats total for ada-002 )
-0.0028842222
] ,
"index" : 0
}
] ,
"model" : "text-embedding-ada-002" ,
"usage" : {
"prompt_tokens" : 8 ,
"total_tokens" : 8
}
} Modified at 2025-08-06 13:06:13