Phiên bản streaming của endpoint GeminiDocumentation Index
Fetch the complete documentation index at: https://docs.tokenlab.sh/llms.txt
Use this file to discover all available pages before exploring further.
generateContent. Trả về Server-Sent Events.
Tham số đường dẫn
Tên model (ví dụ:
gemini-2.5-pro, gemini-2.5-flash).Tham số truy vấn
API key (phương thức thay thế cho xác thực qua header).
Nội dung yêu cầu
Tương tự như Generate Content. Với yêu cầu streaming, hãy bỏ quagenerationConfig.candidateCount hoặc giữ giá trị là 1; giá trị lớn hơn sẽ bị từ chối thay vì âm thầm bỏ các ứng viên bổ sung.