ImagenSafetySettings
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct ImagenSafetySettings
Settings for controlling the aggressiveness of filtering out sensitive content.
See the Responsible AI and usage guidelines for more details.
-
Initializes safety settings for the Imagen model.
Declaration
Swift
public init(safetyFilterLevel: ImagenSafetyFilterLevel? = nil, personFilterLevel: ImagenPersonFilterLevel? = nil)
Parameters
safetyFilterLevel
A filter level controlling how aggressively to filter out sensitive content from generated images.
personFilterLevel
A filter level controlling whether generation of images containing people or faces is allowed.