```curl --request POST \ --url <https://api.v...
# community-help
s
Copy code
curl --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
Copy code
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"
  }'