← Back to the Media Generation category

Gemini 2.5 Flash Image Preview

This node uses Google's Gemini 2.5 Flash Image Preview model to generate images from text prompts and optional input images.

AIImageGoogleGeminiPreview
Try this node

Inputs

NameTypeRequiredDescription
promptstringYesText prompt describing the image to generate
image1imageNoOptional first input image to use as reference for generation
image2imageNoOptional second input image for multi-image composition or style transfer
image3imageNoOptional third input image for multi-image composition (works best with up to 3 images)
aspectRatiostringNoAspect ratio of generated images (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9)
imageSizestringNoSize of generated images (1K or 2K)

Outputs

NameTypeDescription
imageimageGenerated image from Gemini 2.5 Flash Image Preview
usage_metadatajsonToken usage and cost information
prompt_feedbackjsonFeedback about the prompt quality and safety
finish_reasonstringReason why the generation finished (STOP, MAX_TOKENS, etc.)

Related Nodes in Media Generation