Get Started with Chrome Built-in AI : Access Gemini Nano Model locally
January 28, 2025
An AI model within your browser. Yes that’s exactly what Chrome Built-AI is all about. The team has been at work to infuse AI APIs and models inside of Chrome via Chrome’s built-in AI APIs and models, including Gemini Nano.This would mean that you can invoke a Gemini model locally in the browser. Thinking of giving that Chrome extension of yours, some AI superpowers and yet running it locally? You should give Chrome Built-in AI a try.
In this article, we are going to look at:
- Chrome Built-in AI capabilities at the time of writing (likely to have breaking changes as its early days).
- Key Configuration steps to getting started with Chrome Built-in AI.
- Sample code that demonstrates Sentiment Analysis feature that you can build within your web application and it uses the Gemini Nano model integrated within Chrome AI via the Prompt API. All processing is done locally.
We’re so excited about AI and ML in the browser we’re planning a whole online conference Inference on it for later in 2025.
This is a good outline of one of the emerging approaches–it exposes Gemini Nano, one of Google’s models directly to web developers to access via JavaScript.
These are very much emerging technologies but one we’d encourage developers to explore.