generateImagePngFromText method

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

Generates an image from the specified prompt and returns the set of bytes in PNG format.

Implementation

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