Docs
Anthropic (Claude) API key
Create an Anthropic Claude API key at platform.claude.com under Settings → API keys — the key starts with sk-ant- and is shown once. A Kunavo key reaches the same Claude models through the OpenAI SDK or the native Messages API, with no Anthropic account.
To get an Anthropic Claude API key, sign in to the Claude Console at platform.claude.com, open Settings → API keys, and click Create Key. An Anthropic API key starts with sk-ant-; copy it when you create it. Anthropic's console moved from console.anthropic.com to platform.claude.com, and the keys page now lives at platform.claude.com/settings/keys. An Anthropic API key authenticates requests to https://api.anthropic.com as Authorization: Bearer, or in the older x-api-key header that Anthropic still accepts, together with an anthropic-version header. Anthropic's pricing FAQ states that new users receive a small amount of free credits to test the API; there is no free tier beyond that grant, so Claude API usage is billed per token once the initial credits are spent.
Kunavo is an independent, OpenAI-compatible AI API gateway: one API key and one pay-as-you-go balance reach Claude, GPT and image, video and audio models, with no per-provider account required. A Kunavo API key starts with sk-kn-, is created at kunavo.com/app/keys, and requires no Anthropic account. Kunavo serves Claude through both the OpenAI-compatible endpoint https://api.kunavo.com/v1/chat/completions and the native Anthropic endpoint https://api.kunavo.com/v1/messages, so the official OpenAI SDK reaches Claude by changing only base_url. Kunavo is pay-as-you-go from a $10 minimum top-up and gives new accounts no free credit.
Option A — an API key direct from Anthropic
An Anthropic Console key is the right choice when Claude is the only model the project will ever call. Anthropic bills the key per token and supports every Claude feature on the day it ships.
- Go to
platform.claude.comand sign in. The older address console.anthropic.com now points at the same console. - Open Settings → API keys (direct link:
platform.claude.com/settings/keys) and click Create Key. Anthropic keys look likesk-ant-...; copy yours when you create it. - Add a payment method under Billing. Anthropic grants new users a small amount of free credits, then bills per token.
- Send the key as
Authorization: Bearer(Anthropic still accepts the olderx-api-keyheader), alongside ananthropic-versionheader.
# Anthropic direct — the key as a bearer token (x-api-key also works)
curl https://api.anthropic.com/v1/messages \
-H "Authorization: Bearer $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2026-10-21" \
-H "content-type: application/json" \
-d '{
"model": "claude-sonnet-5",
"max_tokens": 256,
"messages": [{"role": "user", "content": "Hello, Claude"}]
}'One consequence worth planning for: an Anthropic key reaches Claude only. A project that also calls GPT, image or video models needs a separate account, key, SDK and invoice per provider.
Already on Claude Max or Ultra? Your plan includes API credits
Max includes $100 and Ultra $200 a month in Claude API credits. After seven days on the plan, link a Claude Console organization in the plan's billing settings; API keys created in that organization then draw on the credits. Unused credits expire at the end of each billing cycle. They pay for API calls, the Agent SDK and claude -p run with such a key, but not for interactive Claude Code in the terminal, IDE, desktop app or web. Claude Pro and the free plan include no API credits.
Option B — one Kunavo key for Claude and everything else
Kunavo fronts Claude behind both an OpenAI-compatible API and the native Anthropic Messages API. One sk-kn- key reaches Claude and every other model in the catalog, on a single prepaid balance, without an Anthropic account.
| Anthropic Console key | Kunavo key | |
|---|---|---|
| Models | Claude only | Claude, GPT, image, video, audio |
| Endpoint | api. | api. |
| APIs | Messages API | OpenAI-compatible + Messages API |
| Auth header | Authorization: Bearer · x-api-key | Authorization: Bearer |
| Provider account | Anthropic account required | None required |
| Billing | Anthropic, per token | One prepaid balance |
| Key format | sk-ant-... | sk-kn-... |
- Create a Kunavo account and add a $10 top-up. Kunavo is pay-as-you-go and the balance never expires.
- Generate a key at
/app/keys. A Kunavo key is shown once; store the key in an environment variable. - Point the OpenAI SDK at
https://api.kunavo.com/v1and call a Claude slug.
Claude API key vs Anthropic API key
An “Anthropic API key” and a “Claude API key” are the same credential under two names. Anthropic is the company, Claude is the model family, and the key created in the Claude Console authenticates Claude API calls. What differs between the two keys below is where each key comes from and what each key can reach:
- Anthropic Console key (
sk-ant-...) — created atplatform.claude.com/settings/keys. An Anthropic Console key calls Claude only, and Anthropic bills the key per token. - Kunavo key (
sk-kn-...) — created atkunavo.com/app/keys. A Kunavo key calls the same Claude models through the OpenAI SDK or the native Messages API, plus GPT, image, video and audio models, on one prepaid balance and without an Anthropic account.
Call Claude with Python
Keep the official OpenAI SDK. Changing base_url and the model name is the whole migration.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["KUNAVO_API_KEY"],
base_url="https://api.kunavo.com/v1", # the only line that changes
)
resp = client.chat.completions.create(
model="claude-sonnet-5",
messages=[{"role": "user", "content": "Explain quicksort in one paragraph."}],
)
print(resp.choices[0].message.content)Call Claude with Node.js
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.KUNAVO_API_KEY,
baseURL: "https://api.kunavo.com/v1",
});
const resp = await client.chat.completions.create({
model: "claude-sonnet-5",
messages: [{ role: "user", content: "Explain quicksort in one paragraph." }],
});
console.log(resp.choices[0].message.content);Or call Claude with curl
curl https://api.kunavo.com/v1/chat/completions \
-H "Authorization: Bearer $KUNAVO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5",
"messages": [{"role": "user", "content": "Hello, Claude"}]
}'/v1/messages — see the Messages API reference.Claude API key not working
A Claude API key that returns 401 authentication_error is almost always one of five things: the wrong header for the endpoint, a key sent to an endpoint that key does not belong to, whitespace or quotes smuggled into the environment variable, a revoked key, or the wrong base URL for that key.
The single most common cause is a key sent to the wrong endpoint: an sk-ant- key works only against api.anthropic.com, and an sk-kn- key works only against api.kunavo.com. Headers come next. OpenAI-compatible endpoints, Kunavo included, expect Authorization: Bearer. Anthropic's native API takes the key the same way or in the older x-api-key header, and always needs anthropic-version.
| Symptom | Likely cause | Fix |
|---|---|---|
401 unauthorized | Key is wrong, revoked, or sent with the wrong header for that endpoint | Recreate the key at /app/keys and send Authorization: Bearer sk-kn-… |
402 insufficient_ | Balance is empty or a per-key spend cap was hit | Top up the balance or raise that key's cap |
model not found | Wrong slug | Use an exact slug like claude-sonnet-5; browse /models |
429 rate limit | Too many requests in a short window | Back off and retry with exponential delay |
Each error below has a dedicated deep-dive with the exact error JSON, every known cause and copy-paste fixes: 401 invalid api key, 429 rate_limit_error, credit balance too low / 402, 529 overloaded and model_not_found.
Using the Claude API without a credit card
Anthropic accepts major credit cards for standard Claude API accounts and reserves invoicing for enterprise customers, so on the direct route a card is the practical requirement.
- From anywhere: USDT on TRON (TRC-20), Ethereum (ERC-20) or BNB Chain (BEP-20), or USDC on Base, Ethereum (ERC-20) or BNB Chain (BEP-20), sent to the address and for the exact amount the top-up page gives you.
- In local currency: Alipay (mainland China), AlipayHK (Hong Kong), Pix (Brazil), GCash (Philippines), Touch 'n Go eWallet / Boost (Malaysia), PayNow (Singapore) and K PLUS / LINE Pay (Thailand); the top-up page shows the amount in that currency before you pay.
- Card payments are being enabled and cannot be used yet.
Which Claude model to use
- claude-haiku-4-5 — fast and low-cost, for high-volume classification and support. Kunavo prices Claude Haiku 4.5 at $0.70 per 1M input tokens and $3.50 per 1M output tokens; the cheapest Claude model on Kunavo is claude-haiku-5-5.
- claude-sonnet-5 — the balanced default for most reasoning, retrieval and coding, near-Opus on coding and agentic work. Kunavo prices Claude Sonnet 5 at $1.40 / $7.00 per 1M tokens, against Anthropic's list price of $2.00 / $10.00.
- claude-sonnet-4-6 — the previous Sonnet, for prompts already tuned on it. Kunavo prices Claude Sonnet 4.6 at $2.10 / $10.50 per 1M tokens.
- claude-opus-5 — heavy reasoning and long context. Kunavo prices Claude Opus 5 at $3.50 / $17.50 per 1M tokens, against Anthropic's list price of $5.00 / $25.00.
- claude-fable-5-2 — Anthropic's most capable model, for frontier reasoning and long-horizon agents, released November 9, 2026. Kunavo prices it at $5.60 / $28.00 per 1M tokens, against Anthropic's list price of $8.00 / $40.00. The earlier releases, claude-fable-5-1 and claude-fable-5, are still served, at a higher rate.
API key security checklist
- Never expose an API key client-side. Proxy every call through a server the developer controls.
- Use one API key per project or environment so a leaked key can be revoked without taking down everything else.
- Rotate API keys quarterly. Kunavo allows multiple live keys at once, which gives a rotation a clean overlap window.
FAQ
How do I get an Anthropic Claude API key?
To get an Anthropic Claude API key, sign in to the Claude Console at platform.claude.com, open Settings → API keys, and click Create Key. An Anthropic API key starts with sk-ant-; copy it and store it when you create it. Anthropic's console moved from console.anthropic.com to platform.claude.com, and the keys page is at platform.claude.com/settings/keys. An Anthropic API key authenticates requests to https://api.anthropic.com as an Authorization: Bearer header, or in the older x-api-key header that Anthropic still accepts, together with an anthropic-version header.
Is an Anthropic API key the same as a Claude API key?
An Anthropic API key and a Claude API key are the same credential under two names. Anthropic is the company, Claude is the model family, and the key created in the Claude Console (sk-ant-...) authenticates Claude API calls. A Kunavo API key (sk-kn-...) is a different credential from a different company that reaches the same Claude models, plus GPT and media models, through one OpenAI-compatible endpoint.
Is the Claude API free?
The Claude API is not free on an ongoing basis. Anthropic's pricing FAQ states that new users receive a small amount of free credits to test the API; Anthropic does not publish the size of that grant, and there is no free tier beyond it, so Claude API usage is billed per token once the initial credits are spent. Kunavo does not give new accounts free credit either: a Kunavo account starts at a $10 minimum top-up, the balance never expires, and failed 4xx and 5xx calls are never billed.
Does Claude Max or Ultra include an API key?
Claude Max and Claude Ultra include monthly Claude API credits — $100 a month on Max and $200 on Ultra — rather than an API key of their own. After seven days on the plan, the subscriber links a Claude Console organization in the plan's billing settings, and API keys created in that organization draw on the credits. Unused credits expire at the end of each billing cycle, and they do not pay for interactive Claude Code in the terminal, IDE, desktop app or web. Claude Pro and the free plan include no API credits.
Why is my Claude API key not working?
A Claude API key that returns 401 authentication_error is almost always one of five things: a missing or wrong header for the endpoint, a key sent to an endpoint it does not belong to, whitespace or quotes smuggled into the environment variable, a revoked key, or the wrong base URL. Anthropic's native API at api.anthropic.com takes the key as Authorization: Bearer or in the older x-api-key header, and always needs an anthropic-version header; OpenAI-compatible endpoints expect Authorization: Bearer. An sk-ant- key works only against api.anthropic.com, and an sk-kn- Kunavo key works only against api.kunavo.com.
Can I use the Claude API without a credit card?
Anthropic accepts major credit cards for standard Claude API accounts, and reserves invoicing for enterprise customers, so a card is the practical requirement on the direct route. Kunavo can be funded without a card on several rails: Alipay (mainland China), AlipayHK (Hong Kong), Pix (Brazil), GCash (Philippines), Touch 'n Go eWallet (Malaysia), Boost (Malaysia), PayNow (Singapore), K PLUS (Thailand), LINE Pay (Thailand), USDT (TRON, TRC-20), USDC (Base), USDT (Ethereum, ERC-20), USDC (Ethereum, ERC-20), USDT (BNB Chain, BEP-20), USDC (BNB Chain, BEP-20). Neither route offers ongoing free access — calling Claude means paying for tokens on both.
Can I call Claude with the OpenAI SDK?
Claude can be called with the official OpenAI SDK through Kunavo's OpenAI-compatible endpoint. Point the OpenAI SDK at base_url https://api.kunavo.com/v1, pass a Kunavo key as the bearer token, and set model to a Claude slug such as claude-sonnet-5. Anthropic's own API at api.anthropic.com does not accept OpenAI-shaped chat completion requests, so calling Claude directly requires the Anthropic SDK or the native Messages API.
What is the difference between an Anthropic API key and a Kunavo API key?
An Anthropic API key calls only Claude models and bills through Anthropic. A Kunavo API key calls Claude plus GPT, image, video and audio models through one OpenAI-compatible API, billed once through a single prepaid balance. An Anthropic API key requires an Anthropic account; a Kunavo API key does not.
Which Claude model should I start with?
Start with claude-sonnet-5, the balanced default for most reasoning, retrieval and coding work. Drop to claude-haiku-4-5 for cheap high-volume classification and support. Use claude-opus-5 for hard reasoning, and reach for claude-fable-5-2, Anthropic's most capable model, only for frontier reasoning and long-horizon agents.
How much does the Claude API cost?
Anthropic bills the Claude API per token, at rates that vary by model tier — from Claude Haiku 5.5, the cheapest on Anthropic's list, to Claude Fable 5, the most expensive. Kunavo serves the same Claude models below Anthropic's list price on every model: Claude Opus 5 is $3.50 / $17.50 per 1M tokens against Anthropic's $5.00 / $25.00, Claude Haiku 4.5 is $0.70 / $3.50 against Anthropic's $1.00 / $5.00, and Claude Sonnet 5 is $1.40 / $7.00 against the $2.00 / $10.00 introductory rate Anthropic made its permanent standard price on August 31, 2026.
Is Kunavo part of Anthropic?
Kunavo is an independent gateway that resells access to these models. Kunavo is not Anthropic, Google or OpenAI, and Kunavo does not train or host the models it serves.
What Kunavo is, and is not
Kunavo is an independent, OpenAI-compatible AI API gateway: one API key and one pay-as-you-go balance reach Claude, GPT and image, video and audio models, with no per-provider account required.
Kunavo is an independent gateway that resells access to these models. Kunavo is not Anthropic, Google or OpenAI, and Kunavo does not train or host the models it serves.
Anthropic's own documentation at platform.claude.com is the authoritative source for Anthropic's product, pricing and policy. This page reproduces Anthropic's published procedure with the date each claim was verified, and states Kunavo's alternative beside it.