Enum ImageSafetySetting
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Represents the safety filter level.
[JsonConverter(typeof(JsonStringEnumConverter<ImageSafetySetting>))]
public enum ImageSafetySetting
- Extension Methods
Fields
block_low_and_above = 0Strongest filtering level, most strict blocking.
block_medium_and_above = 1Block some problematic prompts and responses.
block_only_high = 2Reduces the number of requests blocked due to safety filters. May increase objectionable content generated by Imagen.
block_none = 3Block very few problematic prompts and responses. Access to this feature is restricted.