How do I get a Claude (Anthropic) API key, and how much does the API cost?

You create a Claude API key in the Claude Console; there is no free tier and the minimum top-up is 5 USD. Price per token and when to use Dongee AI Router.

How do I get a Claude API key?

You create a Claude API key in the Claude Console from Anthropic: you open an account, buy credit (5 USD minimum, no free tier) and generate the key on the API keys page. It costs from 0.10 USD per million input tokens with Haiku 5.5. If you want to try several models with a single key and top up from 3 USD, Dongee AI Router is an OpenAI-compatible alternative.

Updated December 5, 2026 · Dongee Team

Claude API pricing

ModelInput (USD per million tokens)Output (USD per million tokens)What it's for
Haiku 5.5 (prompts up to 100,000 tokens)0.100.50High-volume classification, summarization and chatbots
Sonnet 5.5210General use, code and agents
Opus 5.5420Long tasks and difficult reasoning

Source: Anthropic's official pricing page, checked on December 5, 2026. The Batch API charges half if you don't need the response right away, and prompt caching makes repeated inputs cheaper.

Claude API vs Dongee AI Router

Claude API (Anthropic)Dongee AI Router
Free creditNo3 USD for new accounts
Minimum top-up5 USD3 USD
ModelsClaude onlyDozens of models with a single key; check the list on its page
API formatAnthropic APIOpenAI-compatible
It's right for you if…You've already chosen ClaudeYou want to compare models and pay prepaid with no monthly fee

Steps to create your key

  1. Go to the Claude Console and create your account.
  2. Buy credit on the billing page (Billing) with a card. Minimum 5 USD.
  3. Open API keys and click “Create key.” Give it a name and an expiration.
  4. Copy the key right away: the console shows it only once.
  5. Store it as an environment variable (ANTHROPIC_API_KEY), never in frontend code or in a public repository.

More guides: how to get an OpenAI API key for several models, free Gemini API key and publishing from Claude Code with Dongee Live. To try models with a single key: Dongee AI Router.

Frequently asked questions

Is the Claude API free?

No. Anthropic states that the API has no free tier or trial, and that new accounts don't come with free credit. The minimum credit purchase is 5 USD.

Does Claude Pro include API usage?

No. According to Anthropic, the Free, Pro and Enterprise plans don't include API credit. Max includes 100 USD per month and Ultra 200 USD per month of API credit.

How much does the Claude API cost?

Per million input and output tokens: Haiku 5.5 0.10 / 0.50 USD (prompts up to 100,000 tokens), Sonnet 5.5 2 / 10 USD and Opus 5.5 4 / 20 USD, according to Anthropic's page on December 5, 2026.

Is there a way to try several models with a single key?

Yes. Dongee AI Router is an OpenAI-compatible API for dozens of models with a single key, top-ups from 3 USD and 3 USD of free credit for new accounts. Check its page for which models are available.

Comenta lo que quieras

Unete a la charla
Solo ingresa tu email