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

  1. Summarize

    On-device summariser via the same model family as Translator/Prompt.

  2. Four formats benchmark

    Run all four summary types (key-points, tl;dr, teaser, headline) on one input — pick a preset for the UI.

  3. Availability + download progress

    Probe the four-state availability union for every type/length combination and wire monitor.downloadprogress to a live progress bar.

  4. Shared context presets

    Side-by-side: same input, with and without sharedContext + per-call context. 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.

references