POST
/
api
/
v3
/
embeddings
curl -X POST https://www.anyfast.ai/api/v3/embeddings \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-embedding",
    "input": "Hello, world!"
  }'
{
  "object": "list",
  "data": [
    {
      "object": "embedding",
      "embedding": [0.1, 0.2, 0.3, 0.4],
      "index": 0
    }
  ],
  "model": "doubao-embedding",
  "usage": {
    "prompt_tokens": 8,
    "total_tokens": 8
  }
}
Convert text into vector embeddings using Doubao embedding models.

Request Parameters

model
string
required
Model ID. Example: doubao-embedding.
input
string | array
required
The text to embed. Can be a single string or an array of strings.
curl -X POST https://www.anyfast.ai/api/v3/embeddings \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-embedding",
    "input": "Hello, world!"
  }'
{
  "object": "list",
  "data": [
    {
      "object": "embedding",
      "embedding": [0.1, 0.2, 0.3, 0.4],
      "index": 0
    }
  ],
  "model": "doubao-embedding",
  "usage": {
    "prompt_tokens": 8,
    "total_tokens": 8
  }
}