Skip to main content
POST
Gemini GenerateContent
Authenticate with x-goog-api-key: API_KEY. The model path parameter is required.
The response includes candidates[], promptFeedback, usageMetadata, modelVersion, and responseId. Candidates include content, finish reason, and safety ratings. This documented endpoint does not claim Gemini’s separate streaming path.