Keep one register of every endpoint that has a model behind it, and approve each one before it goes live. An endpoint with a language model behind it spends money on every call and takes instructions in plain language. Left open, it becomes a free model for strangers: people use your chatbot to write their essays, or script it. These endpoints also multiply without notice. A chat widget, an "ask AI" button, a workflow webhook, a search box that calls a model to rank results: each was a small feature when it was added, and six months later nobody can list them all.
How the register works.
- One file in git, one row per endpoint: name, host and path, owner, model provider, status (pending or approved) and spend limit.
- A new or moved endpoint is entered as pending before it goes live. One named reviewer approves it after measuring four things on the live endpoint: who can reach it, what it can do beyond answering (tools, fetches, file access), what one call costs, and what stops a loop.
- Get the spend limit as a number before launch, and decide what the page shows when the limit is reached.
- After launch, record every outside request to a registered endpoint in one place, and have whoever is on watch read the new rows, looking for use that has nothing to do with the product.
- Run a second net for requests that look like model prompts on paths that are missing from the register. That is how you find the endpoint someone forgot to enter.
Related: how much a database AI app costs to run and whether text in your logs can hijack the AI that reviews them. Full item: the Apps section of the security checklist.
Building something like this? How I work covers the rates, the availability and what I take on.