/openai-imagegeneration

Simple .NET console application to demonstrate the image generation process using OpenAI and/or Azure OpenAI.

Primary LanguageC#MIT LicenseMIT

Create stunning images with DALL·E 3 with (Azure) OpenAI

Header

This repository contains a simple console application written in .NET 8 to demonstrate how to create stunning images with OpenAI and/or Azure OpenAI using the Azure.AI.OpenAI NuGet package.

Usage

You need to create an OpenAI account on this website. You have to pay to use the API so make sure that you add your payment information. After that, you can create an API Key here for further use. If you have access to an Azure OpenAI instance you can also use this instance for the demo application.

Just run the app and follow the steps displayed on the screen.

Screenshots

HEre you can se the console application in action.

First you need to select the host.

App

You need to enter the needed properties, like endpoints or API keys. Finally you can insert your prompt to describe the desired image.

App

You will be presented with a link to the generated image and also an extended version of the prompt.

App

The following image is the generated image for the prompt A small cat sitting in front of the Sydney Opera House.

App

Blog Posts / YouTube Video

If you are more interested into details, please see the following posts on medium.com or in my personal blog:

You can also watch the following video on my YouTube channel:

Buy Me A Coffee

I appreciate any form of support to keep my Open Source activities going.

Whatever you decide, be it reading and sharing my blog posts, using my NuGet packages or buying me a coffee/book, thank you ❤️.

Buy Me A Coffee