curl --request POST \
--url https://api.example.com/v1/embeddings \
--header 'Content-Type: application/json' \
--data '
{
"input": [
"<string>"
]
}
'{
"data": [
{
"embedding": [
123
],
"index": 123,
"object": "<string>"
}
],
"model": "<string>",
"object": "<string>",
"usage": {
"prompt_tokens": 123,
"total_tokens": 123
}
}curl --request POST \
--url https://api.example.com/v1/embeddings \
--header 'Content-Type: application/json' \
--data '
{
"input": [
"<string>"
]
}
'{
"data": [
{
"embedding": [
123
],
"index": 123,
"object": "<string>"
}
],
"model": "<string>",
"object": "<string>",
"usage": {
"prompt_tokens": 123,
"total_tokens": 123
}
}Was this page helpful?