ImagenModelFutures

@PublicPreviewAPI
abstract class ImagenModelFutures


Wrapper class providing Java compatible methods for ImagenModel.

See also
ImagenModel

Summary

Public companion functions

ImagenModelFutures
from(model: ImagenModel)

Public functions

abstract ListenableFuture<ImagenGenerationResponse<ImagenInlineImage>>

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

abstract ImagenModel

Returns the ImagenModel object wrapped by this object.

Public companion functions

from

fun from(model: ImagenModel): ImagenModelFutures
Returns
ImagenModelFutures

a ImagenModelFutures created around the provided ImagenModel

Public functions

generateImages

abstract fun generateImages(prompt: String): ListenableFuture<ImagenGenerationResponse<ImagenInlineImage>>

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

Parameters
prompt: String

The main text prompt from which the image is generated.

getImageModel

abstract fun getImageModel(): ImagenModel

Returns the ImagenModel object wrapped by this object.