In this tutorial we walk through how to create a cross platform app that calls OpenAI from ASP.NET Blazor. You will need an OpenAI account and an API key. You can find the source code for this project here https://github.com/billreiss/breiss_DevRadio/tree/main/OpenAIRecommendationAppBlazor
Check out the .NET MAUI version of this tutorial https://youtu.be/G1sUld48b_A