Prompt & Writing Assistance APIs
On-device AI for web apps, built into Microsoft Edge
2025-05-20

Microsoft Edge introduces new Prompt & Writing Assistance APIs, giving web devs easy access to a built-in local SLM (Phi-4-mini) for AI features. Enhances privacy & reduces costs. Preview in Edge Canary/Dev.
Microsoft Edge's Prompt & Writing Assistance APIs enable web developers to integrate on-device AI capabilities directly into their applications using a built-in small language model, Phi-4-mini. These APIs enhance privacy by processing data locally, eliminating cloud dependency and reducing costs compared to cloud-based solutions.
The Prompt API simplifies text analysis, generation, and structured output tasks with minimal JavaScript code. Meanwhile, the Writing Assistance APIs—Summarizer, Writer, and Rewriter—specialize in modifying and generating text for specific use cases, such as summarizing articles or refining user reviews.
Available in Edge Canary/Dev previews, these APIs lower the barrier for AI adoption by handling model management, caching, and updates. Developers can experiment with real-time, energy-efficient AI while providing feedback to refine the tools further.
The Prompt API simplifies text analysis, generation, and structured output tasks with minimal JavaScript code. Meanwhile, the Writing Assistance APIs—Summarizer, Writer, and Rewriter—specialize in modifying and generating text for specific use cases, such as summarizing articles or refining user reviews.
Available in Edge Canary/Dev previews, these APIs lower the barrier for AI adoption by handling model management, caching, and updates. Developers can experiment with real-time, energy-efficient AI while providing feedback to refine the tools further.
API
Artificial Intelligence
Development