Skip to content

Simple .NET console application to compare the vision functionality to get an image description.

License

Notifications You must be signed in to change notification settings

stoyanov-x/openai-imagedescription-comparison

 
 

Repository files navigation

Getting an image description using OpenAI Large Language Models

Header

This repository contains a simple console application written in .NET 8 to demonstrate how to get an image description by using Large Language Models from 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 see the console application in action:

First you need to select the host.

Console1

If you select OpenAI you need to select the used Large Language Model.

Console2

After providing a path to the picture file, you will get the image description and also the used tokens. Here is the sample using GPT-4 Turbo.

Console3

Here is the sample using GPT-4o.

Console3

Blog Post

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

About

Simple .NET console application to compare the vision functionality to get an image description.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%