How to generate image with Gemini AI

Describe the problem/error/question

which nodes i should use to generate images with gemini ai, and what is its settings?

@Jing_Yang n8n has a Google Gemini node with support for image generation, Search for “Google Gemini” in the node panel, set operation to generate an Image, connect your Google Gemini API credentials and enter your text prompt

thank you.

You could also use the HTTP request node with a POST request to the Gemini API, I found this more useful than the standard Gemini node and you can specify more parameters as well (e.g. adjusting the image ratio)

@Jing_Yang