generate abstract method

Future<Uint8List> generate({
  1. required String prompt,
  2. ImageModel? model,
  3. bool? highQuality,
  4. ImageStyle? style,
  5. ImageSize? size,
  6. void onDownloadProgress(
    1. double progress
    )?,
})

Generates a image using a prompt.

Dalle-e-2 only parameters:

  • size with dimensions: 256x256 or 512x512

Dall-e-3 only parameters:

  • highQuality = true
  • size with dimensions: 1792x1024 or 1024x1792
  • style = 'Natural'

Implementation

Future<Uint8List> generate({
  required String prompt,
  ImageModel? model,
  bool? highQuality,
  ImageStyle? style,
  ImageSize? size,
  void Function(double progress)? onDownloadProgress,
});