Steven Herweijer
11/26/2024, 10:28 AMcurl --request POST \
--url <https://api.voyageai.com/v1/embeddings> \
--header "Authorization: Bearer $VOYAGE_API_KEY" \
--header "content-type: application/json" \
--data '
{
"input": [
"Sample text 1",
"Sample text 2"
],
"model": "voyage-large-2"
}
'
versus
curl <https://api.openai.com/v1/embeddings> \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"input": "Your text string goes here",
"model": "text-embedding-3-small"
}'