TokenFlux 文档

Embeddings

创建向量 embeddings

POST /v1/embeddings
Authorization: Bearer YOUR_TOKENFLUX_KEY
Content-Type: application/json
curl https://tokenflux.ai/v1/embeddings \
  -H "Authorization: Bearer YOUR_TOKENFLUX_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_EMBEDDING_MODEL_ID",
    "input": "TokenFlux API documentation"
  }'

请从模型与价格选择一个支持 embedding 的模型。响应使用兼容 OpenAI 的 embeddings 格式。