Microsoft Edge is testing an experimental new feature called the Prompt API that allows users to run AI models directly in their browser, without sending any data to the cloud. The API takes advantage of on-device machine learning models to process natural language prompts entirely locally, addressing key privacy concerns associated with cloud-based AI services.
Under the hood, the Prompt API leverages WebNN (Web Neural Network API) and browser-native model inference to execute small language models on your device. Developers and enthusiasts can enable the feature in Edge Canary, the experimental preview build of the browser, and start testing how local AI can enhance web applications.
For users, the main benefit is privacy: no prompt or response leaves your computer. For web developers, the API opens up possibilities for building AI-powered features that work offline and respect user data. Microsoft has also hinted that more models and capabilities will be added as the API matures.
The Prompt API is still experimental, but it signals a broader shift toward on-device AI in the browser, similar to what Google is doing with Chrome's built-in AI features. As models become smaller and more efficient, running AI locally in the browser could become the new standard for privacy-conscious web applications.