ImageRequest constructor

ImageRequest({
  1. String model = "flux",
  2. String prompt = "",
  3. dynamic seed = "",
  4. int width = 1024,
  5. int height = 1024,
  6. bool enhance = false,
  7. bool private = false,
  8. bool safe = false,
  9. String referrer = "pollinations.py",
})

Constructor for ImageRequest class.

@param model The model to use for image generation. Default is "flux". @param prompt The prompt to use for image generation. @param seed The seed to use for image generation. Default is "random". @param width The width of the generated image. Default is 1024. @param height The height of the generated image. Default is 1024. @param enhance Whether to enhance the image. Default is false. @param nologo Whether to include a logo in the image. Default is false. @param private Whether to make the image private. Default is false. @param safe Whether to make the image safe. Default is false. @param referrer The referrer to use for the API call. Default is "pollinations.py".

Implementation

ImageRequest({
  this.model = "flux",
  this.prompt = "",
  this.seed = "",
  this.width = 1024,
  this.height = 1024,
  this.enhance = false,
  this.nologo = false,
  this.private = false,
  this.safe = false,
  this.referrer = "pollinations.py",
}) : timestamp = DateTime.now();