generateImagePngFromText method
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);
}