v131 · miscellaneous
Summarizer API
Summarizer API is a JavaScript API for producing summaries of input text, backed by an AI language model. Browsers and operating systems are increasingly expected to gain access to a language model. By exposing this built-in model, we avoid every website needing to download their own multi-gigabyte language model, or send input text to third-party APIs. The
concepts
-
Summarize
On-device summariser via the same model family as Translator/Prompt.
-
Four formats benchmark
Run all four summary types (key-points, tl;dr, teaser, headline) on one input — pick a preset for the UI.
-
Availability + download progress
Probe the four-state availability union for every type/length combination and wire
monitor.downloadprogressto a live progress bar. -
Shared context presets
Side-by-side: same input, with and without
sharedContext+ per-callcontext. Pick a product preset (1:1 notes, support ticket, app-store review, release notes).
why it shipped
Browsers and operating systems are increasingly expected to gain access to a language model. By exposing this built-in model, we avoid every website needing to download their own multi-gigabyte language model, or send input text to third-party APIs. The summarizer API in particular exposes a high-level API for interfacing with a language model in order to summarize inputs for a variety of use cases [1], in a way that does not depend on the specific language model in question.