Does my AI subscription pay for API use too?
Usually not. ChatGPT and Claude plans are billed separately from their APIs. The exceptions are the companies' own apps, and one setting can quietly switch Claude Code to the API.
By Nick
On this page
Before you start
Learn
API, decoded
Think of a phone contract and a pay-as-you-go SIM from the same company. Same network, same shop, two separate bills. Paying for one does not top up the other.
That is how ChatGPT and Claude plans relate to their APIs, the program-to-program hatch that scripts, agents and other apps use. OpenAI says it directly: “ChatGPT and the API platform have separate billing systems.” Anthropic says the same of Claude: paid plans and the API Console “are separate products”, and “the Claude API is billed separately.”
The rule of thumb
- You signed in with your account, in the company’s own app: you are using your plan.
- You pasted an API key somewhere: you are paying per use, on a separate bill.
That second one includes most third-party apps, plugins, scripts and self-hosted agents. If an app asks for a key, it will bill whatever account that key belongs to.
Where it gets blurry
The companies’ own coding tools can work either way.
Codex. Sign in with your ChatGPT account and it uses your plan’s allowance; OpenAI now includes Codex across its plans, with usage limits that vary by plan. Sign in with an API key instead and you are billed at standard API rates.
Claude Code. Log in with your Claude account and it uses your Pro or Max limits. But if your
computer has a setting called ANTHROPIC_API_KEY (often left behind by another tool or a
tutorial), Claude Code will offer to use it, and once you approve, it bills the API instead. When
Claude Code runs in its non-interactive mode, used by scripts, it uses the key whenever one is
there. Type /status in Claude Code to see which one it is using.
Third-party apps that want your Claude login. Anthropic’s terms say subscription sign-in is for its own apps. Other developers are not allowed to offer Claude sign-in or to run your requests through a Free, Pro or Max plan. Expect them to ask for an API key.
Before you give anything an API key
Spend two minutes on these five questions first:
- Which account will it bill? Personal or work, and which organisation inside it.
- Which model? Prices differ a lot between models; the cheap model is often good enough.
- What happens when the money runs out? With Anthropic’s prepaid credits, calls simply stop unless you have turned on automatic top-ups. Prepaid credit expires after a year and is not refundable.
- Is there a cap? Set one before you leave anything running.
- Where will you see the usage? Find the usage page now, not after the bill.
Then run one tiny test and check that usage page to confirm the charge landed where you expected.
What it costs
This page quotes no prices on purpose. API prices depend on the model, how much text goes in and out, and extras like web search or file storage, and they change. Check OpenAI’s and Anthropic’s live pricing pages on the day you decide.
What getting it right looks like. You can name, for each AI tool you use, whether it runs on your plan or on a key, and which usage page shows its spending. If you hit your plan’s limits and want to know your options, the Claude limits guide covers paying past them without touching the API.