Skip to content

Commit 1320f62

Browse files
committed
mark all APIs beta instead of public
1 parent a9c70b8 commit 1320f62

15 files changed

+181
-118
lines changed

common/api-review/vertexai.api.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export class GenerativeModel extends VertexAIModel {
346346
// @public
347347
export function getGenerativeModel(vertexAI: VertexAI, modelParams: ModelParams, requestOptions?: RequestOptions): GenerativeModel;
348348

349-
// @public
349+
// @beta
350350
export function getImagenModel(vertexAI: VertexAI, modelParams: ImagenModelParams, requestOptions?: RequestOptions): ImagenModel;
351351

352352
// @public
@@ -430,7 +430,7 @@ export enum HarmSeverity {
430430
HARM_SEVERITY_NEGLIGIBLE = "HARM_SEVERITY_NEGLIGIBLE"
431431
}
432432

433-
// @public
433+
// @beta
434434
export enum ImagenAspectRatio {
435435
LANDSCAPE_16x9 = "16:9",
436436
LANDSCAPE_3x4 = "3:4",
@@ -439,13 +439,13 @@ export enum ImagenAspectRatio {
439439
SQUARE = "1:1"
440440
}
441441

442-
// @public
442+
// @beta
443443
export interface ImagenGCSImage {
444444
gcsURI: string;
445445
mimeType: string;
446446
}
447447

448-
// @public
448+
// @beta
449449
export interface ImagenGenerationConfig {
450450
addWatermark?: boolean;
451451
aspectRatio?: ImagenAspectRatio;
@@ -454,62 +454,61 @@ export interface ImagenGenerationConfig {
454454
numberOfImages?: number;
455455
}
456456

457-
// @public
457+
// @beta
458458
export interface ImagenGenerationResponse<T extends ImagenInlineImage | ImagenGCSImage> {
459459
filteredReason?: string;
460460
images: T[];
461461
}
462462

463-
// @public
463+
// @beta
464464
export class ImagenImageFormat {
465465
compressionQuality?: number;
466466
static jpeg(compressionQuality?: number): ImagenImageFormat;
467467
mimeType: string;
468468
static png(): ImagenImageFormat;
469469
}
470470

471-
// @public
471+
// @beta
472472
export interface ImagenInlineImage {
473473
bytesBase64Encoded: string;
474474
mimeType: string;
475475
}
476476

477-
// @public
477+
// @beta
478478
export class ImagenModel extends VertexAIModel {
479479
constructor(vertexAI: VertexAI, modelParams: ImagenModelParams, requestOptions?: RequestOptions | undefined);
480-
// @beta
481480
generateImages(prompt: string): Promise<ImagenGenerationResponse<ImagenInlineImage>>;
482-
// @beta
481+
// @internal
483482
generateImagesGCS(prompt: string, gcsURI: string): Promise<ImagenGenerationResponse<ImagenGCSImage>>;
484483
generationConfig?: ImagenGenerationConfig;
485484
// (undocumented)
486485
requestOptions?: RequestOptions | undefined;
487486
safetySettings?: ImagenSafetySettings;
488487
}
489488

490-
// @public
489+
// @beta
491490
export interface ImagenModelParams {
492491
generationConfig?: ImagenGenerationConfig;
493492
model: string;
494493
safetySettings?: ImagenSafetySettings;
495494
}
496495

497-
// @public
496+
// @beta
498497
export enum ImagenPersonFilterLevel {
499498
ALLOW_ADULT = "allow_adult",
500499
ALLOW_ALL = "allow_all",
501500
BLOCK_ALL = "dont_allow"
502501
}
503502

504-
// @public
503+
// @beta
505504
export enum ImagenSafetyFilterLevel {
506505
BLOCK_LOW_AND_ABOVE = "block_low_and_above",
507506
BLOCK_MEDIUM_AND_ABOVE = "block_medium_and_above",
508507
BLOCK_NONE = "block_none",
509508
BLOCK_ONLY_HIGH = "block_only_high"
510509
}
511510

512-
// @public
511+
// @beta
513512
export interface ImagenSafetySettings {
514513
personFilterLevel?: ImagenPersonFilterLevel;
515514
safetyFilterLevel?: ImagenSafetyFilterLevel;

docs-devsite/vertexai.imagengcsimage.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ https://github.com/firebase/firebase-js-sdk
1010
{% endcomment %}
1111

1212
# ImagenGCSImage 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+
1316
An image generated by Imagen, stored in Cloud Storage (GCS) for Firebase.
1417

1518
<b>Signature:</b>
@@ -22,11 +25,14 @@ export interface ImagenGCSImage
2225

2326
| Property | Type | Description |
2427
| --- | --- | --- |
25-
| [gcsURI](./vertexai.imagengcsimage.md#imagengcsimagegcsuri) | string | The URI of the file in Cloud Storage (GCS) for Firestore. |
26-
| [mimeType](./vertexai.imagengcsimage.md#imagengcsimagemimetype) | string | The MIME type of the image; either <code>&quot;image/png&quot;</code> or <code>&quot;image/jpeg&quot;</code>.<!-- -->To request a different format, set the <code>imageFormat</code> property in your <code>[ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface)</code>. |
28+
| [gcsURI](./vertexai.imagengcsimage.md#imagengcsimagegcsuri) | string | <b><i>(BETA)</i></b> The URI of the file in Cloud Storage (GCS) for Firestore. |
29+
| [mimeType](./vertexai.imagengcsimage.md#imagengcsimagemimetype) | string | <b><i>(BETA)</i></b> The MIME type of the image; either <code>&quot;image/png&quot;</code> or <code>&quot;image/jpeg&quot;</code>.<!-- -->To request a different format, set the <code>imageFormat</code> property in your <code>[ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface)</code>. |
2730

2831
## ImagenGCSImage.gcsURI
2932

33+
> 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.
34+
>
35+
3036
The URI of the file in Cloud Storage (GCS) for Firestore.
3137

3238
<b>Signature:</b>
@@ -41,6 +47,9 @@ gcsURI: string;
4147

4248
## ImagenGCSImage.mimeType
4349

50+
> 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.
51+
>
52+
4453
The MIME type of the image; either `"image/png"` or `"image/jpeg"`<!-- -->.
4554

4655
To request a different format, set the `imageFormat` property in your <code>[ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface)</code>.

docs-devsite/vertexai.imagengenerationconfig.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
1316
Configuration options for generating images with Imagen.
1417

1518
See 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+
3541
Whether to add an invisible watermark to generated images.
3642

3743
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.
@@ -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+
4958
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.
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+
5971
The image format of the generated images. The default is PNG.
6072

6173
See <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+
7186
A description of what should be omitted from the generated images.
7287

7388
Support 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+
85103
The number of images to generate. The default value is 1.
86104

87105
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.

docs-devsite/vertexai.imagengenerationresponse.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ https://github.com/firebase/firebase-js-sdk
1010
{% endcomment %}
1111

1212
# ImagenGenerationResponse 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+
1316
The response from a request to generate images with Imagen.
1417

1518
<b>Signature:</b>
@@ -22,11 +25,14 @@ export interface ImagenGenerationResponse<T extends ImagenInlineImage | ImagenGC
2225

2326
| Property | Type | Description |
2427
| --- | --- | --- |
25-
| [filteredReason](./vertexai.imagengenerationresponse.md#imagengenerationresponsefilteredreason) | string | The reason that images were filtered out. This property will only be defined if one or more images were filtered.<!-- -->Images may be filtered out due to the <code>[ImagenSafetyFilterLevel](./vertexai.md#imagensafetyfilterlevel)</code>, <code>[ImagenPersonFilterLevel](./vertexai.md#imagenpersonfilterlevel)</code>, or filtering included in the model. The filter levels may be adjusted in your <code>[ImagenSafetySettings](./vertexai.imagensafetysettings.md#imagensafetysettings_interface)</code>.<!-- -->See the [Responsible AI and usage guidelines for Imagen](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen) for more details. |
26-
| [images](./vertexai.imagengenerationresponse.md#imagengenerationresponseimages) | T\[\] | The images generated by Imagen.<!-- -->The number of images generated may be fewer than the number requested if one or more were filtered out; see <code>filteredReason</code>. |
28+
| [filteredReason](./vertexai.imagengenerationresponse.md#imagengenerationresponsefilteredreason) | string | <b><i>(BETA)</i></b> The reason that images were filtered out. This property will only be defined if one or more images were filtered.<!-- -->Images may be filtered out due to the <code>[ImagenSafetyFilterLevel](./vertexai.md#imagensafetyfilterlevel)</code>, <code>[ImagenPersonFilterLevel](./vertexai.md#imagenpersonfilterlevel)</code>, or filtering included in the model. The filter levels may be adjusted in your <code>[ImagenSafetySettings](./vertexai.imagensafetysettings.md#imagensafetysettings_interface)</code>.<!-- -->See the [Responsible AI and usage guidelines for Imagen](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen) for more details. |
29+
| [images](./vertexai.imagengenerationresponse.md#imagengenerationresponseimages) | T\[\] | <b><i>(BETA)</i></b> The images generated by Imagen.<!-- -->The number of images generated may be fewer than the number requested if one or more were filtered out; see <code>filteredReason</code>. |
2730

2831
## ImagenGenerationResponse.filteredReason
2932

33+
> 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.
34+
>
35+
3036
The reason that images were filtered out. This property will only be defined if one or more images were filtered.
3137

3238
Images may be filtered out due to the <code>[ImagenSafetyFilterLevel](./vertexai.md#imagensafetyfilterlevel)</code>, <code>[ImagenPersonFilterLevel](./vertexai.md#imagenpersonfilterlevel)</code>, or filtering included in the model. The filter levels may be adjusted in your <code>[ImagenSafetySettings](./vertexai.imagensafetysettings.md#imagensafetysettings_interface)</code>.
@@ -41,6 +47,9 @@ filteredReason?: string;
4147

4248
## ImagenGenerationResponse.images
4349

50+
> 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.
51+
>
52+
4453
The images generated by Imagen.
4554

4655
The number of images generated may be fewer than the number requested if one or more were filtered out; see `filteredReason`<!-- -->.

0 commit comments

Comments
 (0)