文本/图片嵌入向量生成接口
Chat
Create Embedding
POST
文本/图片嵌入向量生成接口
Note: For setting the embedding model name, refer to the System Supported Embedding Models List. The request/response parameter structure is fully compatible with OpenAI. When switching models, you only need to modify the corresponding model name. If the model request/response parameters are inconsistent with OpenAI, GeekAI will automatically convert and align them at the underlying level.
The response data format is fully compatible with OpenAI.
cURL Request Example
Authorizations
API认证token
Body
application/json
嵌入模型
Example:
"text-embedding-3-small"
文本字符串或者图文对象列表,单行文本字符数受模型上下文长度限制
Example:
["你好"]嵌入意图,用于指定嵌入的使用场景,目前仅 Cohere 向量模型支持该字段,当对图片进行向量化需要指定为 image
Available options:
search_document, search_query, classification, clustering, image 输出向量维度
Example:
1536
自动重试次数,默认0,表示失败不重试
Example:
0
