- Generate Image
- Edit Image
- Create Image Variations
Build the image
docker build -t dalle-examples .
or pull from Docker Hub
docker pull orhan55555/dallephp
Run the app
docker run -p 8000:8000 -e OPENAI_API_KEY=sk-rf... dalle-examples
Before you get starting, you should set OPENAI_API_KEY with the following commands;
Powershell
$Env:OPENAI_API_KEY = "sk-gjtv....."
Cmd
set OPENAI_API_KEY=sk-gjtv.....
Linux or macOS
export OPENAI_API_KEY=sk-gjtv.....
Getting issues while setting up env? Please read https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety article.
composer update
php -S localhost:8000 -t .
This app is uses OrhanErday/OpenAI library.