ImagenGenerationResponse

class ImagenGenerationResponse<T : Any?>


Represents a response from a call to ImagenModel.generateImages

Deprecation Notice: All Imagen models are deprecated and will shut down as early as June 2026. As a replacement, you can migrate your apps to use Gemini Image models (the 'Nano Banana' models)

Summary

Public properties

String?

if fewer images were generated than were requested, this field will contain the reason they were filtered out.

List<T>

contains the generated images

Public properties

filteredReason

val filteredReasonString?

if fewer images were generated than were requested, this field will contain the reason they were filtered out.

images

val imagesList<T>

contains the generated images