Back to Firebase Js Sdk

ImagenGCSImage interface

docs-devsite/ai.imagengcsimage.md

12.12.11.9 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

ImagenGCSImage interface

Warning: This API is now obsolete.

All Imagen models are deprecated and will shut down as early as June 2026. As a replacement, you can migrate your apps to use Gemini Image models (the "Nano Banana" models)<!-- -->.

An image generated by Imagen, stored in a Cloud Storage for Firebase bucket.

This feature is not available yet.

<b>Signature:</b>

typescript
export interface ImagenGCSImage 

Properties

PropertyTypeDescription
gcsURIstringThe URI of the file stored in a Cloud Storage for Firebase bucket.
mimeTypestringThe MIME type of the image; either <code>"image/png"</code> or <code>"image/jpeg"</code>.<!-- -->To request a different format, set the <code>imageFormat</code> property in your ImagenGenerationConfig<!-- -->.

ImagenGCSImage.gcsURI

The URI of the file stored in a Cloud Storage for Firebase bucket.

<b>Signature:</b>

typescript
gcsURI: string;

Example

"gs://bucket-name/path/sample_0.jpg"<!-- -->.

ImagenGCSImage.mimeType

The MIME type of the image; either "image/png" or "image/jpeg"<!-- -->.

To request a different format, set the imageFormat property in your ImagenGenerationConfig<!-- -->.

<b>Signature:</b>

typescript
mimeType: string;