Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
生成文本嵌入向量
/v1/embeddings
model
text-embedding-3-small
input
encoding_format
float
base64
curl https://your-domain.com/v1/embeddings \ -H "Authorization: Bearer sk-xxxx" \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-3-small", "input": "你好世界" }'
{ "object": "list", "data": [ {"object": "embedding", "index": 0, "embedding": [0.0023, -0.017, ...]} ], "model": "text-embedding-3-small", "usage": {"prompt_tokens": 4, "total_tokens": 4} }