ASP.NET Core 10 AI features: Building an Azure OpenAI Image Generator with gpt-image-1.5
ASP.NET Core 10 continues the modern web development story for .NET developers by combining minimal hosting, dependency injection, Razor Pages, configuration, HTTP clients, validation, and static web assets in a clean application model. In this project, these ASP.NET Core 10 features are used to build an AI image generator named aspnet10aiimg . The application accepts a prompt, verifies the quality and safety of that prompt, sends it to Azure OpenAI, and displays the generated image in the browser. The AI model used in this project is gpt-image-1.5 , an Azure OpenAI image generation model. It accepts text prompts and returns generated image data. In the app, the server calls the Azure OpenAI image generations REST endpoint using the deployment name configured for your Azure OpenAI resource. The API version used is 2025-04-01-preview , and the project expects image output as base64 PNG data, which is converted into a browser-ready data URI. Project implementation diagram...