@@ -10,6 +10,9 @@ 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+
1316Configuration options for generating images with Imagen.
1417
1518See the [ Cloud documentation] ( https://cloud.google.com/vertex-ai/generative-ai/docs/image/generate-images ) for more details.
@@ -24,14 +27,17 @@ export interface ImagenGenerationConfig
2427
2528| Property | Type | Description |
2629| --- | --- | --- |
27- | [addWatermark ](./vertexai .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 .<!-- -->The default value depends on the Imagen model ; see the [addWatermark ](https :// cloud.google.com/vertex-ai/generative-ai/docs/model-reference/imagen-api#parameter_list) documentation for more details. |
28- | [aspectRatio ](./vertexai .imagengenerationconfig .md #imagengenerationconfigaspectratio ) | [ImagenAspectRatio ](./vertexai .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 <code >[ImagenAspectRatio ](./vertexai .md #imagenaspectratio )</code > for more details . |
29- | [imageFormat ](./vertexai .imagengenerationconfig .md #imagengenerationconfigimageformat ) | [ImagenImageFormat ](./vertexai .imagenimageformat .md #imagenimageformat_class ) | The image format of the generated images . The default is PNG .<!-- -->See <code >[ImagenImageFormat ](./vertexai .imagenimageformat .md #imagenimageformat_class )</code > for more details . |
30- | [negativePrompt ](./vertexai .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 [Cloud documentation ](https :// cloud.google.com/vertex-ai/generative-ai/docs/image/generate-images#negative-prompt) for more details. |
31- | [numberOfImages ](./vertexai .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 [sampleCount ](https :// cloud.google.com/vertex-ai/generative-ai/docs/model-reference/imagen-api#parameter_list) documentation for more details. |
30+ | [addWatermark ](./vertexai .imagengenerationconfig .md #imagengenerationconfigaddwatermark ) | boolean | < b >< i >( BETA )</ 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 .<!-- -->The default value depends on the Imagen model ; see the [addWatermark ](https :// cloud.google.com/vertex-ai/generative-ai/docs/model-reference/imagen-api#parameter_list) documentation for more details. |
31+ | [aspectRatio ](./vertexai .imagengenerationconfig .md #imagengenerationconfigaspectratio ) | [ImagenAspectRatio ](./vertexai .md #imagenaspectratio ) | < b >< i >( BETA )</ 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 >( BETA )</ 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 >( BETA )</ i ></ b > A description of what should be omitted from the generated images .<!-- -->Support for negative prompts depends on the Imagen model .<!-- -->See the [Cloud documentation ](https :// cloud.google.com/vertex-ai/generative-ai/docs/image/generate-images#negative-prompt) for more details. |
34+ | [numberOfImages ](./vertexai .imagengenerationconfig .md #imagengenerationconfignumberofimages ) | number | < b >< i >( BETA )</ 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 [sampleCount ](https :// cloud.google.com/vertex-ai/generative-ai/docs/model-reference/imagen-api#parameter_list) documentation for more details. |
3235
3336## ImagenGenerationConfig .addWatermark
3437
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+
3541Whether to add an invisible watermark to generated images .
3642
3743If 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 .
@@ -46,6 +52,9 @@ addWatermark?: boolean;
4652
4753## ImagenGenerationConfig .aspectRatio
4854
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+
4958The 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 .
5059
5160<b >Signature :</b >
@@ -56,6 +65,9 @@ aspectRatio?: ImagenAspectRatio;
5665
5766## ImagenGenerationConfig .imageFormat
5867
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+
5971The image format of the generated images . The default is PNG .
6072
6173See <code >[ImagenImageFormat ](./vertexai .imagenimageformat .md #imagenimageformat_class )</code > for more details .
@@ -68,6 +80,9 @@ imageFormat?: ImagenImageFormat;
6880
6981## ImagenGenerationConfig .negativePrompt
7082
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+
7186A description of what should be omitted from the generated images .
7287
7388Support for negative prompts depends on the Imagen model .
@@ -82,6 +97,9 @@ negativePrompt?: string;
8297
8398## ImagenGenerationConfig .numberOfImages
8499
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+
85103The number of images to generate . The default value is 1.
86104
87105The number of sample images that may be generated in each request depends on the model (typically up to 4); see the [sampleCount ](https :// cloud.google.com/vertex-ai/generative-ai/docs/model-reference/imagen-api#parameter_list) documentation for more details.
0 commit comments