ImagenInlineImage interface

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;