Use this file to discover all available pages before exploring further.
Basic usage
Send an image to a model to detect objects and get bounding boxes
import Bytez from 'bytez.js';// insert your keyconst sdk = new Bytez('BYTEZ_KEY');// choose your modelconst model = sdk.model('facebook/detr-resnet-50');// provide the model with inputconst input = { "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Cat_November_2010-1a.jpg/1200px-Cat_November_2010-1a.jpg"};// send to the modelconst { error, output } = await model.run(input);// observe the outputconsole.log({ error, output });