You put the AI inside a sandbox where it connects to an API that is one you'd be comfortable exposing directly to the user themselves.