Skip to content

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

3 min read

On this page

Before you start

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:

  1. Which account will it bill? Personal or work, and which organisation inside it.
  2. Which model? Prices differ a lot between models; the cheap model is often good enough.
  3. 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.
  4. Is there a cap? Set one before you leave anything running.
  5. 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.

Common questions

I pay for Claude Max. Do I get any API use?

Anthropic says Max and Team plans include monthly credits for the Claude API, but those credits cannot be used in Claude Code or the Claude apps. Check the Console to see what you have.

An app asked me to sign in with my Claude account. Is that allowed?

Anthropic's terms say subscription sign-in is for its own apps, like Claude Code. It does not allow other developers to offer Claude sign-in or to run their users' requests through Free, Pro or Max plans. Other apps should ask for an API key instead.

What happens when my API credit runs out?

With Anthropic's prepaid credits, calls stop until you add more, unless you turn on automatic top-ups. OpenAI also offers prepaid credit and automatic top-ups. A spending cap is the safer default either way.

Is the API cheaper than a subscription?

For light, occasional use, often. For heavy daily use, often not, because you pay for every token. Prices change by model, so check the live pricing page before you guess.

What to do next

Related reading

Last reviewed 22 October 2026 by Nick.

Software changes fast. If something here is out of date, tell me and I'll fix it.

Get new guides by email

Occasional and practical. No spam, no hype, unsubscribe whenever.

Occasional practical guides from UncomplicateAI. You will get a confirmation email before anything else is sent. Unsubscribe any time. Privacy

You are not subscribed until you confirm the email. Unsubscribe any time.