The response from a request to generate images with Imagen.
Signature:
export interface ImagenGenerationResponse<T extends ImagenInlineImage | ImagenGCSImage>
Properties
Property | Type | Description |
---|---|---|
filteredReason | string | The reason that images were filtered out. This property will only be defined if one or more images were filtered.Images may be filtered out due to the ImagenSafetyFilterLevel, ImagenPersonFilterLevel, or filtering included in the model. The filter levels may be adjusted in your ImagenSafetySettings.See the Responsible AI and usage guidelines for Imagen for more details. |
images | T[] | The images generated by Imagen.The number of images generated may be fewer than the number requested if one or more were filtered out; see filteredReason . |
ImagenGenerationResponse.filteredReason
The reason that images were filtered out. This property will only be defined if one or more images were filtered.
Images may be filtered out due to the ImagenSafetyFilterLevel, ImagenPersonFilterLevel, or filtering included in the model. The filter levels may be adjusted in your ImagenSafetySettings.
See the Responsible AI and usage guidelines for Imagen for more details.
Signature:
filteredReason?: string;
ImagenGenerationResponse.images
The images generated by Imagen.
The number of images generated may be fewer than the number requested if one or more were filtered out; see filteredReason
.
Signature:
images: T[];