Skip to main content
POST
使用兼容 Gemini 的 AIsa 模型生成内容

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

model
string
必填

要使用的 AIsa 模型 ID,例如:gemini-3.5-flash。

示例:

"gemini-3.5-flash"

请求体

application/json
contents
object[]
必填

对话内容,必填

tools
object[]

模型可使用的可选工具

toolConfig
object

可选工具配置

safetySettings
object[]
systemInstruction
object
generationConfig
object
cachedContent
string

可选的缓存内容 ID

响应

内容生成成功

candidates
object[]
usageMetadata
object
modelVersion
string
responseId
string