As far as I know, the only browsers supporting it currently are Chrome [1] and Edge [2].
[0] https://github.com/webmachinelearning/prompt-api
[1] https://developer.chrome.com/docs/extensions/ai/prompt-api
[2] https://learn.microsoft.com/en-us/microsoft-edge/web-platfor...
Grammit uses the Prompt API for the local LLM, which currently uses a version of the Gemma 3n model on Chrome.
Grammit uses prompting instead of fine-tuning or custom training. Simplified, it has a system prompt along the lines of: "Rewrite this text, correcting any grammar or spelling mistakes," combined with a prefilled conversation containing a number of examples showing an input sentence and the corrected output.