AI endpoint works