简体中文
cURL
curl --request POST \ --url https://geekai.co/api/v1/embeddings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "text-embedding-3-small", "input": [ "你好" ], "intent": "search_document", "dimensions": 1536, "retries": 0 }'
{ "model": "text-embedding-3-small", "data": [ { "embedding": [ -0.006929, 0.0023415, "..." ], "index": 0 } ], "usage": { "prompt_tokens": 8, "total_tokens": 8, "prompt_tokens_details": { "text_tokens": 123, "image_tokens": 123 } }, "object": "list" }
将文本/图片转换为向量表示的接口
JWT认证token
成功响应
The response is of type object.
object