跳转到主要内容
POST
Native Gemini Format

授权

Authorization
string
header
必填

Use Bearer Token authentication Format: Authorization: Bearer sk-xxxxxx

路径参数

model
string
必填

Model name

请求体

application/json
contents
object[]
必填
generationConfig
object
必填

响应

200 - application/json

Success

candidates
object[]
usageMetadata
object