Basic usage
Basic usage
Send a text prompt to generate a video output
Copy
import Bytez from 'bytez.js';
// insert your key
const sdk = new Bytez('BYTEZ_KEY');
// choose your model
const model = sdk.model('facebook/bart-large-mnli');
// provide the model with input
const input = {
"text": "One day I will see the world",
"candidate_labels": [
"travel",
"cooking",
"dancing"
]
};
// send to the model
const { error, output } = await model.run(input);
// observe the output
console.log({ error, output });