{"id":751,"date":"2024-10-07T09:49:15","date_gmt":"2024-10-06T23:49:15","guid":{"rendered":"https:\/\/www.cloudproinc.com.au\/?p=751"},"modified":"2024-10-07T09:49:18","modified_gmt":"2024-10-06T23:49:18","slug":"generate-dall-e-images-with-net-c-console-application","status":"publish","type":"post","link":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/","title":{"rendered":"Generate DALL-E Images with .NET C# Console Application"},"content":{"rendered":"\n<p>This Azure OpenAI article will show you how to generate DALL-E images with .NET C# Console application using the Azure SDK for .NET.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div class=\"wp-block-yoast-seo-table-of-contents yoast-table-of-contents\"><h2>Table of contents<\/h2><ul><li><a href=\"#h-azure-sdk-for-net\" data-level=\"2\">Azure SDK for .NET<\/a><\/li><li><a href=\"#h-generate-dall-e-images-with-net-c-console-application\" data-level=\"2\">Generate DALL-E Images with .NET C# Console Application<\/a><\/li><li><a href=\"#h-install-package\" data-level=\"2\">Install-Package<\/a><\/li><li><a href=\"#h-program-cs\" data-level=\"2\">Program.cs<\/a><\/li><li><a href=\"#h-related-articles\" data-level=\"2\">Related Articles<\/a><\/li><\/ul><\/div>\n\n\n\n<p>Azure SDK for .NET allows us to build Gen-AI applications using .NET, the C# programming language. We, the SDK, can build Blazor and Console apps using C# and mobile apps. <\/p>\n\n\n\n<p>DALL-E version 3 allows us to generate high-definition images from a text input. Currently, we can access the service from the Azure OpenAI studio using the DALL-E playground and RAST API with Postman and C#.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-azure-sdk-for-net\">Azure SDK for .NET<\/h2>\n\n\n\n<p>The Azure SDK for .NET allows us to create and manage Azure resources using the .NET language. To create and manage Azure OpenAI service, we use <strong>Azure.AI, The OpenAI <\/strong>package library. The libraries are available in NuGet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-generate-dall-e-images-with-net-c-console-application\">Generate DALL-E Images with .NET C# Console Application<\/h2>\n\n\n\n<p>To generate DALL-E images, we first need to create an Azure OpenAI resource with an OpenAI deployment. Once your service is deployed, note the endpoint and API Key.<\/p>\n\n\n\n<p>For the application to run, we need to create two environment variables. One is for the Azure OpenAI resource endpoint, and the second is for the API Key.<\/p>\n\n\n\n<p>Below is an example of a PowerShell code that creates the two environment variables.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-069094a146145b5a9b5619ba768ffe72\"><code>$env:AZURE_OPENAI_ENDPOINT=\"Endpoint\"\n$env:AZURE_OPENAI_API_KEY=\"API Key\"<\/code><\/pre>\n\n\n\n<p>If you use VS Code, run the code from the VS Code terminal window.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-install-package\">Install-Package<\/h2>\n\n\n\n<p>After creating a C# console application, install the Azure OpenAI NuGet library.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-86960fb0e37488f1fcb1a2551306f62d\"><code>dotnet add package Azure.AI.OpenAI --version 1.0.0-beta.17<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-program-cs\">Program.cs<\/h2>\n\n\n\n<p>The following code will generate an Image from the Azure OpenAI DALL-E model. Make sure you set the <strong>DeploymentName <\/strong>to the name of your DALL-E deployment name.<\/p>\n\n\n\n<p>In the Prompt, describe the name of the image you would like to generate and run the application.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-6ff6a7d4630bac53a9179afa8bf8c6c1\"><code>using static System.Environment;\nusing System.IO;\nusing System.Threading.Tasks;\nusing Azure.AI.OpenAI;\n\nnamespace Azure.AI.OpenAI.Tests.Samples\n{\n    public partial class GenerateImages\n    {\n        \/\/ Get the environment variable\n        public static async Task Main(string&#91;] args)\n        {\n            string endpoint = GetEnvironmentVariable(\"AZURE_OPENAI_ENDPOINT\");\n            string key = GetEnvironmentVariable(\"AZURE_OPENAI_API_KEY\");\n\n            OpenAIClient client = new(new Uri(endpoint), new AzureKeyCredential(key));\n\n            \/\/ Get the image generations asynchronously\n            Response&lt;ImageGenerations&gt; imageGenerations = await client.GetImageGenerationsAsync(\n                new ImageGenerationOptions()\n                {\n                    DeploymentName = \"dall-e-3\",\n                    Prompt = \"Createa blog post cover for a blog post about DALL-E\",\n                    Size = ImageSize.Size1024x1024,\n\n                });\n\n           \n            Uri imageUri = imageGenerations.Value.Data&#91;0].Url;\n            \n           \n            Console.WriteLine(imageUri);\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p>After running the application, you will get a URL that contains the generated image. The link will be valid for 60 minutes and will be deleted after.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-related-articles\">Related Articles<\/h2>\n\n\n\n<ul class=\"wp-block-yoast-seo-related-links yoast-seo-related-links\">\n<li><a href=\"https:\/\/cloudproinc.com.au\/index.php\/2024\/07\/22\/generate-an-image-caption-with-azure-ai-vision-and-net\/\">Generate an Image Caption With Azure AI Vision and .NET<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/cloudproinc.com.au\/index.php\/2024\/07\/21\/integrating-azure-ai-vision-for-image-analysis-in-c-applications\/\">Integrating Azure AI Vision for Image Analysis in C# Applications<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/05\/06\/upgrading-windows-11-editions-made-easy-with-microsoft-intune\/\">Upgrading Windows 11 Editions Made Easy with Microsoft Intune<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/10\/07\/deploy-azure-openai-resource-using-bicep\/\">Deploy Azure OpenAI Resource Using Bicep<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/07\/25\/how-to-deploy-a-wiz-outpost-to-microsoft-azure\/\">How to Deploy a Wiz Outpost to Microsoft Azure<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This Azure OpenAI article will show you how to generate DALL-E images with .NET C# Console application using the Azure SDK for .NET.<\/p>\n","protected":false},"author":1,"featured_media":460,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"Generate DALL-E Images with .NET C# Console Application","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Unlock the potential of DALL-E image generation with .NET C# Console Application. Follow our step-by-step guide using the Azure SDK for .NET.","_yoast_wpseo_opengraph-title":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_twitter-title":"","_yoast_wpseo_twitter-description":"","_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[27,24,54,53],"tags":[],"class_list":["post-751","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-net","category-ai","category-dall-e","category-openai"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Generate DALL-E Images with .NET C# Console Application - CPI Consulting<\/title>\n<meta name=\"description\" content=\"Unlock the potential of DALL-E image generation with .NET C# Console Application. Follow our step-by-step guide using the Azure SDK for .NET.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Generate DALL-E Images with .NET C# Console Application\" \/>\n<meta property=\"og:description\" content=\"Unlock the potential of DALL-E image generation with .NET C# Console Application. Follow our step-by-step guide using the Azure SDK for .NET.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/\" \/>\n<meta property=\"og:site_name\" content=\"CPI Consulting\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-06T23:49:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-06T23:49:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudproinc.com.au\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"CPI Staff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CPI Staff\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/07\\\/generate-dall-e-images-with-net-c-console-application\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/07\\\/generate-dall-e-images-with-net-c-console-application\\\/\"},\"author\":{\"name\":\"CPI Staff\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#\\\/schema\\\/person\\\/192eeeb0ce91062126ce3822ae88fe6e\"},\"headline\":\"Generate DALL-E Images with .NET C# Console Application\",\"datePublished\":\"2024-10-06T23:49:15+00:00\",\"dateModified\":\"2024-10-06T23:49:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/07\\\/generate-dall-e-images-with-net-c-console-application\\\/\"},\"wordCount\":380,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/07\\\/generate-dall-e-images-with-net-c-console-application\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp\",\"articleSection\":[\".NET\",\"AI\",\"DALL-E\",\"OpenAI\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/07\\\/generate-dall-e-images-with-net-c-console-application\\\/#respond\"]}],\"accessibilityFeature\":[\"tableOfContents\"]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/07\\\/generate-dall-e-images-with-net-c-console-application\\\/\",\"url\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/07\\\/generate-dall-e-images-with-net-c-console-application\\\/\",\"name\":\"Generate DALL-E Images with .NET C# Console Application - CPI Consulting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/07\\\/generate-dall-e-images-with-net-c-console-application\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/07\\\/generate-dall-e-images-with-net-c-console-application\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp\",\"datePublished\":\"2024-10-06T23:49:15+00:00\",\"dateModified\":\"2024-10-06T23:49:18+00:00\",\"description\":\"Unlock the potential of DALL-E image generation with .NET C# Console Application. Follow our step-by-step guide using the Azure SDK for .NET.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/07\\\/generate-dall-e-images-with-net-c-console-application\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/07\\\/generate-dall-e-images-with-net-c-console-application\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/07\\\/generate-dall-e-images-with-net-c-console-application\\\/#primaryimage\",\"url\":\"\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp\",\"width\":1024,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/07\\\/generate-dall-e-images-with-net-c-console-application\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate DALL-E Images with .NET C# Console Application\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#website\",\"url\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/\",\"name\":\"Cloud Pro Inc - CPI Consulting Pty Ltd\",\"description\":\"Cloud, AI &amp; Cybersecurity Consulting | Melbourne\",\"publisher\":{\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#organization\",\"name\":\"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd\",\"url\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/favfinalfile.png\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/favfinalfile.png\",\"width\":500,\"height\":500,\"caption\":\"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#\\\/schema\\\/person\\\/192eeeb0ce91062126ce3822ae88fe6e\",\"name\":\"CPI Staff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"caption\":\"CPI Staff\"},\"sameAs\":[\"http:\\\/\\\/www.cloudproinc.com.au\"],\"url\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/author\\\/cpiadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Generate DALL-E Images with .NET C# Console Application - CPI Consulting","description":"Unlock the potential of DALL-E image generation with .NET C# Console Application. Follow our step-by-step guide using the Azure SDK for .NET.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/","og_locale":"en_US","og_type":"article","og_title":"Generate DALL-E Images with .NET C# Console Application","og_description":"Unlock the potential of DALL-E image generation with .NET C# Console Application. Follow our step-by-step guide using the Azure SDK for .NET.","og_url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/","og_site_name":"CPI Consulting","article_published_time":"2024-10-06T23:49:15+00:00","article_modified_time":"2024-10-06T23:49:18+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/cloudproinc.com.au\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp","type":"image\/webp"}],"author":"CPI Staff","twitter_card":"summary_large_image","twitter_misc":{"Written by":"CPI Staff","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/#article","isPartOf":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/"},"author":{"name":"CPI Staff","@id":"https:\/\/cloudproinc.azurewebsites.net\/#\/schema\/person\/192eeeb0ce91062126ce3822ae88fe6e"},"headline":"Generate DALL-E Images with .NET C# Console Application","datePublished":"2024-10-06T23:49:15+00:00","dateModified":"2024-10-06T23:49:18+00:00","mainEntityOfPage":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/"},"wordCount":380,"commentCount":5,"publisher":{"@id":"https:\/\/cloudproinc.azurewebsites.net\/#organization"},"image":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp","articleSection":[".NET","AI","DALL-E","OpenAI"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/#respond"]}],"accessibilityFeature":["tableOfContents"]},{"@type":"WebPage","@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/","url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/","name":"Generate DALL-E Images with .NET C# Console Application - CPI Consulting","isPartOf":{"@id":"https:\/\/cloudproinc.azurewebsites.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/#primaryimage"},"image":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp","datePublished":"2024-10-06T23:49:15+00:00","dateModified":"2024-10-06T23:49:18+00:00","description":"Unlock the potential of DALL-E image generation with .NET C# Console Application. Follow our step-by-step guide using the Azure SDK for .NET.","breadcrumb":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/#primaryimage","url":"\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp","contentUrl":"\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp","width":1024,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudproinc.azurewebsites.net\/"},{"@type":"ListItem","position":2,"name":"Generate DALL-E Images with .NET C# Console Application"}]},{"@type":"WebSite","@id":"https:\/\/cloudproinc.azurewebsites.net\/#website","url":"https:\/\/cloudproinc.azurewebsites.net\/","name":"Cloud Pro Inc - CPI Consulting Pty Ltd","description":"Cloud, AI &amp; Cybersecurity Consulting | Melbourne","publisher":{"@id":"https:\/\/cloudproinc.azurewebsites.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudproinc.azurewebsites.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cloudproinc.azurewebsites.net\/#organization","name":"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd","url":"https:\/\/cloudproinc.azurewebsites.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudproinc.azurewebsites.net\/#\/schema\/logo\/image\/","url":"\/wp-content\/uploads\/2022\/01\/favfinalfile.png","contentUrl":"\/wp-content\/uploads\/2022\/01\/favfinalfile.png","width":500,"height":500,"caption":"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd"},"image":{"@id":"https:\/\/cloudproinc.azurewebsites.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/cloudproinc.azurewebsites.net\/#\/schema\/person\/192eeeb0ce91062126ce3822ae88fe6e","name":"CPI Staff","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","caption":"CPI Staff"},"sameAs":["http:\/\/www.cloudproinc.com.au"],"url":"https:\/\/cloudproinc.com.au\/index.php\/author\/cpiadmin\/"}]}},"jetpack_featured_media_url":"\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp","jetpack-related-posts":[{"id":53079,"url":"https:\/\/cloudproinc.com.au\/index.php\/2025\/01\/28\/running-c-net-applications-in-azure-devops-pipelines\/","url_meta":{"origin":751,"position":0},"title":"Running C# .NET Applications in Azure DevOps Pipelines","author":"CPI Staff","date":"January 28, 2025","format":false,"excerpt":"In this blog post, I will show you how to build and run a C# application in Azure DevOps Pipelines. Estimated reading time: 3 minutes Table of contentsWhat Are Azure Pipelines?Step 1: Build the Console ApplicationStep 2: Create a YAML PipelineStep 3: Create a New PipelinePipeline Execution OverviewSummaryRelated Articles What\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/net\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2025\/01\/Running-C-.NET-Applications-in-Azure-DevOps-Pipelines.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2025\/01\/Running-C-.NET-Applications-in-Azure-DevOps-Pipelines.webp 1x, \/wp-content\/uploads\/2025\/01\/Running-C-.NET-Applications-in-Azure-DevOps-Pipelines.webp 1.5x, \/wp-content\/uploads\/2025\/01\/Running-C-.NET-Applications-in-Azure-DevOps-Pipelines.webp 2x"},"classes":[]},{"id":780,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/10\/creating-a-storage-container-in-azure-using-azure-sdk-for-net\/","url_meta":{"origin":751,"position":1},"title":"Creating a Storage Container in Azure Using Azure SDK for .NET","author":"CPI Staff","date":"October 10, 2024","format":false,"excerpt":"In this\u00a0\u00a0Microsoft Azure\u00a0article, we will create a storage container inside an Azure storage account using Azure SDK for .NET. Estimated reading time: 3 minutes Table of contentsCreating a Storage Container in Azure Using Azure SDK for .NETCreate Storage AccountRetrieve Storage Account Connection String Using PowerShellCreate C# Console ApplicationCreate an Environment\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/net\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp 1x, \/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp 1.5x, \/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp 2x"},"classes":[]},{"id":753,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-images-with-azure-openai-dall-e-and-postman\/","url_meta":{"origin":751,"position":2},"title":"Generate Images with Azure OpenAI DALL-E and Postman","author":"CPI Staff","date":"October 7, 2024","format":false,"excerpt":"In this Azure OpenAI DALL-E article, we will show you how to generate images with Azure OpenAI DALL-E and Postman. Table of contentsDeploy Resource and AI ModelGenerate Images with Azure OpenAI DALL-E and PostmanRelated Articles Azure OpenAI DALL-E offers the latest text-to-image generation model, DALL-E 3. The model offers advanced\u2026","rel":"","context":"In &quot;Azure OpenAI&quot;","block_context":{"text":"Azure OpenAI","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/azure-openai\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 1x, \/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 1.5x, \/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 2x, \/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 3x, \/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 4x"},"classes":[]},{"id":784,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/","url_meta":{"origin":751,"position":3},"title":"Create an App Registration for Microsoft Azure SDK for .NET","author":"CPI Staff","date":"October 11, 2024","format":false,"excerpt":"In this\u00a0\u00a0Azure\u00a0REST API post, I will show you how to create an App Registration for Microsoft Azure SDK for .NET. Azure SDK for .NET allows us to manage Azure programmatically using .NET libraries. Using the SDK, we can create and manage any Azure resource. The Azure SDK for .NET has\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/net\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp 1x, \/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp 1.5x, \/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp 2x"},"classes":[]},{"id":53341,"url":"https:\/\/cloudproinc.com.au\/index.php\/2025\/05\/01\/building-a-blazor-net-app-that-recognizes-images-with-openai\/","url_meta":{"origin":751,"position":4},"title":"Building a Blazor .NET App that Recognizes Images with OpenAI","author":"CPI Staff","date":"May 1, 2025","format":false,"excerpt":"In this blog post, we\u2019ll show you how to Build a Blazor .NET App that Recognizes Images with OpenAI. You\u2019ll see how we securely upload image files, send them to OpenAI\u2019s API, and return a natural-language response\u2014seamlessly integrated into a modern web interface. This example highlights how CPI Consulting applies\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/net\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2025\/05\/Building-a-Blazor-NET-App-that-Recognizes-Images-with-OpenAI-e1746073555343.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2025\/05\/Building-a-Blazor-NET-App-that-Recognizes-Images-with-OpenAI-e1746073555343.png 1x, \/wp-content\/uploads\/2025\/05\/Building-a-Blazor-NET-App-that-Recognizes-Images-with-OpenAI-e1746073555343.png 1.5x, \/wp-content\/uploads\/2025\/05\/Building-a-Blazor-NET-App-that-Recognizes-Images-with-OpenAI-e1746073555343.png 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/comments?post=751"}],"version-history":[{"count":1,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/751\/revisions"}],"predecessor-version":[{"id":752,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/751\/revisions\/752"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media\/460"}],"wp:attachment":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}