Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.79 KB

File metadata and controls

53 lines (37 loc) · 1.79 KB

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 %}

ImagenInlineImage 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, represented as inline data.

Signature:

export interface ImagenInlineImage 

Properties

Property Type Description
bytesBase64Encoded string The base64-encoded image data.
mimeType string The MIME type of the image; either "image/png" or "image/jpeg".To request a different format, set the imageFormat property in your ImagenGenerationConfig.

ImagenInlineImage.bytesBase64Encoded

The base64-encoded image data.

Signature:

bytesBase64Encoded: string;

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

Signature:

mimeType: string;