Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A variety of artificial intelligence (AI) features are supported by a suite of hardware-abstracted AI APIs powered by Windows Machine Learning (ML). The Windows AI APIs enable AI capabilities without the need to find, run, or optimize your own machine learning (ML) model. The models that power the Windows AI APIs on Copilot+ PCs run locally and can run continuously in the background.
See the Windows AI APIs with WinUI sample app for how to use Microsoft Foundry on Windows with WinUI.
Important
The following is a list of Windows AI features and the Windows App SDK release in which they are currently supported. See Overview of available APIs later in this topic for brief descriptions.
Version 1.8.0 (1.8.250907003) - Phi Silica (Limited Access Feature), Conversation Summarization (Text Intelligence), Object Erase
Version 1.8 Preview (1.8.0-preview) - LoRA fine-tuning for Phi Silica, Text Rewriter Tone (Text Intelligence)
Private preview - Semantic Search
Version 1.7.1 (1.7.250401001) - All other APIs
Build your first AI-powered Windows app
Tip
To improve accessibility and readability, this page displays still images by default. In some cases, you can click an image to see an animated version.
To build your first Windows app with Visual Studio and some simple Windows AI APIs, just meet the prerequisites and use the provided example code in Get started building an app with Windows AI APIs.
From there, you can jump into short tutorials that build an app leveraging specific Windows AI APIs such as the Phi Silica walthrough, Imaging walthrough and OCR walthrough.
Try the APIs and models on your PC
AI Dev Gallery is a demo app—available from the Microsoft Store—that lets you quickly download, try out, and use Windows AI APIs and models.
In AI Dev Gallery, select the Windows AI APIs tab menu item, then select the Phi Silica sample. If the model is already available on your device, then that sample will run straight away. Otherwise, select Request model to download the model. Once downloaded, that sample will be activated. Learn more about the AI Dev Gallery in What is the AI Dev Gallery?.
Overview of available APIs
Here are a few ready-to-use AI features that you can tap into from your Windows app:
Phi Silica
Similar to OpenAI's GPT Large Language Model (LLM), which powers ChatGPT, Phi Silica is a Small Language Model (SLM) developed by Microsoft Research to perform language-processing tasks on a local device (see Get started with Phi Silica). Phi Silica is specifically designed for Windows devices that have a Neural Processing Unit (NPU), allowing text generation and conversation features to run in a high performance, hardware-accelerated way directly on the device. Phi Silica is not available in China.
Text recognition
The text recognition APIs enable the recognition of text in an image, and the conversion on a local device of different types of documents (such as scanned paper documents, PDF files, and images captured by a digital camera) into editable and searchable data (see Get started with AI text recognition).
Imaging
Scale and sharpen images (Image Super Resolution), identify objects within an image (Image Segmentation), generate natural-language descriptions of images (Image Description), and remove objects from images (Object Erase). See Get Started with AI imaging.
Image Super Resolution
The Image Super Resolution APIs enable image sharpening and scaling.
Also see What can I do with Image Super Resolution?.
Image Segmentation
The Image Segmentation APIs enable segmentation of images.
Also see What can I do with Image Segmentation?.
Image Description
The Image Description APIs describes images in natural language.
Note
Image Description features are not available in China.
Also see What can I do with Image Description?
Object Erase
The Object Erase APIs allows for removing objects from images.
Also see Get started with Object Erase
Additional AI features
- Live Caption Translations (Not yet supported). Help everyone using Windows—including those who are deaf or hard of hearing—better understand audio by viewing captions of spoken content (even when the audio content is in a language that's different from the system's preferred language).
Content moderation
Learn how content is moderated by the Windows AI APIs, and how you can adjust sensitivity filters. See Content safety moderation with the Windows AI APIs.
When utilizing AI features, we recommend that you review: Developing Responsible Generative AI Applications and Features on Windows.
Additional resources
- Code samples and tutorials. A collection of samples that demonstrate a variety of ways to use AI to enhance your Windows apps.
- Integrate AI in enterprise apps using Windows AI APIs. Watch the demo session from the November 2024 Microsoft Ignite conference.
- Provide feedback on these APIs and their functionality by creating a new Issue in the Windows App SDK GitHub repo or by responding to an existing issue.