POST
/
doubao
/
embeddings
/
text
curl -X POST https://api.example.com/doubao/embeddings/text \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "This is a test text"
  }'
Convert text to vectors using the Doubao embedding model.

Request Parameters

input
string | array
required
Text to be vectorized.
model
string
Model name.
curl -X POST https://api.example.com/doubao/embeddings/text \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "This is a test text"
  }'