Embeddings(向量生成)
POST
/jina/v1/embeddings来自Jina的Embedding模型,来自于https://jina.ai/embeddings
支持模型:
jina-clip-v1
jina-embeddings-v2-base-en
jina-embeddings-v2-base-es
jina-embeddings-v2-base-de
jina-embeddings-v2-base-zh
jina-embeddings-v2-base-code
官方文档:https://api.jina.ai/redoc#tag/embeddings/operation/create_embedding_v1_embeddings_post
价格:0.02 PTC / 1M Token
请求参数
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
model
string
必需
embedding_type
string
必需
input
array [object {2}]
必需
text
string
必需
image
string
必需
示例
{
"model": "jina-clip-v1",
"embedding_type": "float",
"input": [
{
"text": "A blue cat"
},
{
"text": "A red dog"
},
{
"text": "btw to represent image u can either use URL or encode image into base64 like below."
},
{
"image": "https://i.pinimg.com/600x315/21/48/7e/21487e8e0970dd366dafaed6ab25d8d8.jpg"
},
{
"image": "R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7"
}
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
未设置
最后修改时间: 5 个月前