I am using @google/genai library version 1.11.0 and model gemini-2.5-flash-image for text-to-image generation. I don’t see any config here to explicitly control the size of image generated. By default, all the images are getting generated in 1024x1024 size. But I want images in 256x256 size. Is there any available config to achieve this? Or do I have to resize the image myself after it is generated. Any help would be appreciated as I’m not able to understand the most effective way to do this.
Hey @Ravik_Ganguly, welcome to the community!
When you generate an image, you’ll need to manually adjust the size.
You can only specify the aspect ratio and resolution. Check out the Gemini Image Generation page for more info.
Thanks!