Generate masks for objects in images for tasks like image segmentation, medical imaging, and computer vision applications
Basic usage
import Bytez from 'bytez.js' const sdk = new Bytez("BYTEZ_KEY"); const model = sdk.model("facebook/sam-vit-base"); await model.create() const image = "https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/mask-generation/mask-generation-input.png" const { error, output } = await model.run({ url: image }); console.log({ error, output })
url
base64