Table of Contents

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 = 0

Strongest filtering level, most strict blocking.

block_medium_and_above = 1

Block some problematic prompts and responses.

block_only_high = 2

Reduces the number of requests blocked due to safety filters. May increase objectionable content generated by Imagen.

block_none = 3

Block very few problematic prompts and responses. Access to this feature is restricted.

See Also