generate Content
fun generateContent(inputJson: GenerateContentRequest, model: String = "gemini-pro"): GenerateContentResponse
Generates content based on the provided input JSON using a specified model.
Return
The response from the Gemini API as a GenerateContentResponse object.
Parameters
input Json
The request payload for content generation.
model
The model to be used for content generation. Defaults to "gemini-pro".