Posted April 13, 20231 yr This article helps how to use Dall-e 2 API to create images from textual description. Start with Dall-e 2 account DALL·E 2 Jumpstart Your Creativity with Dall-E 2: Get 50 Free Credits to Create, Tweak, and Generate Image Variants! Create a free account: Sign up for an account on the OpenAI website to access DALL-E 2. Upon signing up, you will receive 50 credits initially, with an additional set of 15 credits added every month. Note that free credits cannot be carried forward. Explore the web application: DALL-E 2 is available as a web application, which you can directly access from your internet browser. Once logged in, you can start using the AI image generation function through the web application's interface. Create a PowerApp TextInput to type the prompt Button to trigger the Power automate Set OnSelect property: Set(imageurl, OpenAIDalle.Run(imagePromptTextInput.Text)) where OpenAIDalle is the name of the PowerAutomate workflow Media Type Image to display the image returned from Dall-e Power automate Create a PowerAutomate Here are the steps to create a Power Flow: Go to flow.microsoft.com and click on "Flows". Visit Microsoft Power Automate Click "New Flow" and name it "OpenAIDalle". Start with PowerApps trigger to get the prompt. HTTP-Dall-e (as shown below) Get OpenAI api-key from OpenAI API replace openai_Api_key with above key Authorization: Bearer openai_Api_key parse the response json for generated image URL from a prompt Send the image URL back to powerappPowerApps Set the media image URL in PowerApps as returned response from PowerApps Output in PowerApps References: OpenAI API How to use AI image prompts to generate art using DALL‑E | Learn at Microsoft Create More advance capabilities of DALL-e 2 and PowerApps are coming soon!! Continue reading...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.