How to Get a Claude API Key: Step-by-Step Guide (2026)
To get a Claude API key (also called an Anthropic API key), sign in to the Claude Console at platform.claude.com, open Keys in the left menu, click Create key, choose Somewhere else, then name the key, pick an expiration and click Create key. Anthropic says the Console shows the full key, which starts with sk-ant-, "only once, at creation," so copy it right away.
The Claude API is separate from the claude.ai chat plans: you need a Console account and prepaid credits before requests work, and Pro includes no API credit. We walked through every screen up to key creation with a brand-new Console account on November 20, 2026; the rules are quoted from Anthropic.
How to Get a Claude API Key in 6 Steps
Anthropic keeps API keys in the Claude Console, not in claude.ai. Per its Get your Claude API key page, they "live in the Claude Console" at platform.claude.com/settings/keys:
Sign in at platform.claude.com, "or create an account if you don't have one yet."
Choose Individual or Organization on the first setup screen.
Buy usage credits, or click Skip for now and add them later.
Open the API keys page from Organization, Keys in the left menu.
Click Create key, pick Somewhere else, then set Name, Expires, Linked account and Scope.
Copy and store the key, then send a test request.
If the Create key button is greyed out, Anthropic says "your role might not allow you to create keys there," so ask an organization admin.
Step 1: Sign In to the Claude Console
Go to platform.claude.com and sign in with Google, email or SSO. The old address, console.anthropic.com, redirects there. Our sign-in page offered Continue with Google, Continue with email and Continue with SSO.
Step 2: Choose Individual or Organization
A new account then asks "How will you use the Claude API?"
Individual: "Build and experiment on your own. Manage your own API keys and billing."
Organization: "Invite teammates, share API access, and manage billing centrally."
We chose Individual, which created "<your name>'s Individual Org."
Step 3: Buy Usage Credits (or Skip for Now)
The Claude API is prepaid: no credits, no successful calls. Anthropic's billing article says "Buy credits before you use the API" and "If you run out of credits, you can no longer call the API or use the playground until you add more."
Next, our Console showed "Buy usage credits to get started":
Amounts: $5 (Starting out), $20 (Recommended), $100 (Building) or Other, with a "$5.00 minimum."
Payment: Card, Apple Pay or Google Pay, plus a billing address and an optional Auto-reload.
Expiry: "Credits are consumed with API, Claude Code, and playground usage, and expire 1 year after purchase."
We clicked Skip for now. To buy later, open the Billing page (platform.claude.com/settings/billing) with an Admin or Billing role. Anthropic notes "All credit purchases are non-refundable."
Step 4: Open the API Keys Page
The dashboard has a Get API key button, and the left menu has Organization, Keys. Our new dashboard showed "Organization credits $0.00" and "Spend this month $0.00 of $500 tier limit, resets Dec 1."
The API keys page showed "API keys 0" and a notice: "Evaluation access: This free plan is for evaluating Claude's capabilities before commercial use."
Step 5: Create the Key
Click Create key, then choose Somewhere else to get a classic API key. Our Console first asked "Where does your code run?":
Your own machine: "Sign in with the ant CLI. No key needed."
Cloud or Kubernetes: "Connect AWS, Google Cloud, Azure, or Kubernetes. No key needed."
CI pipeline: "Run in CI with no stored secrets. No key needed."
Somewhere else: "Use an API key, including with tools that require one."
Somewhere else opens the Create API key form:
Name and Expires (30 days by default for us). Anthropic's authentication guide lists "3 hours, 1 day, 7 days, or 30 days," a custom duration, or Never, and "Expiration is set at creation time and cannot be changed afterward."
Linked account: "Requests with this key act as you. The key is deactivated if you leave the organization."
Scope: "Default workspace," and the key "only works in the Default workspace and can't use the Admin API."
We closed the form without creating a key, so the next step comes from Anthropic's docs.
Step 6: Copy, Store and Test Your Claude API Key
Copy the key the moment it appears. Anthropic: "If you lose a key, you can't view it again in the Console. Create a new key instead." Store it as an environment variable, which the SDKs read automatically:
curl https://api.anthropic.com/v1/messages \
-H "content-type: application/json" \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2026-10-21" \
-d '{
"model": "claude-opus-5-5",
"max_tokens": 1000,
"messages": [
{
"role": "user",
"content": "What should I search for to find the latest developments in renewable energy?"
}
]
}'
A working key returns a JSON message. Header note: the API overview lists Authorization as "Bearer <token>, where <token> is your API key" and calls x-api-key a "Legacy fallback for Authorization, still supported." The key page agrees: "Direct HTTP requests send the key as Authorization: Bearer <key>." If your key is not scoped to a workspace, every request also needs the anthropic-workspace-id header.
Drafting prompts in claude.ai before you ship them to the API? AI Toolbox (formerly Claude Toolbox) adds full-text search, folders and saved prompts to your Claude chats: 25 search results per search, 2 top-level folders with unlimited subfolders and 10 saved prompts on the free plan, Unlimited on Premium. 40,000+ users on the Chrome Web Store.
The API is billed separately from every claude.ai plan, but Max, Ultra and Team include a monthly API credit; Pro does not. Anthropic says "Claude paid plans and the Claude Console are separate products designed for different purposes" and "A paid Claude subscription enhances your chat experience, and the Claude API is billed separately" (Claude Help Center).
To claim it, open Settings > Billing on claude.ai (Organization settings > Billing for Team owners) and, "In the API credits section, select 'Link organization.'" New subscribers wait seven days, no card is needed, "Unused credits expire at the end of each billing cycle," and interactive Claude Code is not covered. Plan prices are in our Claude pricing plans guide, and chat limits in the Claude usage limits guide.
Claude API Rate-Limit Tiers: Evaluation, Start, Build, Scale, Custom
Anthropic now uses five named tiers, and new organizations "may start in the Evaluation tier." Per the rate limits page, Evaluation limits sit "below the standard limits" and "increase automatically as your organization builds usage history."
Tier
Monthly spend cap
Evaluation
Limits below the standard tiers (no cap listed)
Start
$500
Build
$1,000
Scale
$200,000
Custom
"No monthly spend cap"
Your tier shows on the Rate limits page (platform.claude.com/usage/limits), where Request tier increase asks for more. At the cap, "API usage pauses until 00:00 UTC on the first day of the next month," and requests return HTTP 429 with no retry-after header. For request sizes, see Claude context window and token limits.
Disable, Delete and Protect a Claude API Key
On the API keys page, Disable is reversible (Re-enable restores it) and Delete is permanent. "Expired keys can only be deleted," and they return a 401 authentication_error.
Store keys in a secrets manager, Anthropic says, "rotate them periodically, and disable or delete any key you suspect has leaked."
Set an expiration "to limit how long a leaked credential stays usable."
Lost it? "The Admin API can't recover a lost key." Create a new key instead.
AI Toolbox does not create API keys, add API credits or change Anthropic's limits; it organizes the claude.ai chats where you may draft and test prompts first. It is a browser extension that also works on ChatGPT, Gemini and Grok.
Install AI Toolbox from the Chrome Web Store and open claude.ai.
Save a working prompt to the Claude prompt library and type // to insert it: 10 saved prompts free, Unlimited on Premium.
File test chats into Claude folders: 2 top-level folders with unlimited subfolders free.
Find old drafts with full-text Claude search: the first 25 results per search free, Advanced search filters on Premium.
Limitations
We did not buy credits or create a key in our test, so we could not confirm what an Evaluation-tier organization can call before paying. We found no sign-up credit in Anthropic's docs. Our dashboard showed a $500 tier limit while the keys page said Evaluation access, and Anthropic's docs do not explain that pairing. Purchased credits are non-refundable and expire after one year; monthly plan credits do not roll over.
Frequently Asked Questions
Is the Claude API key free?
Creating a key in the Claude Console costs nothing, but using it does. Anthropic bills the Claude API through prepaid usage credits, and if you run out of credits you can no longer call the API. In our test the smallest purchase offered was $5. Max, Ultra and Team plans include a monthly API credit.
Where do I find my Anthropic API key?
Anthropic API keys live in the Claude Console on the API keys page at platform.claude.com/settings/keys. The Console shows the full secret only once, at creation. If you lost it, you cannot view it again, so create a new key and delete or disable the old one.
Does Claude Pro include API access?
No. Anthropic bills the Claude API separately from the claude.ai plans, and its help center answers "No" when asked whether Pro subscribers get the monthly API credit. Max includes $100 a month, Ultra $200, and Team $20 or $100 per seat, pooled up to $500, claimed with Link organization.
What does a Claude API key look like?
Anthropic says the full key starts with sk-ant-, and its examples show the form sk-ant-api03 followed by the secret. The Console shows it only once, at creation. Store the key in an environment variable named ANTHROPIC_API_KEY, which Anthropic's client SDKs read automatically, or in a secrets manager.
Why does my Claude API key return a 401 or 429 error?
Anthropic says an expired key returns a 401 authentication_error, and expired keys cannot be reactivated, so create a new one. A 429 can be a normal rate limit or your tier's monthly spend cap; the spend-cap 429 has no retry-after header and lasts until the next month unless you get a higher limit.
Bottom Line
Sign in at platform.claude.com, pick Individual or Organization, add credits or skip, then Keys, Create key, Somewhere else. Copy the sk-ant- key once, store it as ANTHROPIC_API_KEY and run the quickstart curl. Pro does not include API credit; Max, Ultra and Team do, after you link an organization. Purchased Console credits also cover Claude Code; see how to install Claude Code.
A Full Stack Developer with 7+ years of experience building AI productivity tools. Leads product development and frontend architecture for AI Toolbox, the Chrome extension suite (ChatGPT, Gemini, Grok, and Claude modules) that helps users search, organize, and export their AI conversations.
Liked this guide? Get the next one first.
Join 40,000+ readers getting practical prompts, new features, and subscriber-only deals. No spam, unsubscribe in one click.
New features and product updates before anyone else
Time-saving prompts and workflows for ChatGPT, Gemini, Claude, and Grok