FirebaseVertexAI Framework Reference

ImagenPersonFilterLevel

@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct ImagenPersonFilterLevel : ProtoEnum

A filter level controlling whether generation of images containing people or faces is allowed.

See the personGeneration documentation for more details.

  • Disallow generation of images containing people or faces; images of people are filtered out.

    Declaration

    Swift

    public static let blockAll: ImagenPersonFilterLevel
  • Allow generation of images containing adults only; images of children are filtered out.

    Important

    Generation of images containing people or faces may require your use case to be reviewed and approved by Cloud support; see the Responsible AI and usage guidelines for more details.

    Declaration

    Swift

    public static let allowAdult: ImagenPersonFilterLevel
  • Allow generation of images containing people of all ages.

    Important

    Generation of images containing people or faces may require your use case to be reviewed and approved; see the Responsible AI and usage guidelines for more details.

    Declaration

    Swift

    public static let allowAll: ImagenPersonFilterLevel