AI 模型接口嵌入(Embeddings)
Gemini 原生批量嵌入格式
使用 requests 数组提交多条嵌入请求,返回 embeddings[].values。每条请求使用 Gemini content.parts 结构。也支持 /v1/models/{model}:batchEmbedContents 兼容路径。
AuthorizationBearer <token>
In: header
Path Parameters
model*string
平台可用的模型 ID,不带 models/ 前缀
Request Body
application/json
requests*
Response Body
application/json
curl -X POST "https://tokease.cn/v1beta/models/string:batchEmbedContents" \ -H "Content-Type: application/json" \ -d '{ "requests": [ { "content": { "parts": [ {} ] } } ] }'{
"embeddings": [
{
"values": [
0
]
}
]
}这篇文档对您有帮助吗?