Claude Pro and Max, as an API
Use your Claude subscription as an API
A Claude Pro plan ($20 a month) includes no API access, and Max ($100 or $200) adds only $100 or $200 a month in Claude API credits. Plan2API connects your Pro or Max plan and gives you one OpenAI-compatible key for 9 Claude models, free for 50 requests a day.
- Claude models
- 9, Opus 5.5 to Haiku 4.5
- Plan2API Free
- 50 requests a day
- Base URL
- api.plan2api.com/
v1 - Claude Pro / Max
- $20 /
$100 / $200 a month
Updated
Ways to call Claude from your own code
A Claude plan on its own gives you no API key. The table below compares the four ways to call Claude from your own code.
Anthropic's help center states: "The Pro plan does not include API usage through the Claude Console." Max 5x and Max 20x include $100 and $200 a month in Claude API credits, claimable after 7 days on the plan by linking a Console organization under Settings > Billing, and unused credits expire at the end of every billing cycle. Plan2API is the option that runs on your plan's own usage limits, with no separate Console balance (see the API vs. subscription cost breakdown for the math).
| Option | What it costs | What you get |
|---|---|---|
| Claude API key (Console) | Per token, e.g. Opus 5.5 $4 in, $20 out per 1M | Anthropic API, pay as you go |
| Max monthly API credits | Included: $100 on Max 5x, $200 on Max 20x | Claude API credits that expire each cycle |
| Claude Code on Pro or Max | Included in the plan | Coding agent in terminal, IDE and desktop |
| Plan2API with your plan | Free for 50 requests a day, Pro $12 a month | OpenAI-compatible key on your plan's limits |
Connect Claude Pro or Max in 3 steps
- Sign up at plan2api.com/connect with a Google account.
- Connect your subscription by signing in with your Claude account on Anthropic's own sign-in page.
- Copy the
p2a_API key generated for you in the dashboard, where the Quickstart page has copy-paste setup forcurl, Python, and Node.
The curl example below streams a response from claude/claude-sonnet-5 through https://api.plan2api.com/v1/chat/completions, sending the p2a_ key in an Authorization: Bearer header because the x-api-key header is rejected.
curl https://api.plan2api.com/v1/chat/completions \
-H "Authorization: Bearer $PLAN2API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude/claude-sonnet-5",
"stream": true,
"messages": [{"role": "user", "content": "Explain rate limits in one sentence."}]
}'Claude models you can call
The table below lists all 9 Claude model IDs available on Plan2API with their context windows and output limits, alongside what the same calls cost per million input and output tokens on the pay-per-token Claude API.
- The
anthropic/prefix and dotted model names such asclaude-opus-5.5work too. GET /v1/modelsreturns the valid model ids.- Anthropic's newest Sonnet 5.5 and Haiku 5.5 models are not in the list.
| Model id | Context / max output | API price per 1M (in / out) |
|---|---|---|
claude/ | 1M / | $4 / |
claude/ | 1M / | $10 / |
claude/ | 1M / | $5 / |
claude/ | 1M / | $2 / |
claude/ | 1M / | $10 / |
claude/ | 1M / | $5 / |
claude/ | 1M / | $5 / |
claude/ | 200K / | $3 / |
claude/ | 200K / | $1 / |
What works and what doesn't
- Streaming and non-streaming responses both work on
POST /v1/chat/completions. - Tool and function calling work.
- Reasoning effort works through
reasoning_effortor OpenRouter-stylereasoning.effort. - Image input works, and image URLs in your messages are fetched for you (up to 32 images per request, up to 20 MB and 15 seconds each).
- Both
max_tokensandmax_completion_tokensare accepted, with request bodies up to 64 MB. - The API returns
Access-Control-Allow-Origin: *CORS headers so browser apps can call it directly. temperatureandtop_pparameters are ignored on Claude models.- There is no Anthropic
/v1/messagesendpoint, and no/v1/responses,/v1/completionsor/v1/embeddings.
JSON mode (a response_format of json_object or json_schema) returns HTTP 400 unsupported_parameter on Claude models. Codex, Gemini and Kimi models support it.
The Python example below calls claude/claude-opus-5-5 with high reasoning effort through the official OpenAI SDK.
from openai import OpenAI
client = OpenAI(
base_url="https://api.plan2api.com/v1",
api_key="p2a_...",
)
reply = client.chat.completions.create(
model="claude/claude-opus-5-5",
reasoning_effort="high",
messages=[{"role": "user", "content": "Review this function for bugs: ..."}],
)
print(reply.choices[0].message.content)Usage limits per Claude plan
Plan2API adds no token quota of its own, so your Claude plan's rolling 5-hour session and weekly limits apply alongside your Plan2API plan's request limits. The table below breaks down how usage works across Claude Pro and Max.
Anthropic publishes no fixed message counts for its plans, and all activity across web, desktop, mobile, and Claude Code draws from the same pool. You can check Settings > Usage on claude.ai to see how much of your 5-hour session and weekly limits you have used, or turn on usage credits on paid Claude plans to keep working past a limit at standard API rates.
If you connect two or more Claude accounts to Plan2API, a request that hits a limit on one account moves to the next connected account before any output is sent. When every connected Claude account is out of quota, the API returns HTTP 429 subscription_quota_exhausted with a Retry-After header in seconds for the earliest reset.
| Plan | Price | Usage per 5-hour session | Fable models |
|---|---|---|---|
| Pro | $20 a month, or $17 a month billed yearly | At least 5x Free | Only through usage credits |
| Max 5x | $100 a month | 5x Pro | 50% of weekly limits |
| Max 20x | $200 a month | 20x Pro | 50% of weekly limits |
Use your Claude plan in scripts and apps
One p2a_ key covers your Claude plan and can also route to ChatGPT (Codex), Google AI Pro and Ultra (Gemini through Antigravity), and Kimi (through Kimi Code) subscriptions, selected by model prefix (claude/, openai/, gemini/, or kimi/). You keep paying Anthropic for your Claude plan, and Plan2API never bills per token.
Connected logins are encrypted with HPKE (X25519) and AES-256-GCM so only your API key can unlock them, and the key's secret is never stored. Plan2API never stores your prompts, outputs, files, or images, runs its servers and database on OVHcloud in Germany, and has you sign in on Anthropic's own page so it never sees your Claude password (how Plan2API protects logins).
- Free is $0 with no card needed and includes 1 connected subscription, 2 API keys, and 50 chat requests a day.
- Pro is $12 a month or $99 a year and includes 3 connected subscriptions, 10 API keys, no daily request cap, and image generation.
- Scale is $29 a month or $249 a year and includes 25 connected subscriptions, 50 API keys, no daily request cap, and image generation.
Use the AI subscriptions you already pay for as one OpenAI-compatible API key.
- Free: 1 subscription, 50 requests a day, no card
- Pro: $12 a month
FAQ
Does Claude Pro include API access?
No, Anthropic's help center states: "The Pro plan does not include API usage through the Claude Console." Max 5x and Max 20x include $100 and $200 a month in Claude API credits that can be claimed after 7 days on the plan by linking a Claude Console organization under Settings > Billing, while Free and Pro plans get none.
Can I use my Claude Max subscription as an API key?
Not directly, because Max's monthly API credits go to a linked Claude Console organization and expire at the end of each billing cycle, while the plan's own usage stays inside the Claude apps and Claude Code. Plan2API gives you an OpenAI-compatible p2a_ key that runs on your Max plan's own 5-hour session and weekly limits.
Does Anthropic allow using a subscription this way?
Anthropic's Claude Code legal and compliance page states that signing in with a Claude account is meant for ordinary use of Claude Code and Anthropic's own apps, that third-party developers may not route requests through Free, Pro, or Max credentials on behalf of their users, and that Anthropic may enforce this without prior notice. Plan2API sends only your own requests through your own connected account, and any account risk stays with you.
Does Plan2API work with Claude Code?
No. Plan2API has no Anthropic /v1/messages endpoint and rejects the x-api-key header, and Claude Code already runs on your Pro or Max subscription limits when you sign in with your Claude account. Plan2API is built for scripts, SDKs, and tools that send requests in the OpenAI Chat Completions format to POST /v1/chat/completions.
What happens when I hit my Claude usage limit?
If you have another Claude account connected, your request moves to that account before any output is sent. When every connected Claude account is out of quota, the API returns HTTP 429 subscription_quota_exhausted with a Retry-After header set to the earliest reset in seconds.
How much does Plan2API cost?
The Free plan is $0 with no card required and includes 1 subscription, 2 API keys, and 50 chat requests a day. Pro costs $12 a month or $99 a year, Scale costs $29 a month or $249 a year, and you keep paying Anthropic separately for your own Claude plan.
Sources
- Claude plans and pricingclaude.com
- Claude Help Center: What is the Pro plan?support.claude.com
- Claude Help Center: What is the Max plan?support.claude.com
- API credits for Max and Team plansplatform.claude.com
- Claude API pricingplatform.claude.com
- Use Claude Code with your Pro or Max plansupport.claude.com
- Claude Code legal and compliancecode.claude.com
- Claude usage limit best practicessupport.claude.com