跳转到主要内容
POST
生成 Gemini 内容
使用支持 Gemini 原生协议的模型。不支持的 model ID 会返回 Gemini 格式的错误响应。 流式输出请调用 POST /v1beta/models/{model}:streamGenerateContent 并读取 SSE 响应。

其他支持的模型

  • google/gemini-3.7-flash
  • google/gemini-3.5-flash
  • google/gemini-3.8-flash
  • google/gemini-4-argon
  • google/gemini-3.1-pro-preview
  • google/gemini-3-flash-preview
URL 中使用完整的公开 ID,包含厂商前缀和斜杠,例如 /v1beta/models/google/gemini-3.7-flash:generateContent。发送非空的 contents 数组。流式输出使用 :streamGenerateContent?alt=sse。

授权

Authorization
string
header
必填

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

路径参数

model
enum<string>
必填

完整的 Vidgo 公开模型 ID,包含厂商前缀和斜杠。

可用选项:
google/gemini-3.7-flash,
google/gemini-3.5-flash,
google/gemini-3.8-flash,
google/gemini-4-argon,
google/gemini-3.1-pro-preview,
google/gemini-3-flash-preview

请求体

application/json
contents
object[]
必填
Minimum array length: 1

响应

Gemini 响应

The response is of type object.