BetaBetaMakes a single call to the model and returns an object containing a single ImagenGenerationResponse.
The ID of the server-side template to execute.
A key-value map of variables to populate the template with.
OptionalsingleRequestOptions: SingleRequestOptions
Class for Imagen model APIs that execute on a server-side template.
This class should only be instantiated with getTemplateImagenModel.
Deprecated
Imagen models are deprecated. Use getGenerativeModel with a Gemini image model such as
gemini-3.1-flash-lite-imageinstead.