ImagenInlineImage 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, represented as inline data.
Signature:
export interface ImagenInlineImage
Properties
Property |
Type |
Description |
bytesBase64Encoded |
string |
(Public Preview) The base64-encoded image data. |
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. |
ImagenInlineImage.bytesBase64Encoded
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 base64-encoded image data.
Signature:
bytesBase64Encoded: string;
ImagenInlineImage.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-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["\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, represented as inline data.\n\n**Signature:** \n\n export interface ImagenInlineImage \n\nProperties\n\nImagenInlineImage.bytesBase64Encoded 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 base64-encoded image data.\n\n**Signature:** \n\n bytesBase64Encoded: string;\n\nImagenInlineImage.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.\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;"]]