ImagenModel

@PublicPreviewAPI
class ImagenModel


Represents a generative model (like Imagen), capable of generating images based on various input types.

Summary

Public functions

suspend ImagenGenerationResponse<ImagenInlineImage>

Generates an image, returning the result directly to the caller.

Public functions

generateImages

suspend fun generateImages(prompt: String): ImagenGenerationResponse<ImagenInlineImage>

Generates an image, returning the result directly to the caller.

Parameters
prompt: String

The input(s) given to the model as a prompt.