Proposal: Native System-Level Unified AI API for Web Platforms

Dear Web Machine Learning Community Group,

I am submitting a proposal for a Unified AI API, a native, no-import-required interface for AI tasks (e.g., text generation, image analysis, smart notifications) to be integrated into web browsers as `window.AI`, similar to the Web Notifications API. This API aims to simplify cross-platform AI development, reduce fragmentation, and provide users with model selection via a browser settings interface.

Key Features:
- Global `window.AI` API with methods like `AI.summarize()`, `AI.generateNotificationContent()`.
- Integration with Web Notifications API for AI-driven alerts.
- User-controlled model selection (e.g., Gemini, Apple Intelligence) via browser settings (e.g., `chrome://ai-settings`).
- Support for WebGPU-based on-device AI and cloud fallback.

Relevance to W3C:
The proposal aligns with W3C’s mission to standardize web APIs (e.g.., WebGPU, WebRTC) and extends the Web Machine Learning Community Group’s efforts to advance AI in browsers. It offers a consistent, privacy-focused interface for developers, leveraging existing standards like Web Notifications.

Details and Contribution:
The full proposal, API specification, and example code are available at:
https://github.com/beamitpal/unified-ai-api

We invite feedback via GitHub Issues or this mailing list. Would the group consider discussing this at an upcoming meeting or TPAC session? Please let us know how to proceed with integrating this proposal into your standardization process.

Best regards,  
Amit
me@beamitpal.com
Unified AI API Proposer

Received on Monday, 4 August 2025 06:56:14 UTC