Gemini models with image generation capabilities gemini-2.5-flash-image-preview support image generation. Images are exposed as files in the response. You need to enable image output in the provider options using the responseModalities option.