Dall•E 3 (OpenAI Image Generation)
-
Register yourself for OpenAI account. Check if there is any free grant is given, if not, setup a paid account.
-
Get API key from https://platform.openai.com/account/api-keys
-
Create a file called
.env
in the root of the project and add the following line:OPENAI_API_KEY=<your api key>
-
Install dependencies:
pip install -r requirements.txt
-
Run the script:
py main.py
-
Enter the prompt in the terminal and press enter
-
The generated image URLs will be printed out in the terminal. You can open it in your browser to see the result
Compare the results with Dall•E 2. Spoiler: Huge improvement!