@@ -10,6 +10,13 @@ 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+
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+
1320<b >Signature:</b >
1421
1522``` typescript
@@ -20,14 +27,23 @@ export interface ImagenGenerationConfig
2027
2128| Property | Type | Description |
2229| --- | --- | --- |
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 . |
2835
2936## ImagenGenerationConfig .addWatermark
3037
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+
3147<b >Signature :</b >
3248
3349```typescript
@@ -36,6 +52,11 @@ addWatermark?: boolean;
3652
3753## ImagenGenerationConfig .aspectRatio
3854
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+
3960<b >Signature :</b >
4061
4162```typescript
@@ -44,6 +65,13 @@ aspectRatio?: ImagenAspectRatio;
4465
4566## ImagenGenerationConfig .imageFormat
4667
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+
4775<b >Signature :</b >
4876
4977```typescript
@@ -52,6 +80,15 @@ imageFormat?: ImagenImageFormat;
5280
5381## ImagenGenerationConfig .negativePrompt
5482
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+
5592<b >Signature :</b >
5693
5794```typescript
@@ -60,6 +97,13 @@ negativePrompt?: string;
6097
6198## ImagenGenerationConfig .numberOfImages
6299
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+
63107<b >Signature :</b >
64108
65109```typescript
0 commit comments