This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The response from a request to generate images with Imagen.
Signature:
export interface ImagenGenerationResponse<T extends ImagenInlineImage | ImagenGCSImage>
Properties
Property | Type | Description |
---|---|---|
filteredReason | string | (Public Preview) 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[] | (Public Preview) 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
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
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
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
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[];