It's just that easy to get started with imgX API
let photo = $(".image-input").files[0];
let formData = new FormData();
let api = "YOUR_imgX_API_KEY_HERE";
formData.append("photo", photo);
formData.append("api", api);
fetch('https://imgx.app/upload', {
    method: "POST", 
    body: formData
})
.then(response => response.json())
.then(data=>console.log(data));