<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/on-device-ai-with-the-google-chrome-prompt-api-0jdr9blvw" -->

---
title: On-Device AI with the Google Chrome Prompt API | daily.dev
description: A step-by-step guide to using the Chrome On-Device Prompt API (Gemini Nano) to run AI locally in the browser. Covers enabling the required Chrome flags,...
canonical: https://daily.dev/posts/on-device-ai-with-the-google-chrome-prompt-api-0jdr9blvw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: On-Device AI with the Google Chrome Prompt API | daily.dev
og:description: A step-by-step guide to using the Chrome On-Device Prompt API (Gemini Nano) to run AI locally in the browser. Covers enabling the required Chrome flags,...
og:url: https://daily.dev/posts/on-device-ai-with-the-google-chrome-prompt-api-0jdr9blvw
og:image: https://api.daily.dev/og/posts/0JDr9Blvw.png
og:image:alt: On-Device AI with the Google Chrome Prompt API
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# On-Device AI with the Google Chrome Prompt API

**[Playful Programming](https://daily.dev/sources/playfulprogramming)** · [@mainawycliffe](https://daily.dev/mainawycliffe) · 4 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide to using the Chrome On-Device Prompt API (Gemini Nano) to run AI locally in the browser. Covers enabling the required Chrome flags, checking model availability, triggering the ~1.5 GB model download with progress tracking, prompting the model with optional system prompts, and cleaning up sessions. Angular signals are used to manage download state in a service. The API is Chrome-specific and experimental, with a small model and limited token count.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://playfulprogramming.com/posts/on-device-ai-with-the-google-chrome-prompt-api-2jbe>

## Similar posts on daily.dev

- [Getting Started with Chrome's window.ai Prompt API](https://daily.dev/posts/getting-started-with-chrome-s-window-ai-prompt-api-v9xmcyyfi) · SitePoint · 0 upvotes · 0 comments
- [Chrome for Developers](https://daily.dev/posts/chrome-for-developers-3y0cobjqp) · Hacker News · 0 upvotes · 0 comments
- [Google’s Prompt API](https://daily.dev/posts/google-s-prompt-api-axbyaybca) · CSS-Tricks · 4 upvotes · 1 comments
- [Chrome Built-in AI Model: Call It Directly from a Web Page](https://daily.dev/posts/chrome-built-in-ai-model-call-it-directly-from-a-web-page-ixrlndn0t) · Medium · 1 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#typescript](https://daily.dev/tags/typescript), [#angular](https://daily.dev/tags/angular)

[View this post on daily.dev](https://daily.dev/posts/on-device-ai-with-the-google-chrome-prompt-api-0jdr9blvw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"On-Device AI with the Google Chrome Prompt API","url":"https://daily.dev/posts/on-device-ai-with-the-google-chrome-prompt-api-0jdr9blvw","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/on-device-ai-with-the-google-chrome-prompt-api-0jdr9blvw"},"datePublished":"2026-03-16T21:47:14.853Z","dateModified":"2026-03-17T18:00:51.446Z","description":"A step-by-step guide to using the Chrome On-Device Prompt API (Gemini Nano) to run AI locally in the browser. Covers enabling the required Chrome flags,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/16219d943cb4840ca71aca94273b0512?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/16219d943cb4840ca71aca94273b0512?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Playful Programming","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Maina Wycliffe","url":"https://daily.dev/mainawycliffe","image":"https://lh3.googleusercontent.com/a-/AOh14GixkCfcFRGynHA6Q1do3acrQ2SJInlspCdn2KXZWw=s100","description":"Web Developer and Google Developer Expert","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":50}},"commentCount":0,"discussionUrl":"https://daily.dev/posts/on-device-ai-with-the-google-chrome-prompt-api-0jdr9blvw","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,typescript,angular","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Playful Programming","item":"https://daily.dev/sources/playfulprogramming"},{"@type":"ListItem","position":3,"name":"On-Device AI with the Google Chrome Prompt API"}]}
```

