Google - GenAI Product Catalog
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Images

client

json

typing

request

m

utils

Image

Part

multimodal_model

get_image_bytes_from_url

def get_image_bytes_from_url(image_url: str) -> bytes

load_image_from_url

def load_image_from_url(image_url: str) -> Image

get_url_from_gcs

def get_url_from_gcs(gcs_uri: str) -> str

from_url

def from_url(image: str)

from_gsc_uri

def from_gsc_uri(image_uri)

content_generation

def content_generation(prompt: str, im)

image_to_attributes

def image_to_attributes(req: m.ImageRequest) -> m.ProductAttributes

image_to_product_description

def image_to_product_description(image: str) -> m.TextValue