Awesome
DALL-E Examples
The following HTML forms are available for DALL-E operations
- Generate Image
- Edit Image
- Create Image Variations
Using Docker
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
Getting started
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.
Add and update the depencencies
composer update
Run the server with the following command
php -S localhost:8000 -t .
This app is uses OrhanErday/OpenAI library.