The model is now added to WebAI.js. Run it in your browser with no code required.
#55
by
AxolsWebAI
- opened
Hi there,
We've packaged this model inside our open-source library WebAI.js, so you can now integrate it into your project easily with just a few lines of code, letting you run it directly in the browser βno backend hosting required:
import { WebAI } from '@axols/webai-js';
const webai = await WebAI.create({
modelId: "rmbg-briaai-1.4"
});
await webai.init({
mode: "webai",
precision: "q4",
device: "webgpu"
});
Reset
Edit
const generation = await webai.generate({
userInput: {
image_blob_url: "blob:https://www.webai-js.com/3f06e94a-f0c4-436d-9671-dad0183bc0a2"
},
modelConfig: {},
generateConfig: {
confidence_threshold: 0.5
}
});
π¬ Try Gemma Embedding Instantly (No Code Required)
You can benchmark and test the model directly here:
https://www.webai-js.com/models/rmbg-briaai-1.4/playground
π Full API Reference
Detailed parameter explanations can be found here:
https://www.webai-js.com/models/rmbg-briaai-1.4/api-reference/v1/class-api/methods/webai-generate
π§‘ Fully Open Source
WebAI.js is completely open source and free to use.
Star or contribute on GitHub:
https://github.com/axolsai/webai-js
Thanks

