CreateImageRequest constructor

CreateImageRequest({
  1. required String prompt,
  2. int? n = 1,
  3. CreateImageRequestSizeEnum? size = const CreateImageRequestSizeEnum._('1024x1024'),
  4. CreateImageRequestResponseFormatEnum? responseFormat = const CreateImageRequestResponseFormatEnum._('url'),
  5. String? user,
})

Returns a new CreateImageRequest instance.

Implementation

CreateImageRequest({
  required this.prompt,
  this.n = 1,
  this.size = const CreateImageRequestSizeEnum._('1024x1024'),
  this.responseFormat = const CreateImageRequestResponseFormatEnum._('url'),
  this.user,
});