How to integrate an AI model into your code