generateImage method

Future<Images?> generateImage({
  1. required ImageRequest request,
})

Image Generation

https://beta.openai.com/docs/guides/images/image-generation-beta as of now it supports Creating images from scratch based on a text prompt prompt the input to generate the image. eg: "a white siamese cat" size the output image size 256x256, 512x512, or 1024x1024 pixel. Defaults to 1024x1024 n maximum number of images that can be generated min 1 & max 10. Defaults to 1

Implementation

Future<Images?> generateImage({
  required ImageRequest request,
}) async {
  return await Api().generateImage(request: request);
}