How to get a Claude API key

Updated · 3 min read

A Claude API key lets an app call Anthropic's Claude models (Opus, Sonnet and Haiku) on your own account. You pay Anthropic per token at its API price, and the app adds no markup. It is not the same as a claude.ai chat subscription: the key lives in the Claude Console at platform.claude.com, Anthropic's developer platform.

What you need

  • A Claude Console account.
  • A payment method and some credit on the Console's Billing page. API usage is charged against that balance.
  • Two minutes.

Step by step

  1. Sign in to the Claude Console at platform.claude.com, or create an account.
  2. Add credits. Open Settings → Billing, add a card and buy a small amount of credit to start. The same page shows your monthly spend limit.
  3. Open the API keys page at platform.claude.com/settings/keys and click Create key.
  4. Name the key after the app you will use it in (for example "TypingMind laptop"), pick an expiration, and set Linked account to yourself. A personal key is right for your own use; service account keys are for shared workloads.
  5. Copy the key. It starts with sk-ant- and the Console shows it only once. If you lose it, create a new one.
  6. Paste it into the app, usually under Settings → Models or Providers → Anthropic (sometimes labelled "Claude").

What it costs

You pay per million tokens (roughly 750,000 words) read and written. Anthropic's prices on 2026-10-23:

Model Input, per 1M tokens Output, per 1M tokens
Claude Opus 5.5 $4 $20
Claude Sonnet 5.5 $2 $10
Claude Haiku 5.5 $0.10 $0.50 (prompts up to 100K tokens)

A typical chat turn, with some earlier conversation sent along, might be 2,000 tokens in and 500 out. With Sonnet that is about $0.009, so $5 of credit covers roughly 550 such turns; with Haiku it is under a twentieth of a cent. Long conversations cost more because apps resend the history with every message. The Batch API halves the price for jobs that don't need an instant answer.

If you already pay for Claude Max, check your plan: Anthropic includes monthly API credits ($100 on Max 5x, $200 on Max 20x; Team plans up to $500 a month). Pro and Free include none, and there is no free API tier: see is there a free Claude API key? for what does work.

Keep the key and the bill under control

  • One key per app. Name it after the app, so you can revoke a single key without breaking the others.
  • Set an expiration when you create the key, and delete keys you no longer use.
  • Use workspaces to separate apps or projects; the Console lets you control spend per workspace.
  • Watch your limits. Each usage tier has a monthly spend limit and per-minute rate limits; you'll find them on the Console's Rate limits and Billing pages.
  • Prefer apps that keep the key on your device. Desktop apps and many browser extensions send it straight to Anthropic. If an app stores your key on its servers, it should say how it is protected.

Apps that work with your Claude API key

  • Infinity

    Free · macOS

    Visit

    Free Mac AI chat app with git-style branching: fork any part of an answer into its own thread, ask up to four models at once, and use your own keys or local models.

    Works with:OpenAIAnthropicGoogle GeminixAI+7 more

  • Caotang

    Free · Web · Open source

    Visit

    Free, local-first browser writing studio for novels and scripts, with an AI agent that runs on your own Anthropic, OpenAI, Google, OpenRouter or local model key.

    Works with:AnthropicOpenAIGoogle GeminixAI+5 more

  • Laya

    Free · macOS, Windows, Linux · Open source

    Visit

    Open-source, local-first desktop command center that turns Slack, Gmail, GitHub, Jira and calendar notifications into AI-drafted action cards, using local models or your own API keys.

    Works with:AnthropicOpenAIGoogle GeminiOllama+1 more

  • Shizue

    Free · Chrome extension · Open source

    Visit

    Free, open-source Chrome side panel for AI chat, page summaries, bilingual video captions and in-tab tasks, running on your ChatGPT plan or your own OpenAI, Claude, Gemini or OpenRouter key.

    Works with:OpenAIAnthropicGoogle GeminiOpenRouter+1 more

  • PockoBots

    Free (beta) · Android · Open source

    Visit

    Open-source AI coding agent and personal bots that run on your Android phone, powered by your own OpenAI, Anthropic, Gemini, Groq or OpenRouter key with no app subscription.

    Works with:OpenAIAnthropicGoogle GeminiGroq+1 more

  • Exody

    Free · macOS, iOS

    Visit

    Free autonomous coding agent for Mac that routes each step to Claude, GPT, Gemini, Grok or a local model using your own API keys, with no seat fee or markup.

    Works with:AnthropicOpenAIGoogle GeminixAI

  • MergeJudge

    Free AI reviews on public repos; bring your own key for private repos · Web, Self-hosted · Open source

    Visit

    AI pull request reviewer offered as a hosted GitHub App or an open-source GitHub Action, running on your own Anthropic, OpenAI or OpenAI-compatible key, local Ollama, or rules only.

    Works with:AnthropicOpenAIOllama

  • Conduit

    Free · Windows, macOS, Linux · Open source

    Visit

    Open-source desktop AI app for agents, research, writing and slides that runs on your own keys from 23 providers or local models.

    Works with:AnthropicOpenAIGoogle GeminixAI+12 more

See all 89 apps that work with Anthropic

When to use OpenRouter instead

If you want Claude alongside GPT, Gemini and open models from a single balance, an OpenRouter key is simpler: one key, hundreds of models. A direct Anthropic key is the better choice when you mainly use Claude, want Anthropic's own limits and billing, or need features that appear in the Claude API first.

Questions

Is the Claude API free?

Anthropic does not advertise a free API tier. You pay per token from your Console balance. Claude Max subscribers get monthly API credits ($100 on Max 5x, $200 on Max 20x) that can be used on the Claude Platform.

Does a Claude Pro subscription include API access?

Anthropic's pricing page lists API credits only for the Max plans, not for Pro. With Pro you still need a Console account with its own credit balance to use an API key.

What does a Claude API key look like?

It starts with sk-ant-. The Console shows the full key only once, when you create it, so copy it straight into the app or a password manager.

Can I use my Claude key through OpenRouter?

Yes. OpenRouter lets you attach provider keys, including Anthropic's, so requests to Claude models are billed to your own key. See the OpenRouter guide for its fees.

Why do I get rate limit errors?

New organizations start on a low usage tier with limits on requests and tokens per minute and on monthly spend. Limits rise automatically as you use the API, and you can ask for an increase on the Rate limits page in the Console.

Sources

Checked against the providers' own documentation on 2026-10-29. Prices and limits change; the links below have the current figures.

Related guides