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.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Text prompt describing the image to generate |
| image1 | image | No | Optional first input image to use as reference for generation |
| image2 | image | No | Optional second input image for multi-image composition or style transfer |
| image3 | image | No | Optional third input image for multi-image composition (works best with up to 3 images) |
| aspectRatio | string | No | Aspect ratio of generated images (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9) |
| imageSize | string | No | Size of generated images (1K or 2K) |
Outputs
| Name | Type | Description |
|---|---|---|
| image | image | Generated image from Gemini 2.5 Flash Image Preview |
| usage_metadata | json | Token usage and cost information |
| prompt_feedback | json | Feedback about the prompt quality and safety |
| finish_reason | string | Reason why the generation finished (STOP, MAX_TOKENS, etc.) |
Related Nodes in Media Generation
Imagen
Generates high-fidelity images from text prompts using Google's Imagen model
Cloudflare Model
Run any model from the Cloudflare Workers AI catalog. A searchable dropdown lists every available model; picking one rebuilds the node's inputs and outputs from its published schema.
Replicate Model
Run any model from the Replicate collection. Enter a model identifier, load its schema, and the node's inputs and outputs adapt automatically.
Image Resize
Resizes an image to the specified width and height using Photon.
Image Crop
Crops an image to the specified rectangle using Photon.
Gaussian Blur
Applies Gaussian blur to an image. Higher radius means more blur.
Grayscale
Converts an image to grayscale using Photon (human-corrected algorithm).
To Markdown
Converts various document formats to Markdown using Cloudflare Workers AI