Stay organized with collections Save and categorize content based on your preferences.
Published: December 12, 2024
With built-in AI, your web application can perform AI-powered tasks without needing to deploy or manage its own AI models. The Chrome AI team is developing task-specific web platform APIs and browser features that integrate AI models in your browser. We aim for these APIs to work when implemented in the browser, on a user's device.
At this time, you can only use these APIs in Chrome, but we aim to standardize them across browsers.
The Prompt API, Summarizer API, Writer API, and Rewriter API download Gemini Nano, which is designed to run locally on desktop and laptop computers. These APIs don't work on mobile devices.
As of now, these APIs only support text-to-text modality.
The Language Detection and Translation APIs work on desktop and Android devices, in Chrome.
The Prompt API, Summarizer API, Writer API, and Rewriter API work in Chrome when the following conditions are met:
These requirements exist for you in your development process and your users who work with the features you build.
There are several built-in AI APIs available at different stages of development. Some are available to all developers in origin trials, while others are only available to Early Preview Program participants.
Each API has its own set of instructions to get started and download the model, both for local prototyping and in production environments with the origin trials.
While the Prompt API is only available locally and in Chrome Extensions, the other APIs work for websites and Chrome Extensions.
All of the APIs are available on localhost
in Chrome. Follow these steps to
chrome://flags/#prompt-api-for-gemini-nano
.To confirm Gemini Nano has downloaded and works as intended, open DevTools and
type await ai.languageModel.availability();
into the console. This
should return available
.
If Gemini Nano doesn't work as expect, follow these steps:
chrome://components
.ai.languageModel.availability();
into
the console. This should return available
.If necessary, wait for some time and repeat these steps.
We're working to standardize these APIs, so that they work across all browsers. This means we have proposed the APIs to the web platforms community, and moved them to the W3C Web Incubator Community Group for further discussion.
We are requesting feedback from the W3C, Mozilla, and WebKit for each API.
You can learn more about this process for each API in the corresponding documentation.
If you try built-in AI and have feedback, we'd love to hear it.
Skip the extension — just come straight here.
We’ve built a fast, permanent tool you can bookmark and use anytime.
Go To Paywall Unblock Tool