@@ -10,6 +10,13 @@ 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
+ Configuration options for generating images with Imagen.
17
+
18
+ See the [ documentation] ( http://firebase.google.com/docs/vertex-ai/generate-images-imagen ) for more details.
19
+
13
20
<b >Signature:</b >
14
21
15
22
``` typescript
@@ -20,14 +27,23 @@ export interface ImagenGenerationConfig
20
27
21
28
| Property | Type | Description |
22
29
| --- | --- | --- |
23
- | [addWatermark ](./vertexai .imagengenerationconfig .md #imagengenerationconfigaddwatermark ) | boolean | |
24
- | [aspectRatio ](./vertexai .imagengenerationconfig .md #imagengenerationconfigaspectratio ) | [ImagenAspectRatio ](./vertexai .md #imagenaspectratio ) | |
25
- | [imageFormat ](./vertexai .imagengenerationconfig .md #imagengenerationconfigimageformat ) | [ImagenImageFormat ](./vertexai .imagenimageformat .md #imagenimageformat_class ) | |
26
- | [negativePrompt ](./vertexai .imagengenerationconfig .md #imagengenerationconfignegativeprompt ) | string | |
27
- | [numberOfImages ](./vertexai .imagengenerationconfig .md #imagengenerationconfignumberofimages ) | number | |
30
+ | [addWatermark ](./vertexai .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 " >< code > addWatermark </ code ></ a > documentation for more details . |
31
+ | [aspectRatio ](./vertexai .imagengenerationconfig .md #imagengenerationconfigaspectratio ) | [ImagenAspectRatio ](./vertexai .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 < code >[ ImagenAspectRatio ](./ vertexai . md # imagenaspectratio )</ code > for more details . |
32
+ | [imageFormat ](./vertexai .imagengenerationconfig .md #imagengenerationconfigimageformat ) | [ImagenImageFormat ](./vertexai .imagenimageformat .md #imagenimageformat_class ) | < b >< i >( Public Preview )</ i ></ b > The image format of the generated images . The default is PNG .<!-- --> See < code >[ ImagenImageFormat ](./ vertexai . imagenimageformat . md # imagenimageformat_class )</ code > for more details . |
33
+ | [negativePrompt ](./vertexai .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. |
34
+ | [numberOfImages ](./vertexai .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 " >< code > sampleCount </ code ></ a > documentation for more details . |
28
35
29
36
## ImagenGenerationConfig .addWatermark
30
37
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
+ Whether to add an invisible watermark to generated images .
42
+
43
+ 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 .
44
+
45
+ For Imagen 3 models , the default value is `true `<!-- -->; see the <a href = " http://firebase.google.com/docs/vertex-ai/model-parameters#imagen" ><code >addWatermark </code ></a > documentation for more details .
46
+
31
47
<b >Signature :</b >
32
48
33
49
```typescript
@@ -36,6 +52,11 @@ addWatermark?: boolean;
36
52
37
53
## ImagenGenerationConfig .aspectRatio
38
54
55
+ > 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 .
56
+ >
57
+
58
+ The aspect ratio of the generated images . The default value is square 1:1. Supported aspect ratios depend on the Imagen model , see <code >[ImagenAspectRatio ](./vertexai .md #imagenaspectratio )</code > for more details .
59
+
39
60
<b >Signature :</b >
40
61
41
62
```typescript
@@ -44,6 +65,13 @@ aspectRatio?: ImagenAspectRatio;
44
65
45
66
## ImagenGenerationConfig .imageFormat
46
67
68
+ > 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 .
69
+ >
70
+
71
+ The image format of the generated images . The default is PNG .
72
+
73
+ See <code >[ImagenImageFormat ](./vertexai .imagenimageformat .md #imagenimageformat_class )</code > for more details .
74
+
47
75
<b >Signature :</b >
48
76
49
77
```typescript
@@ -52,6 +80,15 @@ imageFormat?: ImagenImageFormat;
52
80
53
81
## ImagenGenerationConfig .negativePrompt
54
82
83
+ > 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 .
84
+ >
85
+
86
+ A description of what should be omitted from the generated images .
87
+
88
+ Support for negative prompts depends on the Imagen model .
89
+
90
+ See the [documentation ](http :// firebase.google.com/docs/vertex-ai/model-parameters#imagen) for more details.
91
+
55
92
<b >Signature :</b >
56
93
57
94
```typescript
@@ -60,6 +97,13 @@ negativePrompt?: string;
60
97
61
98
## ImagenGenerationConfig .numberOfImages
62
99
100
+ > 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 .
101
+ >
102
+
103
+ The number of images to generate . The default value is 1.
104
+
105
+ 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" ><code >sampleCount </code ></a > documentation for more details .
106
+
63
107
<b >Signature :</b >
64
108
65
109
```typescript
0 commit comments