The EDEM Application Programming Interface (API) is used to create custom contact models and properties to simulate tablet coating process. The video demonstrates how EDEM can be used as a predictive tool to perform virtual testing and investigate the effects of parameters like tablet shape or coating pan speed on the coating uniformity.