ImagenModelParams interface
Stay organized with collections
Save and categorize content based on your preferences.
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Parameters for configuring an ImagenModel.
Signature:
export interface ImagenModelParams
Properties
Property |
Type |
Description |
generationConfig |
ImagenGenerationConfig |
(Public Preview) Configuration options for generating images with Imagen. |
model |
string |
(Public Preview) 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. |
safetySettings |
ImagenSafetySettings |
(Public Preview) Safety settings for filtering potentially inappropriate content. |
ImagenModelParams.generationConfig
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Configuration options for generating images with Imagen.
Signature:
generationConfig?: ImagenGenerationConfig;
ImagenModelParams.model
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
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.
Signature:
model: string;
ImagenModelParams.safetySettings
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Safety settings for filtering potentially inappropriate content.
Signature:
safetySettings?: ImagenSafetySettings;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["# ImagenModelParams interface\n\n\u003e This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\nParameters for configuring an [ImagenModel](./ai.imagenmodel.md#imagenmodel_class).\n\n**Signature:** \n\n export interface ImagenModelParams \n\nProperties\n----------\n\n| Property | Type | Description |\n|---------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [generationConfig](./ai.imagenmodelparams.md#imagenmodelparamsgenerationconfig) | [ImagenGenerationConfig](./ai.imagengenerationconfig.md#imagengenerationconfig_interface) | ***(Public Preview)*** Configuration options for generating images with Imagen. |\n| [model](./ai.imagenmodelparams.md#imagenmodelparamsmodel) | string | ***(Public Preview)*** 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](https://firebase.google.com/docs/vertex-ai/models) for a full list of supported Imagen 3 models. |\n| [safetySettings](./ai.imagenmodelparams.md#imagenmodelparamssafetysettings) | [ImagenSafetySettings](./ai.imagensafetysettings.md#imagensafetysettings_interface) | ***(Public Preview)*** Safety settings for filtering potentially inappropriate content. |\n\nImagenModelParams.generationConfig\n----------------------------------\n\n\u003e This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\nConfiguration options for generating images with Imagen.\n\n**Signature:** \n\n generationConfig?: ImagenGenerationConfig;\n\nImagenModelParams.model\n-----------------------\n\n\u003e This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\nThe Imagen model to use for generating images. For example: `imagen-3.0-generate-002`.\n\nOnly Imagen 3 models (named `imagen-3.0-*`) are supported.\n\nSee [model versions](https://firebase.google.com/docs/vertex-ai/models) for a full list of supported Imagen 3 models.\n\n**Signature:** \n\n model: string;\n\nImagenModelParams.safetySettings\n--------------------------------\n\n\u003e This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.\n\nSafety settings for filtering potentially inappropriate content.\n\n**Signature:** \n\n safetySettings?: ImagenSafetySettings;"]]