Run in Apifox
Create vector embeddings for text input. Compatible with OpenAI Embeddings API. Supported models: text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002, and Cohere embedding models.
Request Add parameter in header Authorization
Example: Authorization: ********************
or
Body Params application/json Required
{
"model" : "text-embedding-3-small" ,
"input" : "string" ,
"encoding_format" : "float" ,
"dimensions" : 0 ,
"user" : "string"
} Request Code Samples
curl --location --request POST 'https://api.ccapi.ai//v1/embeddings' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "text-embedding-3-small",
"input": "string",
"encoding_format": "float",
"dimensions": 0,
"user": "string"
}' Responses
{
"object" : "list" ,
"data" : [
{
"object" : "embedding" ,
"index" : 0 ,
"embedding" : [
0.0023 ,
-0.0094 ,
0.0156
]
}
] ,
"model" : "text-embedding-3-small" ,
"usage" : {
"prompt_tokens" : 5 ,
"total_tokens" : 5
}
}
Modified at 2026-03-15 06:56:57