How quickly get started with Open-AI DALL-E using PHP

Official documentation of Open AI gives 3 type of examples – NodeJS SDK, Python SDK and raw CURL.

I know there are several 3rd party PHP SDK-s in Github. But i also know most of excited testers would like to get started directly, without installing SDK and reading docs.

So, let’s implement raw CURL directly into PHP code and make DALL-E working in 1 minute.

You must get your API token here: https://beta.openai.com/account/api-keys

Once you have a key, just use this PHP snippet for DALL-E image generation:

Continue reading “How quickly get started with Open-AI DALL-E using PHP”