TemperStack
Beginner8 min readUpdated Mar 18, 2026

How to get Claude API key on Claude

Quick Answer

To get a Claude API key, create an Anthropic account at console.anthropic.com, verify your email, add payment details, and generate an API key from the API Keys section. The process takes about 5-10 minutes and requires account verification.

Prerequisites

  1. Active email account
  2. Valid payment method
  3. Anthropic account
  4. Basic understanding of APIs
1

Visit Anthropic Console

Navigate to console.anthropic.com in your web browser. Click on the Sign Up button if you don't have an account, or Sign In if you already have one. Enter your email address and create a secure password.
Tip
Use a business email if available, as it may help with verification processes
2

Verify Your Email Address

Check your email inbox for a verification message from Anthropic. Click the Verify Email link in the email. If you don't see the email, check your spam folder and wait a few minutes before requesting a new verification email.
Tip
Email verification is required before you can access API features
3

Complete Account Setup

After email verification, log into the Anthropic Console. Complete your profile by providing your full name, organization name (if applicable), and intended use case for the API. Accept the terms of service and privacy policy.
4

Add Payment Information

Navigate to the Billing section in the left sidebar. Click Add Payment Method and enter your credit card details. Anthropic requires payment information even for free tier usage. Set up billing alerts to monitor your usage.
Tip
Start with a low billing limit to avoid unexpected charges while testing
5

Access API Keys Section

In the Anthropic Console dashboard, click on API Keys in the left navigation menu. You'll see an overview of your current API keys and usage limits. Click the Create Key or + New Key button.
Tip
You can create multiple API keys for different projects or environments
6

Generate Your API Key

In the Create API Key dialog, enter a descriptive name for your key (e.g., "My Project API Key"). Select the appropriate permissions and rate limits if available. Click Create Key to generate your new API key.
Tip
Use descriptive names to easily identify keys later
7

Copy and Secure Your API Key

Your new API key will be displayed only once. Copy the key immediately using the Copy button. Store it securely in a password manager or environment variables. The key format will look like: sk-ant-api03-...
Tip
Never share your API key publicly or commit it to version control
8

Test Your API Key

Verify your API key works by making a test request. Use the provided code examples in the console or test with a simple curl command:
curl -X POST https://api.anthropic.com/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json"
Tip
Start with simple test requests to ensure everything is working correctly

Troubleshooting

Email verification not received
Check your spam folder, ensure you entered the correct email address, and try requesting a new verification email from the console. Contact support if the issue persists after 30 minutes.
Payment method declined
Verify your card details are correct and that international transactions are enabled. Try using a different payment method or contact your bank. Some prepaid cards may not be accepted.
API key not working in requests
Ensure you're using the correct header format: x-api-key: YOUR_API_KEY. Check that your account has sufficient credits and that you're making requests to the correct endpoint URL.
Cannot access API Keys section
Verify your email is confirmed and payment method is added. Some features require account verification which can take 24-48 hours. Try logging out and back in, or contact Anthropic support.

Related Guides

More Claude Tutorials

Other Tool Tutorials

Ready to get started with Claude?

Put this tutorial into practice. Visit Claude and follow the steps above.

Visit Claude