@@ -10,9 +10,6 @@ https://github.com/firebase/firebase-js-sdk
10
10
{% endcomment %}
11
11
12
12
# 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
-
16
13
Configuration options for generating images with Imagen.
17
14
18
15
See the [ documentation] ( http://firebase.google.com/docs/vertex-ai/generate-images-imagen ) for more details.
@@ -27,17 +24,14 @@ export interface ImagenGenerationConfig
27
24
28
25
| Property | Type | Description |
29
26
| --- | --- | --- |
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 . |
35
32
36
33
## ImagenGenerationConfig .addWatermark
37
34
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
-
41
35
Whether to add an invisible watermark to generated images .
42
36
43
37
If 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;
54
48
55
49
## ImagenGenerationConfig .aspectRatio
56
50
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
-
60
51
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 .
61
52
62
53
<b >Signature :</b >
@@ -67,9 +58,6 @@ aspectRatio?: ImagenAspectRatio;
67
58
68
59
## ImagenGenerationConfig .imageFormat
69
60
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
-
73
61
The image format of the generated images . The default is PNG .
74
62
75
63
See [ImagenImageFormat ](./ai .imagenimageformat .md #imagenimageformat_class ) for more details .
@@ -82,9 +70,6 @@ imageFormat?: ImagenImageFormat;
82
70
83
71
## ImagenGenerationConfig .negativePrompt
84
72
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
-
88
73
A description of what should be omitted from the generated images .
89
74
90
75
Support for negative prompts depends on the Imagen model .
@@ -101,9 +86,6 @@ negativePrompt?: string;
101
86
102
87
## ImagenGenerationConfig .numberOfImages
103
88
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
-
107
89
The number of images to generate . The default value is 1.
108
90
109
91
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 .
0 commit comments