createAImageVariation method
create a variation of an image and return as ImagesResponse object
Implementation
Future<ImagesResponse> createAImageVariation(
{required File imageFile}) async {
try {
_checkApi();
final result = await service.variateImage(
image: imageFile, apiKey: _apiKey, config: _configImages);
return result;
} catch (e) {
if (e is OpenAIException) {
rethrow;
} else {
throw Exception(e.toString());
}
}
}