Windows AI APIs today: choosing Phi Silica, Windows ML, and DirectML
Updated November 24, 2026. Windows AI APIs change quickly; this guide reflects Microsoft documentation checked on this date. The earlier conversation-context and streaming API examples, pinned NuGet versions, and claim that DirectML selects an NPU did not accurately describe the current APIs, so they have been removed.
Windows AI APIs and Phi Silica
Hardware, OS, and Windows App SDK requirements vary by API. Phi Silica is a local language model for Windows, but it is not available on every PC. Requirements differ for Copilot+ PCs and other supported GPUs. It is also a Limited Access Feature with regional restrictions. Check Microsoft’s supported API and hardware matrix and setup guide before choosing it.
If a model is not ready, explain download size and network use and obtain the user’s consent before starting setup. Handle unsupported devices and features disabled by the user separately, and provide a fallback. Microsoft has announced a planned transition from Phi Silica to Aion Instruct. Do not treat a model name or availability date as permanent.
Minimal C# example
| |
Custom ONNX models and hardware
For custom ONNX models, Microsoft recommends Windows ML as the Windows path. It helps select an Execution Provider for available hardware and manage its delivery. DirectML remains supported, but new feature development has moved to Windows ML. DirectML is a Direct3D 12 based GPU path; device_id = 0 does not mean an NPU will be selected. For NPU execution, follow Windows ML and the supported vendor Execution Provider guidance.
Reading performance figures
“40+ TOPS” is an NPU requirement associated with the Copilot+ PC category; TOPS alone cannot compare application speed. Precision, supported operations, and power conditions also matter. When a memory data rate is already in MT/s, do not multiply by two again for DDR edges. A total 128-bit bus at 8,533 MT/s has a theoretical rate of 8533 × 10^6 × 128 ÷ 8 ≈ 136.5 GB/s in decimal units. Real bandwidth is lower and depends on configuration and workload.
Local inference avoids network transfer for an operation only when the app actually runs it on-device. It does not guarantee that the whole app works offline or sends no data. Validate model output as well.
Official references
- Windows AI APIs: supported features and hardware
- Set up a Windows AI API app
- Get started with Phi Silica
- NPU development guide for Copilot+ PCs
- DirectML status and getting started
The code follows Microsoft’s documentation, but has not been built here with a Windows SDK. Recheck the target SDK, OS, and Limited Access Feature status in the official docs.
