Skip to main content

Embeddings API

Path: POST /v1/embeddings

Used to convert text into high-dimensional vectors, widely applied in RAG knowledge base retrieval, semantic matching, and other scenarios.

📥 Request Example​

curl https://api.basamp.com/v1/embeddings \
-H "Authorization: Bearer sk-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "Intelligent context compression technology",
"model": "text-embedding-3-small"
}'