TemplateImagenModel

@PublicPreviewAPI
class TemplateImagenModel


Represents a generative model (like Imagen), capable of generating images based a template.

See the documentation for a list of supported models.

Summary

Public functions

suspend ImagenGenerationResponse<ImagenInlineImage>
generateImages(templateId: String, inputs: Map<StringAny>)

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

Public functions

generateImages

suspend fun generateImages(templateId: String, inputs: Map<StringAny>): ImagenGenerationResponse<ImagenInlineImage>

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

Parameters
templateId: String

The ID of server prompt template.

inputs: Map<StringAny>

the inputs needed to fill in the prompt