ImagenPersonFilterLevel

@PublicPreviewAPI
public final class ImagenPersonFilterLevel


A filter used to prevent images from containing depictions of children or people.

Summary

Nested types

Public fields

static final @NonNull ImagenPersonFilterLevel

Allow generation of images containing adults only; images of children are filtered out.

static final @NonNull ImagenPersonFilterLevel

Allow generation of images containing people of all ages.

static final @NonNull ImagenPersonFilterLevel

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

Public fields

ALLOW_ADULT

public static final @NonNull ImagenPersonFilterLevel ALLOW_ADULT

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.

ALLOW_ALL

public static final @NonNull ImagenPersonFilterLevel ALLOW_ALL

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 by Cloud support; see the Responsible AI and usage guidelines for more details.

BLOCK_ALL

public static final @NonNull ImagenPersonFilterLevel BLOCK_ALL

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