@@ -10,9 +10,6 @@ https://github.com/firebase/firebase-js-sdk
1010{% endcomment %}
1111
1212# ImagenGenerationConfig interface
13- > 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.
14- >
15-
1613Configuration options for generating images with Imagen.
1714
1815See the [ documentation] ( http://firebase.google.com/docs/vertex-ai/generate-images-imagen ) for more details.
@@ -27,17 +24,14 @@ export interface ImagenGenerationConfig
2724
2825| Property | Type | Description |
2926| --- | --- | --- |
30- | [addWatermark ](./ai .imagengenerationconfig .md #imagengenerationconfigaddwatermark ) | boolean | < b >< i >( Public Preview )</ i ></ b > Whether to add an invisible watermark to generated images .<!-- -->If set to <code >true </code >, an invisible SynthID watermark is embedded in generated images to indicate that they are AI generated . If set to <code >false </code >, watermarking will be disabled .<!-- -->For Imagen 3 models , the default value is <code >true </code >; see the <a href = " http://firebase.google.com/docs/vertex-ai/model-parameters#imagen" >addWatermark </a > documentation for more details .<!-- -->When using the Gemini Developer API ([GoogleAIBackend ](./ai .googleaibackend .md #googleaibackend_class )<!-- -->), this will default to true , and cannot be turned off . |
31- | [aspectRatio ](./ai .imagengenerationconfig .md #imagengenerationconfigaspectratio ) | [ImagenAspectRatio ](./ai .md #imagenaspectratio ) | < b >< i >( Public Preview )</ i ></ b > The aspect ratio of the generated images . The default value is square 1:1. Supported aspect ratios depend on the Imagen model , see [ImagenAspectRatio ](./ai .md #imagenaspectratio ) for more details . |
32- | [imageFormat ](./ai .imagengenerationconfig .md #imagengenerationconfigimageformat ) | [ImagenImageFormat ](./ai .imagenimageformat .md #imagenimageformat_class ) | < b >< i >( Public Preview )</ i ></ b > The image format of the generated images . The default is PNG .<!-- -->See [ImagenImageFormat ](./ai .imagenimageformat .md #imagenimageformat_class ) for more details . |
33- | [negativePrompt ](./ai .imagengenerationconfig .md #imagengenerationconfignegativeprompt ) | string | < b >< i >( Public Preview )</ i ></ b > A description of what should be omitted from the generated images .<!-- -->Support for negative prompts depends on the Imagen model .<!-- -->See the [documentation ](http :// firebase.google.com/docs/vertex-ai/model-parameters#imagen) for more details.<!-- -->This is no longer supported in the Gemini Developer API ([GoogleAIBackend](./ai.googleaibackend.md#googleaibackend_class)<!-- -->) in versions greater than <code>imagen-3.0-generate-002</code>. |
34- | [numberOfImages ](./ai .imagengenerationconfig .md #imagengenerationconfignumberofimages ) | number | < b >< i >( Public Preview )</ i ></ b > The number of images to generate . The default value is 1.<!-- -->The number of sample images that may be generated in each request depends on the model (typically up to 4); see the <a href = " http://firebase.google.com/docs/vertex-ai/model-parameters#imagen" >sampleCount </a > documentation for more details . |
27+ | [addWatermark ](./ai .imagengenerationconfig .md #imagengenerationconfigaddwatermark ) | boolean | Whether to add an invisible watermark to generated images .<!-- -->If set to <code >true </code >, an invisible SynthID watermark is embedded in generated images to indicate that they are AI generated . If set to <code >false </code >, watermarking will be disabled .<!-- -->For Imagen 3 models , the default value is <code >true </code >; see the <a href = " http://firebase.google.com/docs/vertex-ai/model-parameters#imagen" >addWatermark </a > documentation for more details .<!-- -->When using the Gemini Developer API ([GoogleAIBackend ](./ai .googleaibackend .md #googleaibackend_class )<!-- -->), this will default to true , and cannot be turned off . |
28+ | [aspectRatio ](./ai .imagengenerationconfig .md #imagengenerationconfigaspectratio ) | [ImagenAspectRatio ](./ai .md #imagenaspectratio ) | The aspect ratio of the generated images . The default value is square 1:1. Supported aspect ratios depend on the Imagen model , see [ImagenAspectRatio ](./ai .md #imagenaspectratio ) for more details . |
29+ | [imageFormat ](./ai .imagengenerationconfig .md #imagengenerationconfigimageformat ) | [ImagenImageFormat ](./ai .imagenimageformat .md #imagenimageformat_class ) | The image format of the generated images . The default is PNG .<!-- -->See [ImagenImageFormat ](./ai .imagenimageformat .md #imagenimageformat_class ) for more details . |
30+ | [negativePrompt ](./ai .imagengenerationconfig .md #imagengenerationconfignegativeprompt ) | string | A description of what should be omitted from the generated images .<!-- -->Support for negative prompts depends on the Imagen model .<!-- -->See the [documentation ](http :// firebase.google.com/docs/vertex-ai/model-parameters#imagen) for more details.<!-- -->This is no longer supported in the Gemini Developer API ([GoogleAIBackend](./ai.googleaibackend.md#googleaibackend_class)<!-- -->) in versions greater than <code>imagen-3.0-generate-002</code>. |
31+ | [numberOfImages ](./ai .imagengenerationconfig .md #imagengenerationconfignumberofimages ) | number | The number of images to generate . The default value is 1.<!-- -->The number of sample images that may be generated in each request depends on the model (typically up to 4); see the <a href = " http://firebase.google.com/docs/vertex-ai/model-parameters#imagen" >sampleCount </a > documentation for more details . |
3532
3633## ImagenGenerationConfig .addWatermark
3734
38- > 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 .
39- >
40-
4135Whether to add an invisible watermark to generated images .
4236
4337If set to `true `<!-- -->, an invisible SynthID watermark is embedded in generated images to indicate that they are AI generated . If set to `false `<!-- -->, watermarking will be disabled .
@@ -54,9 +48,6 @@ addWatermark?: boolean;
5448
5549## ImagenGenerationConfig .aspectRatio
5650
57- > 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 .
58- >
59-
6051The aspect ratio of the generated images . The default value is square 1:1. Supported aspect ratios depend on the Imagen model , see [ImagenAspectRatio ](./ai .md #imagenaspectratio ) for more details .
6152
6253<b >Signature :</b >
@@ -67,9 +58,6 @@ aspectRatio?: ImagenAspectRatio;
6758
6859## ImagenGenerationConfig .imageFormat
6960
70- > 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 .
71- >
72-
7361The image format of the generated images . The default is PNG .
7462
7563See [ImagenImageFormat ](./ai .imagenimageformat .md #imagenimageformat_class ) for more details .
@@ -82,9 +70,6 @@ imageFormat?: ImagenImageFormat;
8270
8371## ImagenGenerationConfig .negativePrompt
8472
85- > 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 .
86- >
87-
8873A description of what should be omitted from the generated images .
8974
9075Support for negative prompts depends on the Imagen model .
@@ -101,9 +86,6 @@ negativePrompt?: string;
10186
10287## ImagenGenerationConfig .numberOfImages
10388
104- > 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 .
105- >
106-
10789The number of images to generate . The default value is 1.
10890
10991The number of sample images that may be generated in each request depends on the model (typically up to 4); see the <a href = " http://firebase.google.com/docs/vertex-ai/model-parameters#imagen" >sampleCount </a > documentation for more details .
0 commit comments