ImagenSafetySettings interface
Stay organized with collections
Save and categorize content based on your preferences.
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.
Settings for controlling the aggressiveness of filtering out sensitive content.
See the documentation for more details.
Signature:
export interface ImagenSafetySettings
Properties
ImagenSafetySettings.personFilterLevel
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.
A filter level controlling whether generation of images containing people or faces is allowed.
Signature:
personFilterLevel?: ImagenPersonFilterLevel;
ImagenSafetySettings.safetyFilterLevel
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.
A filter level controlling how aggressive to filter out sensitive content from generated images.
Signature:
safetyFilterLevel?: ImagenSafetyFilterLevel;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["# ImagenSafetySettings interface\n\n\u003e 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.\n\nSettings for controlling the aggressiveness of filtering out sensitive content.\n\nSee the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) for more details.\n\n**Signature:** \n\n export interface ImagenSafetySettings \n\nProperties\n----------\n\n| Property | Type | Description |\n|-----------------------------------------------------------------------------------------|------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|\n| [personFilterLevel](./ai.imagensafetysettings.md#imagensafetysettingspersonfilterlevel) | [ImagenPersonFilterLevel](./ai.md#imagenpersonfilterlevel) | ***(Public Preview)*** A filter level controlling whether generation of images containing people or faces is allowed. |\n| [safetyFilterLevel](./ai.imagensafetysettings.md#imagensafetysettingssafetyfilterlevel) | [ImagenSafetyFilterLevel](./ai.md#imagensafetyfilterlevel) | ***(Public Preview)*** A filter level controlling how aggressive to filter out sensitive content from generated images. |\n\nImagenSafetySettings.personFilterLevel\n--------------------------------------\n\n\u003e 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.\n\nA filter level controlling whether generation of images containing people or faces is allowed.\n\n**Signature:** \n\n personFilterLevel?: ImagenPersonFilterLevel;\n\nImagenSafetySettings.safetyFilterLevel\n--------------------------------------\n\n\u003e 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.\n\nA filter level controlling how aggressive to filter out sensitive content from generated images.\n\n**Signature:** \n\n safetyFilterLevel?: ImagenSafetyFilterLevel;"]]