7. Embeddings#
POST /v1/embeddings — converts text into vectors, for retrieval, clustering, semantic similarity, and similar tasks.
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Embedding model name |
input | string / array | Yes | Text to embed; a single string or an array |
cURL
curl http://183.240.79.21:52099/v1/embeddings \
-H "Authorization: Bearer sk-你的YiTuoToken-Key" \
-H "Content-Type: application/json" \
-d '{
"model": "text-embedding-3-small",
"input": "要向量化的文本"
}'