Using the OpenAI API in a C# console application

Repo: https://github.com/kaajoj/OpenAIApp

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

Sample code with request to generate new image: https://github.com/kaajoj/OpenAIApp/blob/cc1881a985365683c90484e9cb2dca7c1361b810/OpenAIApp/OpenAI.cs#L52

Sample results of image generation:

Big dogs flying a plane to Mars

BigDogsFlyingAPlaneToMars

Dogs like top gun

topGunDogs
topGunDog

Leave a Reply

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

WordPress.com Logo

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

Facebook photo

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

Connecting to %s

%d bloggers like this: