Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
Warning: This API is now obsolete.
All Imagen models are deprecated and will shut down as early as June 2026. As a replacement, you can migrate your apps to use Gemini Image models (the "Nano Banana" models).
Settings for controlling the aggressiveness of filtering out sensitive content.
See the documentation for more details.
Signature:
export interface ImagenSafetySettings | Property | Type | Description |
|---|---|---|
| personFilterLevel | ImagenPersonFilterLevel | A filter level controlling whether generation of images containing people or faces is allowed. |
| safetyFilterLevel | ImagenSafetyFilterLevel | A filter level controlling how aggressive to filter out sensitive content from generated images. |
A filter level controlling whether generation of images containing people or faces is allowed.
Signature:
personFilterLevel?: ImagenPersonFilterLevel;A filter level controlling how aggressive to filter out sensitive content from generated images.
Signature:
safetyFilterLevel?: ImagenSafetyFilterLevel;