← All guides

6 min read

How to stop someone running up your OpenAI bill

If your OpenAI, Anthropic or Gemini usage jumped and you don't know why, someone is probably using your AI for free. Attackers scan new sites for AI endpoints that answer without a login. Here's what to do, in order.

1. Stop the bleeding now

2. Find how they got in

It's almost always one of three things:

3. Lock the endpoint

Prompt for your AI tool

Find every endpoint or function that calls an AI provider. At the top of each, reject requests without a valid signed-in session (401). Add a per-user rate limit per minute and per day (429 when exceeded), cap max_tokens and input length, and make sure the API key is only read on the server. Show me each endpoint and what you changed.

Let Vern test your AI endpoints the way an attacker would

The AI spend check finds the AI endpoints your app calls, sends each one tiny test message without logging in, checks for a rate limit and spots AI keys in the browser. It costs you a fraction of a cent.

Who gets it: Builder, Pro and Agency, on apps you've verified

See plans