Skip to main content
Gemini 2.5 Flash Image is Google’s image generation model, available through AnyFast via the native Gemini API. It can generate images from text prompts and edit existing images using a reference photo.

Key capabilities

  • Text-to-image — Generate images from text descriptions
  • Image editing — Pass a reference image in inline_data alongside your text instruction
  • Aspect ratio control1:1, 4:3, 3:4, 16:9, 9:16
  • Resolution control1K (~1024px), 2K (~2048px), 4K (~4096px) on the long edge
  • Multi-modal output — Return both the image and a text caption with responseModalities: ["TEXT", "IMAGE"]

Text-to-image example

Image editing example (with reference image)

Include both a text instruction and an inline_data reference image in the same parts array.

Parameters

API Reference

View the interactive API playground for Gemini 2.5 Flash Image.