generateImagePngFromImage method

Future<Uint8List> generateImagePngFromImage({
  1. required String engineId,
  2. required ImageToImageRequestParams params,
  3. required Uint8List initImage,
  4. String? apiKey,
  5. String? organization,
  6. String? clientId,
  7. String? clientVersion,
})

Modify an image based on a text prompt and returns the image PNG bytes.

Implementation

Future<Uint8List> generateImagePngFromImage({
  required String engineId,
  required ImageToImageRequestParams params,
  required Uint8List initImage,
  String? apiKey,
  String? organization,
  String? clientId,
  String? clientVersion,
}) async {
  return _generationService.generateImagePngFromImage(
      apiKey: apiKey ?? _apiKey,
      engineId: engineId,
      params: params,
      initImage: initImage,
      organization: organization,
      clientId: clientId,
      clientVersion: clientVersion);
}