OpenAI Dall*E2 Wrapper

OpenAI Dall*E2 Wrapper let's you generate AI generated images using open ai api endpoints.


Get your api key from:

final open_ai = OpenaiDalleWrapper(
    apiKey: "$apiKey",

Generate Image from Text:

final imagePath = open_ai.generateImage("Your text to generate image from.")

Edit an image with given text:

final generatedImagesFromText = await openai.editImage(
       /// Image path
      /// The text which api will generate edited image from
      "astronout dog",
      /// Number of variations to generate