models.embedContent
content
content.parts[].text
taskType
title
outputDimensionality
taskType: RETRIEVAL_DOCUMENT
Authorization: Bearer ********************
{ "content": { "parts": [ { "text": "927AI 提供统一的大模型 API 服务。" } ] } }
curl --location 'https://vip.927ai.ai/v1beta/models/:embedContent' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "content": { "parts": [ { "text": "927AI 提供统一的大模型 API 服务。" } ] } }'
{ "embedding": { "values": [ 0.012345, -0.023456, 0.034567 ] } }