A new set of APIs gives web apps the ability to offer prompt boxes and writing tools that use local AI models through the Edge browser.