Drug sustainability (DS), a surrogate marker for drug efficacy, is important, especially when aiming for precision medicine. However, it lacks reliable prediction methods. To develop and externally validate a web-based artificial intelligence(AI)-derived tool for predicting DS of infliximab and vedolizumab in patients with moderate-to-severe Ulcerative Colitis (UC). Data from three Israeli centers included infliximab or vedolizumab patients treated for >54 weeks. Sustainability meant no corticosteroids, hospitalizations or surgeries. Machine learning techniques predicted >54-week and overall DS using baseline clinical data. The model was developed using data from 246 patients from Rabin Medical Center and externally validated on 67 patients from Rambam Health Care Campus and Sheba Medical Center. No significant difference in DS was observed across the datasets. Most patients were biologic-naïve and primarily treated with vedolizumab. The model performed well, with an area under the ROC curve of 0.86, and showed good accuracy (65.5 %-76.9 %) across the test sets. The study introduces a novel, AI-based tool for predicting >54-week DS of infliximab and vedolizumab in moderate-to-severe UC, using baseline parameters. This can aid clinical decision-making in the framework of precision medicine, promising to optimize disease management while maintaining physician autonomy.