Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://vip.xmsmartlink.com/v1beta/models/{model}:streamGenerateContent \ --header 'Content-Type: application/json' \ --header 'x-goog-api-key: <api-key>' \ --data ' { "contents": [ { "role": "user", "parts": [ { "text": "Hello!" } ] } ] } '
"<string>"
Gemini 官方格式的流式生成接口。请求结构与 generateContent 相同,返回流式内容。
Gemini 官方格式认证请求头。
Gemini 模型名称。
内容数组,元素包含 role 与 parts。
Show child attributes
安全策略设置。
Gemini 流式响应。
Gemini SSE 流式响应。