You build AI into an app by calling the model's API server-side and treating its output as untrusted input. For Claude, that means calling the Messages API from your backend (PHP, for a WordPress plugin) with the API key kept on the server — never in client-side JavaScript, where anyone could steal it.
