Run in Apifox
Supported Models: voyage-3-large voyage-context-3 voyage-3.5 voyage-3.5-lite voyage-code-3 voyage-finance-2 voyage-law-2 voyage-code-2 Request Provide your bearer token in the Authorization
header when making requests to protected resources. Example: Authorization: Bearer ********************
Body Params application/json
{
"input" : [
"Sample text 1" ,
"Sample text 2"
] ,
"model" : "voyage-3.5"
} Request Code Samples
curl --location 'https://api.302.ai/v1/embeddings' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"input": [
"Sample text 1",
"Sample text 2"
],
"model": "voyage-3.5"
}' 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-11-24 09:09:33