Class Image (1.71.1)

Image()

The image that can be sent to a generative model.

Properties

data

Returns the image data.

Methods

from_bytes

from_bytes(data: bytes) -> vertexai.generative_models._generative_models.Image

Loads image from image bytes.

load_from_file

load_from_file(
    location: str,
) -> vertexai.generative_models._generative_models.Image

Loads image from file.