Skip to content
NLEN
Illustration: a laptop with a browser window in which a small glowing AI chip answers a question, without a connection to a server in the cloud.

Built-in AI in Chrome: a language model in your own browser

By Ivo Donker · — text: Claude (AI)

What Gemini Nano in Chrome can do, what you need and how a website uses it, with examples

Yes, Chrome ships its own language model: Gemini Nano. On a suitable computer, a website can use a few JavaScript functions to have it summarise, translate, detect a language or answer questions. That happens locally on your own device. The text is not sent to the website's server, and the website pays nothing per question.

You can try it right away. Below our article on running an LLM locally there is a button that lets you ask questions about that article; the answer comes from Gemini Nano in your own Chrome. The idea is the same as installing Ollama on your Mac, but without installing anything: Chrome downloads and manages the model itself.

Which functions are there?

Which functions are there?
FunctionWhat it doesStatus on websites
Prompt APIFree-form questions and instructions to the model, also with an image or audio as inputAvailable by default since Chrome 148
Summarizer APISummarising in fixed forms, such as key points or a short headlineAvailable by default since Chrome 138
Translator APITranslating text between languagesAvailable by default since Chrome 138
Language Detector APIDetecting which language a text is written inAvailable by default since Chrome 138
Writer, Rewriter and ProofreaderWriting, rewriting and correcting textStill in a developer trial

The statuses come from Google's overview of the built-in AI functions.

What do you need?

The first time a website uses the function, Chrome downloads the model. That can take a while. You can see the status by pasting chrome://on-device-internals into the address bar. After that it works instantly, even without internet.

Example 1: asking a question

const options = {
  expectedInputs:  [{ type: 'text', languages: ['en'] }],
  expectedOutputs: [{ type: 'text', languages: ['en'] }]
};
if (await LanguageModel.availability(options) !== 'unavailable') {
  // create() starts the download if needed: call it after a click by the visitor
  const session = await LanguageModel.create({
    ...options,
    monitor(m) {
      m.addEventListener('downloadprogress', e =>
        console.log(Math.round(e.loaded * 100) + '%'));
    }
  });
  console.log(await session.prompt('Explain in two sentences what a language model is.'));
}

With promptStreaming() the answer appears piece by piece, which is nice for long answers. Officially the Prompt API supports English, Japanese, Spanish, German and French; Dutch is not on that list. In our own test Gemini Nano still gave a usable Dutch answer when the question explicitly asked for one. Expect that to be less reliable than in the supported languages.

Example 2: summarising a page

if ('Summarizer' in self) {
  const summarizer = await Summarizer.create({
    type: 'key-points', format: 'markdown', length: 'short'
  });
  const text = document.querySelector('article').innerText;
  console.log(await summarizer.summarize(text));
}

The summariser has fixed forms: key-points, tldr, teaser and headline, each in a short, medium or long version. More in the Summarizer API documentation.

Example 3: detecting a language and translating

const detector = await LanguageDetector.create();
const [best] = await detector.detect('Goedemorgen, hoe gaat het?');
console.log(best.detectedLanguage, best.confidence);

const translator = await Translator.create({ sourceLanguage: 'en', targetLanguage: 'nl' });
console.log(await translator.translate('Good morning, how are you?'));

The translator also downloads a language pack on first use. Use Translator.availability() to check in advance whether a language pair is possible. See the documentation of the Translator API and the Language Detector API.

Privacy and limitations

Because the model runs on your own computer, the text does not leave your device. That makes it a good fit for privacy-friendly use of AI. There are downsides too. Gemini Nano is a small model and makes mistakes more easily than large cloud models. It only works in Chrome on a computer, and the first download takes time and disk space. If you want to choose the model yourself, run your own local language model. How such a model works on the inside is explained in what is a transformer.

Sources

Checked on 21 November 2026.