imagenModel method

ImagenModel imagenModel({
  1. required String model,
  2. ImagenGenerationConfig? generationConfig,
  3. ImagenSafetySettings? safetySettings,
})

Create a ImagenModel.

The optional safetySettings can be used to control and guide the generation. See ImagenSafetySettings for details.

Implementation

ImagenModel imagenModel(
    {required String model,
    ImagenGenerationConfig? generationConfig,
    ImagenSafetySettings? safetySettings}) {
  return createImagenModel(
      app: app,
      location: location,
      model: model,
      useVertexBackend: _useVertexBackend,
      generationConfig: generationConfig,
      safetySettings: safetySettings,
      appCheck: appCheck,
      auth: auth,
      useLimitedUseAppCheckTokens: useLimitedUseAppCheckTokens);
}