ImagenGCSImage interface
Stay organized with collections
Save and categorize content based on your preferences.
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.
An image generated by Imagen, stored in a Cloud Storage for Firebase bucket.
This feature is not available yet.
Signature:
export interface ImagenGCSImage
Properties
Property |
Type |
Description |
gcsURI |
string |
(Public Preview) The URI of the file stored in a Cloud Storage for Firebase bucket. |
mimeType |
string |
(Public Preview) The MIME type of the image; either "image/png" or "image/jpeg" .To request a different format, set the imageFormat property in your ImagenGenerationConfig. |
ImagenGCSImage.gcsURI
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.
The URI of the file stored in a Cloud Storage for Firebase bucket.
Signature:
gcsURI: string;
Example
"gs://bucket-name/path/sample_0.jpg"
.
ImagenGCSImage.mimeType
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.
The MIME type of the image; either "image/png"
or "image/jpeg"
.
To request a different format, set the imageFormat
property in your ImagenGenerationConfig.
Signature:
mimeType: string;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[null,null,["Last updated 2025-08-07 UTC."],[],[],null,["# ImagenGCSImage interface\n\n\u003e 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.\n\nAn image generated by Imagen, stored in a Cloud Storage for Firebase bucket.\n\nThis feature is not available yet.\n\n**Signature:** \n\n export interface ImagenGCSImage \n\nProperties\n----------\n\n| Property | Type | Description |\n|-----------------------------------------------------------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [gcsURI](./ai.imagengcsimage.md#imagengcsimagegcsuri) | string | ***(Public Preview)*** The URI of the file stored in a Cloud Storage for Firebase bucket. |\n| [mimeType](./ai.imagengcsimage.md#imagengcsimagemimetype) | string | ***(Public Preview)*** The MIME type of the image; either `\"image/png\"` or `\"image/jpeg\"`.To request a different format, set the `imageFormat` property in your [ImagenGenerationConfig](./ai.imagengenerationconfig.md#imagengenerationconfig_interface). |\n\nImagenGCSImage.gcsURI\n---------------------\n\n\u003e 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.\n\nThe URI of the file stored in a Cloud Storage for Firebase bucket.\n\n**Signature:** \n\n gcsURI: string;\n\n### Example\n\n`\"gs://bucket-name/path/sample_0.jpg\"`.\n\nImagenGCSImage.mimeType\n-----------------------\n\n\u003e 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.\n\nThe MIME type of the image; either `\"image/png\"` or `\"image/jpeg\"`.\n\nTo request a different format, set the `imageFormat` property in your [ImagenGenerationConfig](./ai.imagengenerationconfig.md#imagengenerationconfig_interface).\n\n**Signature:** \n\n mimeType: string;"]]