Claude Pro / Max vs an API Key: Can a Subscription Be Used as an API?
As of 2026-10-07, no: the Claude Help Center says a paid subscription “doesn't include access to the Claude API or Console,” and the Pro plan does not include API usage through the Claude Console. Subscriptions are a monthly fee (Pro $20 billed monthly, Max 5x $100 and Max 20x $200 per month); when Claude Code signs in with one, it shares the session limit that resets every five hours and the weekly limit with the Claude apps. An API key runs on prepaid Claude Console credits and is billed per token. This page lines up limits, billing, models and authentication precedence from the official terms, Help Center and Claude Code docs.
Updated 2026-10-08
Four key numbers and rules
Pro / Max 5x / Max 20x per month
Official prices: Pro is $20 billed monthly ($17 a month on the annual plan, $200 up front), Max 5x is $100 and Max 20x $200 a month, and Max is monthly only; listed prices exclude tax.
Two layers of subscription limits
The session limit resets every five hours, and a weekly limit across all models resets at a fixed time assigned to your account; Anthropic publishes no figure for the weekly limit, and your next reset time is under Settings > Usage.
API: Sonnet 5.5 input / output per million tokens
From the official price list: Opus 5.5 is $4 / $20 and Fable 5.1 is $10 / $50. API usage is paid from prepaid Claude Console credits and charged by the tokens you actually use.
Claude Code authentication precedence
The order in the official docs: ANTHROPIC_AUTH_TOKEN is second, ANTHROPIC_API_KEY third, and the subscription /login credential seventh. With a key set in your environment, Claude Code will not use your subscription.
A subscription and the API are two different things
As of 2026-10-07, a Claude Pro or Max subscription cannot be used as an API: the Help Center says paid plans and the Claude Console are “separate products designed for different purposes,” and that a subscription “doesn't include access to the Claude API or Console,” so you set up each one separately if you want both. The terms are separate too: the Consumer Terms state that the Commercial Terms govern any Anthropic API key and the Console, and the same Consumer Terms bar access through automated or non-human means such as a bot or script, except via an Anthropic API Key or where Anthropic explicitly permits it. API keys are created in the Claude Console, which is also where billing is set up.
The official line: Claude Code on a subscription vs an API key
The Help Center says Pro and Max usage limits are shared across Claude and Claude Code, so all activity in both counts against the same limits; Max 5x and Max 20x give five and 20 times the Pro per-session allowance. With an API key it is “Pay-as-you-go, billed per token”: there is no subscription-style limit that stops you (“No hard stop”), and the account is charged for what it uses; but once prepaid Console credits run out you can no longer call the API, and credits expire one year after purchase. Models differ as well: Max lets you spend up to 50% of the weekly limit on Fable models, Pro runs Fable 5 and Fable 5.1 on pay-as-you-go usage credits, and through the Claude API they are billed at standard API rates; the default model is Opus 5.5 in all three cases. Per Anthropic's June 15 update, the planned Agent SDK usage change is paused, and Agent SDK and claude -p usage still draws from subscription limits.
Timeline
Anthropic pauses the Agent SDK usage change due to start this day: Agent SDK and claude -p usage keeps drawing from subscription limits, and the announced monthly credit is not offered.
The in-plan Fable 5 promotion ends on this day; under the current official rules Pro runs Fable 5 and Fable 5.1 on usage credits, while Max can spend up to 50% of its weekly limit on Fable.
This page was checked against the official Help Center, price lists, terms and Claude Code docs on this date; the QCode docs page on subscriptions and API keys was last updated 2026-09-18.
Confirmed vs not verified
Confirmed (verbatim in the official pages)
All of the following can be checked word for word on official pages: subscriptions exclude the Claude API and Console; Pro is $20 billed monthly, Max 5x $100 and Max 20x $200 a month; the session limit resets every five hours and there is also a weekly limit; Pro and Max limits are shared across Claude and Claude Code; with ANTHROPIC_API_KEY set, Claude Code uses the API key and charges API rates; Claude Code's authentication precedence; Console credits are prepaid and expire after one year; usage credits are charged separately at standard API rates; the Fable rules per plan; and the automated-access clause in the Consumer Terms (version effective 2025-10-08).
Unverified and not published by the vendor
Three things have no verifiable official wording, so this page does not state them: first, any concrete figure for the weekly limit or the five-hour session allowance (tokens or messages) — Anthropic only says the number of messages varies with message length, conversation length, model and feature, and reserves the right to limit usage in other ways; second, conversions circulating online such as how much API usage one Max plan is worth, which no first-hand source contains; third, when or in what form the paused Agent SDK usage change might return — Anthropic only says it will share an update before anything takes effect.
Subscription or API key: how to choose
Choose a subscription (Pro / Max)
Suits individuals who use Claude Code interactively at the terminal and also use the web and mobile apps: a fixed monthly fee, with usage counted against the shared five-hour and weekly limits. The Claude Code costs page says subscribers have usage included in their subscription, so the session cost figure in /usage is not relevant for billing. When you hit a limit, the official options are upgrading your plan, turning on usage credits (charged separately at standard API rates), or waiting for the reset.
Choose an API key (per token)
Suits scripts, CI, your own applications and shared team use: prepay credits in the Claude Console and pay per token, with no subscription-style usage limit — you are charged for what you use (top up when credits run out), and /cost shows the current session's spend. The Help Center lists this for subscribers who hit limits too: for intensive coding sprints, switch to a Console account and buy API credits. Anthropic says enterprise deployments average around $13 per developer per active day and $150 to $250 per developer per month, a useful yardstick against a Max fee.
Checking and switching authentication in Claude Code
Step one: run /status in Claude Code to see whether the subscription login or an API key is active. Step two, to use your subscription: keep ANTHROPIC_API_KEY unset and sign in with your claude.ai account via /login; if you were signed in through a Console pay-as-you-go account, run /login as well to switch to the subscription. Step three, to use an API key: create one in the Claude Console and prepay credits; once ANTHROPIC_API_KEY is set, Claude Code skips the login prompt and asks you to approve the key. Step four, to go back to the subscription: unset ANTHROPIC_API_KEY and confirm with /status. Step five, for a gateway use ANTHROPIC_AUTH_TOKEN: it is sent as the Authorization: Bearer header and ranks above ANTHROPIC_API_KEY, and the docs describe it for LLM gateways or proxies that authenticate with bearer tokens. Step six: run env | grep -i anthropic now and then and remove variables you no longer use, because a leftover key takes over authentication.
On QCode
The QCode docs state that your Claude subscription cannot be used through QCode and is never consumed by it; equally, QCode usage does not touch your subscription quota — two parallel systems. A QCode key starts with cr_ and is copied from the dashboard; it is billed per token, with each model's price on /models, and plans have a daily cap on API spend. In Claude Code, set ANTHROPIC_BASE_URL=https://api.qcode.cc/api and put your cr_ key in ANTHROPIC_AUTH_TOKEN; Claude models run only on this Anthropic-protocol endpoint. The same key calls claude-sonnet-5-5, claude-opus-5-5 and claude-fable-5-1, and switching changes only the model field. A subscription login and QCode can coexist, and the docs recommend CC Switch for flipping between them.
Frequently asked questions
Can a Claude Pro or Max subscription be used as an API?
No. The Help Center says: “A paid Claude subscription enhances your chat experience but doesn't include access to the Claude API or Console.” The Pro plan page also states it does not include API usage through the Claude Console; if you want both, you set up Console access and pay for API usage separately. The Consumer Terms add that you may not access the services through automated means such as a bot or script, except via an Anthropic API Key or where Anthropic explicitly permits it.
Does a Max plan come with an API key?
No. Like Pro, Max does not include the API; API keys are created in the Claude Console, which is also where you add users, set up billing and try the playground. Console usage is paid from prepaid credits that cover API access, the playground and Claude Code; when they run out you can no longer make calls, and they expire one year after purchase. API access is subject to the Commercial Terms of Service, not the Consumer Terms.
What is the difference between Claude Code on a subscription and on an API key?
Billing and limits. On a subscription, usage is included in the monthly fee and shares the five-hour session limit and the weekly limit with the apps; at a limit you can turn on usage credits at standard API rates or wait for the reset. On an API key, you pay per token from prepaid Console credits with no subscription-style limit, top up when the credits run out, and /cost shows the session's spend. Both default to Opus 5.5; Fable models can use up to 50% of the weekly limit on Max, need usage credits on Pro, and are billed at standard API rates through the API.
What is the weekly limit on Pro and Max?
Anthropic does not publish a figure. The Help Center only says that both Pro and Max have a weekly usage limit across all models that resets at a fixed time each week assigned to your account, with the next reset shown under Settings > Usage; the session limit resets every five hours; and Max 5x and Max 20x give five and 20 times the Pro per-session allowance. Anthropic also reserves the right to limit usage in other ways, such as weekly and monthly caps or by model and feature.
I signed in with my subscription, so why am I being charged API rates?
Most likely ANTHROPIC_API_KEY is set in your environment. The Help Center says that when it is, Claude Code uses that key for authentication instead of your subscription, resulting in API usage charges rather than your subscription's included usage. The official advice is to keep the variable unset when you want the subscription and to check the active method with /status; to fall back to the subscription, unset ANTHROPIC_API_KEY.
Can I use my Claude subscription on QCode?
No. The QCode docs say a subscription cannot be used through QCode and is never consumed by it, and QCode usage does not touch your subscription quota. QCode uses its own key starting with cr_, billed per token, with each model's price on /models, and plans have a daily cap. Both can live in the same Claude Code installation — whichever credential is active decides — and the docs recommend CC Switch to switch between them.
Sources
Subscriptions versus the API, plan prices and limits: Claude Help Center articles on why a paid subscription still requires separate API payment, the Pro plan, the Max plan, using Claude Code with a Pro or Max plan, API key environment variables in Claude Code, paying for API usage, usage credits, models and limits in Claude Code, Fable models on each plan, the Agent SDK and subscriptions, and accessing the Claude API. Plan and API prices: claude.com/pricing and the pricing page in the Claude Platform docs. Authentication precedence, default models and costs: the Authentication (IAM), Model configuration and Costs pages of the official Claude Code docs. Terms: Anthropic's Consumer Terms of Service. QCode's approach: the QCode docs page on subscriptions, official API keys and QCode keys (updated 2026-09-18), plus the FAQ, endpoints and API paths, and troubleshooting pages. All crawled 2026-10-07.
Need a per-token API key? Start here
One cr_ key calls claude-sonnet-5-5, claude-opus-5-5 and claude-fable-5-1, billed per token and entirely separate from your Claude subscription quota.
Related reading
Claude Code user guide
A complete tutorial from installation to everyday mastery.
The ANTHROPIC_BASE_URL and AUTH_TOKEN setup guide
How to fill in both variables when pointing Claude Code at a custom endpoint.
Claude Sonnet 5 pricing and cost per token
Unit prices when you pay per token: $2 / $10 is the standard rate.
Quotes and figures on this page were checked on 2026-10-07; the official Anthropic pages (Help Center, price lists, terms and Claude Code docs) prevail, and upstream changes may happen without notice. Subscription limits and available models are set by Anthropic, so rely on Settings > Usage and /status in your own account; model availability is whatever /models shows. This page is not legal advice.