|
| 1 | +--- |
| 2 | +title: Quickstart - Add DALL-E image generation to your .NET MAUI app for Windows |
| 3 | +description: A quickstart to get started with .NET MAUI on Windows by integrating DALL-E image capabilities into your app. |
| 4 | +ms.service: windows |
| 5 | +ms.topic: quickstart |
| 6 | +ms.date: 02/21/2024 |
| 7 | +ms.localizationpriority: medium |
| 8 | +keywords: windows, desktop development, Windows App SDK, .net maui, openai, dall-e, ai |
| 9 | +content-type: how-to |
| 10 | +--- |
| 11 | + |
| 12 | +# Quickstart: Add DALL-E to your .NET MAUI Windows desktop app |
| 13 | + |
| 14 | +In this quickstart, we'll demonstrate how to integrate DALL-E's image generation capabilities into your .NET MAUI Windows desktop app. |
| 15 | + |
| 16 | +## Prerequisites |
| 17 | + |
| 18 | +- Visual Studio 2022 17.8 or greater, with the .NET Multi-platform App UI workload installed. For more information, see [Installation](/dotnet/maui/get-started/installation). |
| 19 | +- A functional .NET MAUI project with OpenAI integration into which this capability will be integrated. See *[Create a recommendation app with .NET MAUI and ChatGPT](tutorial-maui-ai.md)* - we'll demonstrate how to integrate DALL-E into the user interface from this how-to. |
| 20 | +- An OpenAI API key from your [OpenAI developer dashboard](https://platform.openai.com/api-keys) assigned to the `openAIKey` variable in your project. |
| 21 | +- An [Azure.AI.OpenAI](https://www.nuget.org/packages/Azure.AI.OpenAI/) NuGet package installed in your project. If you've followed along with the .NET MAUI ChatGPT tutorial, you will have this dependency installed and configured. |
| 22 | + |
| 23 | +<!-- Use this exact H2 --> |
| 24 | +## What problem will we solve? |
| 25 | + |
| 26 | +TODO: Write a brief description of the problem and how the product or service solves that problem. Include one or more diagrams when appropriate to show the solution architecture and/or the dataflow. |
| 27 | + |
| 28 | +<!-- |
| 29 | +
|
| 30 | +Present the demonstration in a series of H2s. |
| 31 | +
|
| 32 | +Each H2 should describe either what they'll do in the step or which part of the problem the step solves. |
| 33 | +
|
| 34 | +* Each H2 should be a major step in the demonstration |
| 35 | +* The H2 title should describe either what they'll do in the step or which part of the problem the step solves |
| 36 | +* Phrase each H2 title as "<verb> * <noun>". |
| 37 | +* Don't start with a gerund. |
| 38 | +* Don't number the H2s. |
| 39 | +* Begin each H2 with a brief explanation for context |
| 40 | +* Provide a numbered list of procedural steps as applicable |
| 41 | +* Provide a code block, diagram, or screenshot if appropriate |
| 42 | +* An image, code block, or other graphical element comes after numbered step it illustrates. |
| 43 | +
|
| 44 | +--> |
| 45 | +## "\<verb\> * \<noun\>" |
| 46 | +TODO: Add introduction sentence(s) |
| 47 | +[Include a sentence or two to explain only what is needed to complete the procedure.] |
| 48 | +TODO: Add ordered list of procedure steps |
| 49 | +1. Step 1 |
| 50 | +1. Step 2 |
| 51 | +1. Step 3 |
| 52 | + |
| 53 | +## Task 2 |
| 54 | +TODO: Add introduction sentence(s) |
| 55 | +[Include a sentence or two to explain only what is needed to complete the procedure.] |
| 56 | +TODO: Add ordered list of procedure steps |
| 57 | +1. Step 1 |
| 58 | +1. Step 2 |
| 59 | +1. Step 3 |
| 60 | + |
| 61 | +## Task 3 |
| 62 | +TODO: Add introduction sentence(s) |
| 63 | +[Include a sentence or two to explain only what is needed to complete the procedure.] |
| 64 | +TODO: Add ordered list of procedure steps |
| 65 | +1. Step 1 |
| 66 | +1. Step 2 |
| 67 | +1. Step 3 |
| 68 | + |
| 69 | +<!-- Use this exact H2 --> |
| 70 | +## How did we solve the problem? |
| 71 | +TODO: End the demonstration with a few paragraphs of analysis to make it clear that the product or service was a good choice to solve the customer problem. |
| 72 | + |
| 73 | +<!-- 8. Clean up resources ------------------------------------------------------------------------ |
| 74 | +
|
| 75 | +Required: To avoid any costs associated with following the Quickstart procedure, a Clean up resources (H2) should come just before Next step or Related content (H2) |
| 76 | +
|
| 77 | +If there is a follow-on Quickstart that uses the same resources, make that option clear so that a reader doesn't need to recreate those resources. |
| 78 | +
|
| 79 | +--> |
| 80 | + |
| 81 | +<!-- Use this exact H2 --> |
| 82 | +## Clean up resources |
| 83 | + |
| 84 | +If you're not going to continue to use this application, delete <resources> with the following steps: |
| 85 | + |
| 86 | +1. From the left-hand menu... |
| 87 | +2. ...click Delete, type...and then click Delete |
| 88 | + |
| 89 | +<!-- 9. Next step/Related content ------------------------------------------------------------------------ |
| 90 | +
|
| 91 | +Optional: You have two options for manually curated links in this pattern: Next step and Related content. You don't have to use either, but don't use both. |
| 92 | + - For Next step, provide one link to the next step in a sequence. Use the blue box format |
| 93 | + - For Related content provide 1-3 links. Include some context so the customer can determine why they would click the link. Add a context sentence for the following links. |
| 94 | +
|
| 95 | +--> |
| 96 | + |
| 97 | +## Next step |
| 98 | + |
| 99 | +TODO: Add your next step link(s) |
| 100 | + |
| 101 | +> [!div class="nextstepaction"] |
| 102 | +> [Write concepts](article-concept.md) |
| 103 | +
|
| 104 | +<!-- OR --> |
| 105 | + |
| 106 | +## Related content |
| 107 | + |
| 108 | +TODO: Add your next step link(s) |
| 109 | + |
| 110 | +- [Write concepts](article-concept.md) |
| 111 | + |
| 112 | +<!-- |
| 113 | +Remove all the comments in this template before you sign-off or merge to the main branch. |
| 114 | +--> |
0 commit comments