I’ve been working on the Web Models API, a proposal that lets websites request specific open-weight models and run them on the user’s device. The browser manages the model download, storage and execution, while users control which sites can access each model.
The goal is to give developers a way to use the models they’ve built and tested against without managing the inference runtime in their application. Model resources can be shared across sites, and prompts don’t need to be sent to an AI provider.
The proposal uses a registry of supported models, with model IDs tied to specific releases. If a requested model isn’t supported, the request fails rather than silently substituting another. The API covers generation, streaming, embeddings and sessions.
I’ve built an early implementation in Common, a Chromium-based browser currently in private alpha. The explainer and API reference are open for review; the browser implementation isn’t public yet.
I’d be interested in feedback from people building models and applications:
Which models and tasks would you want supported?
What would a model ID need to guarantee across browsers, especially for quantization and embeddings?
What challenges do you see with a shared model registry?
The piece that decides whether a shared registry works is what a model ID actually guarantees: weights alone are not enough, because the same weights under a different quantization, tokenizer revision, or embedding normalization give different embeddings, and a site reading vectors another browser produced would have no way to tell they no longer match. Make the ID name the whole computation — weights revision, quantization scheme, tokenizer, and every runtime choice that can change an output — and ship a small set of fixed test inputs with each registry entry, with the expected outputs or the tolerance around them, so a browser earns an ID by passing them rather than by claiming it. That extends the honesty you already built in one level down: the request either reproduces the exact model the ID promises, or it fails, instead of quietly drifting to a near match.
Thanks, this is a great suggestion. The proposal already ties model IDs to a specific release, including the weight variant, tokenizer and input/output defaults, but it doesn’t yet define how to test compatibility across browsers.
Fixed test inputs and tolerances could make those guarantees testable, especially for embeddings. I’ll also take a closer look at whether quantization and normalization need to be spelled out more explicitly.