Firebase. AI. ImagenGenerationResponse< T >
A response from a request to generate images with Imagen.
Summary
This type is returned from:
ImagenModel.GenerateImagesAsync(prompt)whereTisImagenInlineImage
Properties | |
|---|---|
FilteredReason | stringThe reason, if any, that generated images were filtered out. |
Images | IReadOnlyList< T >The images generated by Imagen; see ImagenInlineImage. |
Properties
FilteredReason
stringFirebase::AI::ImagenGenerationResponse<T>::FilteredReason
The reason, if any, that generated images were filtered out.
This property will only be populated if fewer images were generated than were requested, otherwise it will benull. Images may be filtered out due to theSafetyFilterLevel, thePersonFilterLevel, or filtering included in the model. The filter levels may be adjusted in yourImagenSafetySettings. See theResponsible AI and usage guidelines for Imagen for more details.
Images
IReadOnlyList<T>Firebase::AI::ImagenGenerationResponse<T>::Images
The images generated by Imagen; seeImagenInlineImage.
Important: The number of images generated may be fewer than the number requested if one or more were filtered out; seeFilteredReason.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-22 UTC.