A free Claude API key that never expires does not exist. Anthropic gives away exactly three things: a small starter credit for new Console accounts, API credits bundled into the Max, Ultra and Team plans, and a grant for researchers. Anything else labeled free turns out to be a different model wearing Claude's name, or somebody else's key.
Two kinds of readers end up here, with different problems. For some, payment at Anthropic fails or their country is not supported. Others want one key that reaches Claude, GPT and DeepSeek, so they do not have to open three accounts. The answer is the same for both. Test code on the free model in the catalog, then hand real work to Claude Haiku, where a request of 1,000 tokens in and 200 out costs about 0.02 cents.
This article is all about the API: keys, tokens, billing. If Claude Code on cheaper models is your interest, there are separate pieces: Claude Code free: what works in 2026 and Claude Code setup and pay-as-you-go.
What Anthropic gives away
The details below come from the API pricing page, the plans page and Anthropic's help center, as of 10 November 2026.
| Route | What you get | Conditions |
|---|---|---|
| Starter Console credits | A "small amount" of credits to test the API | The docs name neither the amount nor the expiry |
| Credits inside plans | Max $100 a month, Ultra $200, Team up to $500 for the whole team | Pro and Enterprise get none. The footnote attached to these numbers could not be read, so check the plans page for the conditions |
| AI for Science program | Up to $20,000 in API credits for 6 months | Researchers at universities and nonprofits. Applications are reviewed on the first Monday of each month, and the help article does not say whether intake is open now |
| Free plan on claude.ai | Chat, search, artifacts | The plan description does not mention the API, and the comparison table marks Claude Code as not included |
A Claude subscription and the API are separate bills. Anthropic's help center puts it plainly: a paid plan makes chat nicer, while the Claude API is invoiced on its own. Pro at $20 does not come with an API key. If you buy Console credits yourself, keep three rules from the same help center in mind. Credits last a year from purchase, they are non-refundable, and at zero balance the API stops answering. The article names no minimum purchase.
codexkey has no Claude subscriptions on sale. The Max and Ultra figures are reference data from the plans page, not a recommendation.
Are these routes open in your country
Every one of these routes needs an Anthropic account, and access to it depends on the country. The company publishes a list of supported countries (the supported-countries page) and states that everywhere else is unsupported. As of 10 November, Russia, Belarus, China, Iran and North Korea were not on the list. Check yours before signup. Payment is in US dollars by major credit cards, as the pricing page says.
If your country is not listed, or your bank declines the card at checkout, these routes are closed. Working around a provider's terms is not something we recommend. The practical alternative is a gateway that takes local payment methods. How to use the Claude API without an Anthropic account explains the idea, and how to reach the Claude API from Russia goes into one region in detail.
Why free Claude API repos and channels are a bad deal
You will find no addresses of such projects here and no instructions for running them. What you will find is an explanation of how these schemes usually work. No specific project was audited, so what follows are types of schemes and nobody is accused by name.
Scheme one: a shared pool of other people's keys. The operator takes keys that were found, bought or stolen and routes requests through them. GitHub scans public repositories for Anthropic keys and can tell whether a found key is still active, so a key lying in plain text does not last long.
Scheme two: another model under Claude's name. The request is addressed to Claude, and the proxy answers with a free model from a different vendor. Reading the reply, you will not spot the difference.
Scheme three: free, but paid for with your data. The operator pays for tokens and keeps your prompts. For a coding agent, prompts are pieces of your repository.
| What you lose | What it looks like |
|---|---|
| Code and prompts | The proxy sees the whole request. If the agent read a file with secrets, the secrets leave with the request |
| Your key | The key sits in the request header, so the operator sees it in clear text |
| Time | The key is revoked or the quota ends, and work stops halfway through a task |
| Your account | If you plug your own Anthropic key into such a proxy, the spend and any terms violations land on your bill |
| Your machine | Fake builds carry malware: in April 2026, fake repositories advertising a "leaked" Claude Code installed the Vidar infostealer |
The rule is simple. A stranger's proxy gets nothing you would not show a stranger, and never the key you pay for. A project that points Claude Code at third-party models is covered in the piece on free Claude Code.
The cheapest way in, step by step
Five actions in all: a key, a check that costs nothing, a request to the free model, a request to Claude and a top-up.
Step 1. Create a key
Sign up at codexkey.online and open the API keys section of the dashboard, where a key like sk_cdx_... is created. The "Check key" button sends a free request to the gateway and tells you whether the key was accepted.
Step 2. Check the key without spending anything
The gateway returns the model list for free, while a request to a model takes a small amount from your balance. The dashboard quickstart says exactly that.
curl https://api.codexkey.online/v1/models \
-H "Authorization: Bearer sk_cdx_YOUR_KEY"
The response lists model IDs, including the free model and the Claude ones. Use https://api.codexkey.online without /v1 for the Anthropic SDK and Claude Code, and with /v1 for the OpenAI SDK. The quickstart has examples of both.
Step 3. Send a request to the free model
The next request comes from the quickstart. It uses Anthropic Messages format and a zero-price model:
curl https://api.codexkey.online/v1/messages \
-H "Content-Type: application/json" \
-H "x-api-key: sk_cdx_YOUR_KEY" \
-H "anthropic-version: 2023-06-01" \
-d '{
"model": "deepseek-v4.1-flash-1017-free",
"max_tokens": 512,
"messages": [{"role": "user", "content": "Say hello."}]
}'
One clarification. The key check in the dashboard warns that a model request will not go through at zero balance, and it says nothing about the free model. The $1 that the homepage promises for joining the Telegram channel would settle it. This request was not run against the free model on 10 November.
Step 4. Repeat it on Claude
Change the model value to claude-haiku-5.5. The arithmetic for 1,000 input and 200 output tokens: 1,000 × $0.10 / 1,000,000 + 200 × $0.36 / 1,000,000 = $0.000172, roughly 0.02 cents. No Claude in the catalog is cheaper.
Code that uses the OpenAI SDK moves just as easily: point it at the /v1 address and leave the rest alone. One key covers every model ID in the catalog, so switching vendors comes down to replacing one string:
from openai import OpenAI
client = OpenAI(base_url="https://api.codexkey.online/v1", api_key="sk_cdx_YOUR_KEY")
reply = client.chat.completions.create(
model="claude-haiku-5.5",
messages=[{"role": "user", "content": "Say hello."}],
)
print(reply.choices[0].message.content)
This snippet was not run on 10 November either. It is built from the OpenAI-format address and key in the quickstart.
Step 5. Top up
You can put in from $1, and the ceiling is $10,000 per payment; the top-up dialog shows exact limits for the method you choose. The balance never expires. You can pay with cards from Russia and SBP, the Russian Faster Payments System (YooKassa), with crypto such as USDT, BTC and ETH (CryptoCloud and CryptoBot), or with an international card through Platega. More on the methods in how to pay for the Claude API with crypto, card or SBP.
The balance is prepaid, so a runaway script spends exactly what you put in. To keep it from getting there, read how to cut your Claude Code bill threefold.
What Claude costs on 10 November
The codexkey prices in the table come from the public catalog on the site (Premium channel) as of 10 November 2026, and the Anthropic prices from its API pricing page of the same day. Prices are per 1M tokens. The comparison volume is hypothetical and has no cache: 5M tokens in, 1M out. It does not measure your workload.
| Model | codexkey, in / out | Anthropic, in / out | Volume, codexkey | Volume, Anthropic |
|---|---|---|---|---|
| Claude Haiku 5.5 | $0.10 / $0.36 | $0.10 / $0.50 | $0.86 | $1.00 |
| Claude Sonnet 5.5 | $0.52 / $1.98 | $2 / $10 | $4.58 | $20 |
| Claude Opus 5.5 | $0.86 / $3.30 | $4 / $20 | $7.60 | $40 |
For Haiku 5.5, Anthropic's price applies to prompts up to 100,000 tokens. Beyond that, input costs $0.50 and output $2.50. The cache is better counted separately. For a cache read, Anthropic charges $0.01 on Haiku 5.5 and codexkey $0.04. On Sonnet 5.5 the pair is $0.10 and $0.06, on Opus 5.5 $0.20 and $0.10. If nearly all of an agent's input comes from cache, the proportions will differ from the table.
The catalog is alive. Older posts on this blog quote earlier prices, and current values sit on the models page. The Cheap channel has its own rates: on 10 November the public API lists Claude Opus 4.6, 4.7 and 5.5 text models there at $0.40 per 1M input tokens and $0.60 per 1M output. Not every account has access: if the channel is absent from your dashboard, it is closed to you.
The free model in the catalog
On 10 November the public catalog holds exactly one free text model.
| ID | Developer | Context | Max output | Price |
|---|---|---|---|---|
deepseek-v4.1-flash-1017-free | DeepSeek | 1M | 131,072 | $0 for input and output |
As recently as 29 October there were three. The IDs minimax-m3-free and qwen3.8-flash-free were gone from the catalog on 10 November. That is why a permanent workflow cannot rest on a free model: tomorrow it may vanish. Limits and conditions are listed on the model page, and we guarantee none of it. The catalog also leaves the tool-calling support field empty for these models, which agents cannot do without.
What the free model is good for: checking a key, a request format and a client, writing small scripts, trying out a Claude Code setup. It is not Claude. Anthropic states in its documentation that it does not support redirecting Claude Code to non-Claude models through gateways. Running Claude Code on such a model is covered in free Claude Code, and DeepSeek's own free offers are described in DeepSeek for free: chat, API limits and service status.
When to go to the Console directly
Your country is on Anthropic's list, your card goes through and you want the first-party source: go to the Console. It has starter credits, models without a middleman and a bill in dollars. Anthropic also offers a Batch API at half the price (Haiku 5.5 input $0.05, output $0.25), and it runs asynchronously. codexkey is for when that route is closed, when payment fails, or when one key should open Claude, GPT and DeepSeek at once.
FAQ
Is there a free Claude API?
There is no permanent free tier. Anthropic's pricing page promises new users a small amount of credits for testing the API, but names no figure. API credits sit inside the Max, Ultra and Team plans, and researchers can get up to $20,000 through the AI for Science program.
Can I get a Claude API key for free?
Creating a key costs nothing, but tokens are paid for. Tokens for Claude are free in two cases: the Console starter bonus in supported countries and the credits inside plans. Keys found in the open are best avoided. GitHub scans public repositories for Anthropic keys, so such a key is either already revoked or belongs to someone else.
Is there an unlimited Claude API?
Anthropic's official sources describe nothing like it: the API has rate-limit tiers, and the Start, Build and Scale tiers add a monthly spend cap. Custom-tier organizations have no cap, and their limits are agreed with Anthropic. If a service promises unlimited Claude for free, someone else pays for the tokens. We do not promise unlimited either, and the free model's conditions are on its own page.
Will a free API work for Claude Code?
The documentation says Claude Code works with any gateway that exposes a supported API format. Anthropic does not, however, support redirecting Claude Code to non-Claude models. The free model in the catalog is fine for testing a setup, and serious work calls for a paid one.
What is the cheapest Claude API?
By the codexkey catalog on 10 November, Claude Haiku 5.5 is cheapest: $0.10 per 1M input tokens and $0.36 per 1M output. Anthropic lists the same model at $0.10 and $0.50 as long as the prompt stays within 100,000 tokens. Haiku may fall short on hard tasks, so try it on your own.
Is it safe to use free Claude API proxies from GitHub?
No, we would not. Reading a proxy's entire code is not enough, because the code cannot tell you what the operator's server does with your requests. It sees your prompts and keys, a swapped model is invisible in the reply, and fake builds have already spread malware. If you need a free start, take the free model in the catalog with your own key.