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.
RequirementsAt this time, you can only use these APIs in Chrome, but we aim to standardize them across browsers.
ModelsThe 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.
HardwareThe 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.
Start buildingThere 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.
Use APIs on localhostAll 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 LanguageModel.availability();
into the console. This should return available
.
If Gemini Nano doesn't work as expect, follow these steps:
chrome://components
.LanguageModel.availability();
into the console. This should return available
.If necessary, wait for some time and repeat these steps.
Standards processWe'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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-12 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-12 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3