docs-devsite/ai.imagenmodelparams.md
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)<!-- -->.
Parameters for configuring an ImagenModel<!-- -->.
<b>Signature:</b>
export interface ImagenModelParams
| Property | Type | Description |
|---|---|---|
| generationConfig | ImagenGenerationConfig | Configuration options for generating images with Imagen. |
| model | string | The Imagen model to use for generating images. For example: <code>imagen-3.0-generate-002</code>.<!-- -->Only Imagen 3 models (named <code>imagen-3.0-*</code>) are supported.<!-- -->See model versions for a full list of supported Imagen 3 models. |
| safetySettings | ImagenSafetySettings | Safety settings for filtering potentially inappropriate content. |
Configuration options for generating images with Imagen.
<b>Signature:</b>
generationConfig?: ImagenGenerationConfig;
The Imagen model to use for generating images. For example: imagen-3.0-generate-002<!-- -->.
Only Imagen 3 models (named imagen-3.0-*<!-- -->) are supported.
See model versions for a full list of supported Imagen 3 models.
<b>Signature:</b>
model: string;
Safety settings for filtering potentially inappropriate content.
<b>Signature:</b>
safetySettings?: ImagenSafetySettings;