/v1beta/models/{model}:generateContent für Gemini-kompatible Integrationen.
Streaming
Rufe:streamGenerateContent statt :generateContent auf, um einen
Gemini-Server-Sent-Eventstream mit inkrementellen candidates-Chunks zu empfangen.
Strukturierte Ausgabe
VerwendegenerationConfig.responseMimeType: "application/json" zusammen mit
responseSchema für JSON-Ausgabe:
Parameter
UnterstütztegenerationConfig: temperature, topP, topK, maxOutputTokens,
stopSequences, responseMimeType, responseSchema, responseModalities
(füge IMAGE für Bildausgabe hinzu). Außerdem auf oberster Ebene tools (functionDeclarations)
und systemInstruction.