contents[].parts[] 中,并通过 x-goog-api-key 鉴权。路径中的模型 ID 以实时模型页为准。
文本生成
contents 项,角色通常为 user 和 model。系统指令使用顶层 systemInstruction;温度、停止序列、最大输出长度和结构化输出配置位于 generationConfig。
返回结构
candidates[0].content.parts[]。请求被安全策略拦截时,请检查 promptFeedback 和候选项的安全评分。