Using the OpenAI API in a C# console application


To run it, you need to provide your own API key.

Sample code with request to generate new image:

Sample results of image generation:

Big dogs flying a plane to Mars


Dogs like top gun


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: