For AI agents: the complete documentation index is available at https://aioproxy.dev/zh/llms.txt, the full documentation bundle is available at https://aioproxy.dev/zh/llms-full.txt, and this page is available as Markdown at https://aioproxy.dev/zh/api/stream-generate-content.md.
  • 简体中文
  • 流式生成内容 POST /v1beta/models/{model}:streamGenerateContent

    以 SSE data 帧流式返回 Gemini 内容,使用 alt=sse。

    参数 / 响应

    参数: alt, contents, conversation_id, generationConfig, model, safetySettings, session_id, systemInstruction, tools

    响应: 2XX text/event-stream

    Loading API reference…