import{ BrowserAI }from'@browserai/browserai'const browserAI = new BrowserAI()
await browserAI.loadModel('llama-3.2-1b-instruct ')
const response =
await browserAI.generateText('Hello, how are you?')
How It Works
BrowserAI leverages WebAssembly and WebGPU to run increasingly efficient small language models directly in your browser. Integration just takes a few lines of code - no APIs required.
No servers, API keys, rate limits, or infrastructure to maintain
Looking for an easier way to build and deploy your own AI agents?
Check out Browseragent, our no-code platform to create AI workflows from scratch or from templates, based on the BrowserAI library - 100% local, 100% secure, 0 hassle.