Google Chrome browser has officially launched the Prompt API, allowing developers to directly call the built-in Gemini Nano model through simple JavaScript code on web pages, enabling local AI capabilities. This feature has sparked heated discussions on Hacker News and quickly gained widespread attention, seen as a significant step toward "democratizing" browser AI capabilities.

What is Prompt API?
Prompt API is part of Chrome's built-in AI framework, allowing web applications to send natural language instructions to the Gemini Nano lightweight language model embedded in the browser. Gemini Nano is a small model optimized for device-side use by Google, capable of running locally on the user's device without relying on cloud servers.
Compared to traditional methods, this change revolutionizes the process of integrating AI into web pages. Previously, developers needed to call external APIs like OpenAI or Claude, facing issues such as cross-domain restrictions, API key management, cost, and data privacy. Now, it can be achieved with just a few lines of code:
const session = await ai.languageModel.create();
The model runs in the browser via WebAssembly or WebGPU, keeping all data on the user's device, significantly enhancing privacy protection and supporting offline usage scenarios.
Core Advantages: Privacy, Security, and Out-of-the-Box Use
Local Execution, Priority to Privacy: The Gemini Nano model automatically downloads based on the device (size varies from several GB), and all inference processes are completed locally. User input data is not uploaded to the cloud, addressing many enterprises' and individuals' concerns about cloud AI data leaks.
Lower Development Barriers: No need for server costs, no need to manage API keys, and no need to handle network latency. AI capabilities have truly become a "native feature" of the browser, similar to the fundamental status of JavaScript in web pages. Developers can quickly implement functions such as text translation, summary generation, content rewriting, and semantic search, and even expand to more complex local AI applications.
Wide Application Scenarios: From browser extensions to regular web pages, this capability can be utilized. For example, real-time content summarization, offline chatbots, and client-side semantic filtering innovations have already begun to emerge.
Current Status and Limitations
Currently, the Prompt API is still in the experimental / early available stage, mainly accessible through enabling experimental flags (related options in chrome://flags) in Chrome Canary, Dev channel, or specific versions (e.g., Chrome 137+). The model's capabilities are relatively limited compared to cloud-based large models, and the device needs to have sufficient performance support (such as enough memory and GPU acceleration). Google has launched an Origin Trial, allowing developers to test and provide feedback in production environments.
The official Chrome documentation emphasizes that the browser will automatically handle model downloads, and users may need to wait a moment during their first use. In the future, this feature is expected to gradually roll out to stable versions and may expand to more platforms.
Industry Significance: AI Becomes a Fundamental Capability of Browsers
Industry insiders believe that the Prompt API marks a turning point for browser AI. When AI becomes a standard capability of the web like JavaScript, Web applications will experience a new wave of innovation. Microsoft Edge browser is also exploring similar interfaces, and the industry is accelerating toward "device-side AI."
This not only lowers the barrier to using AI but also promotes the development of privacy-friendly, offline-available web experiences. In the future, browsers may integrate more AI primitives, making intelligent enhancement accessible to both ordinary users and developers.
AIbase Commentary: This move by Chrome accelerates the shift of AI from the cloud to edge computing. Although the current capabilities are limited, its demonstration effect is significant—browsers are evolving from "presentation tools" into "smart platforms." Developers are encouraged to closely monitor and participate in early testing to seize the opportunity for the next generation of Web AI applications.
Link: https://developer.chrome.com/docs/ai/prompt-api


