Lodol Docs

Google Gemini

API actions for the Google Gemini integration.

Google Gemini

Generate text and images with Google's Gemini AI models.


Generate image

Generate an image from a text prompt.

Parameters

ParameterTypeRequiredDescription
promptstringYesThe text prompt describing the image to generate
modelstringNoWhich model to use. Defaults to {...}.

Response

{
  "image_count": 1,
  "images": [
    "base64encodedimagedata..."
  ]
}

Generate text response

Generate a text response using a Gemini model.

Parameters

ParameterTypeRequiredDescription
promptstringYesThe text prompt to send to the model
modelstringNoWhich Gemini model to use. Defaults to {...}.

Response

{
  "response_text": "This is a sample generated response."
}

On this page