Settings

Theme

A browser API for choosing and running local AI models

webmodels.dev

1 points by kenzic · 5 comments

Reader

2 threads
kenzicOP

I've been working on a browser API that lets websites run specific on-device open-weight models, with the browser handling inference and permissions. I think giving developers the ability to pick the right tool for the job is critical. This shouldn't require every site shipping their own inference runtime, libraries and models.

I'm working on a working implementation as a proof of concept (I'll share soon). Still a lot to figure out. Would love to know what people think.

cleora

Is a model whose output is audio, like speech synthesis, in scope? And since the ID includes the weight variant, who picks the variant for the device: the app, by asking for a second ID, or the browser?

  • kenzicOP

    Right now audio output isn't in the spec, but I've had a few requests for it. Do you think it's worth adding?

    The browsers would use a shared registry, and the app picks the specific model and weight variant by its unique ID. The user then decides whether to allow it to run (and potentially download it). So the browser wouldn't silently swap in another variant.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection