ImageRequest constructor
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();