import axios from 'axios';
axios.post('https://api.artificialstudio.ai/api/generate', {
    model: 'video-upscaler',
    input: {
        video_url : "https://files.artificialstudio.ai/1da57d23-7503-43b7-87e3-2085a158d8d6.mp4",
        upscale_factor : "2",
        target_fps : "30"
    },
    webhook: 'https://your-webhook-url.com/api/webhook',
}, {
    headers: {
        'Content-Type': 'application/json',
        'Authorization': 'YOUR_API_KEY'
    }
}).then(res => {
    console.log('Success:', res.data);
}).catch(error => {
    console.error('Error:', error);
});app.post("/api/webhook", (req: any, res: any) => {
    console.log(req.body) // id, output, status, model, payload, error...
    res.send("Webhook received");
});