Skip to main content

Basic usage

Send a video input URL to classify its contents
import Bytez from 'bytez.js';

// insert your key
const sdk = new Bytez('BYTEZ_KEY');

// choose your model
const model = sdk.model('ahmedabdo/video-classifier');

// provide the model with input
const input = {
  "url": "https://video-previews.elements.envatousercontent.com/6d07b79d-b17a-47b5-9d24-4fe984c7ca36/watermarked_preview/watermarked_preview.mp4"
};

// send to the model
const { error, output } = await model.run(input);

// observe the output
console.log({ error, output });