Embeddings
POST /v1/embeddings
只有支持 embedding 的 OpenAI 分组和模型才能调用 Embeddings。
填写 Base URL
SDK 和客户端里填基础地址;/v1/embeddings 是程序请求时追加的路径。
text
https://api.zhiwei.dpdns.org/v11
发送请求
在终端或 PowerShell 执行;先把 sk-your-api-key 换成自己的完整 Key。
bash
curl https://api.zhiwei.dpdns.org/v1/embeddings \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "text-embedding-3-small",
"input": "智维 API 接入测试"
}'1
2
3
4
5
6
7
2
3
4
5
6
7