Chrome's Prompt API now runs on-device AI without API keys or per-token billing
Chrome's Prompt API, backed by the Gemini Nano model, is now stable for extensions from Chrome 138 and for web pages from Chrome 148. It lets a page ask the browser to summarize, classify, or rewrite text locally, with no server round-trip. Developers treat this as a browser capability much like storage or notifications, though the model must first download and may be unavailable on some hardware. The guide stresses feature detection and a backend fallback, since users lacking the model would otherwise hit a dead feature. It also notes that the API surface differs between web and extension contexts and corrects an earlier streaming example that wrongly treated each chunk as cumulative text.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in