upScaleImagePng method

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

Create a higher resolution version of an input image.

This operation outputs an image with a maximum pixel count of 4,194,304. This is equivalent to dimensions such as 2048x2048 and 4096x1024. Returns the image bytes.

Implementation

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