generateImageBase64FromText method

Future<List<ImageResponse>> generateImageBase64FromText({
  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 input prompts and returns it as a base64 string.

Implementation

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