Pay with crypto — USDT, TON, BTC. Claude, GPT and DeepSeek API keys
Docs · API quickstart

TKBK API quickstart: keys, base URLs and the first request

Everything for the first request: which key opens which models, how to list the models of your key, the base URLs, copy-paste examples for curl, Claude Code, Cursor and Codex CLI, and what each error means.

Anthropic Messages · OpenAI Chat Completions · OpenAI Responses

#One key per model family

A separate key per model family: Claude, GPT, Gemini, Chinese models, Grok — each with its own price. A key looks like cr_… and calls only the models of its family. The ids below are the site’s model catalog — paste them as written.

Key familyModel idsHow to get the key
Claudeclaude-fable-5-1, claude-opus-5-5, claude-sonnet-5, claude-opus-5, claude-haiku-4-5buy on /en/buy
GPTgpt-6.1-sol, gpt-6-astra, gpt-6-sol, gpt-5.6-solbuy on /en/buy (GPT / Codex)
Geminigemini-3.8-flash, gemini-3.1-pro, gemini-4-argonmade in the cabinet from the balance of any key — Keys → Model key
Chinese modelsdeepseek-v4-pro, deepseek-v4.1-flash, glm-5.3, glm-5.3-flash, kimi-k3, kimi-k2.7-code, qwen3.8-max, minimax-m3made in the cabinet from the balance of any key — Keys → Model key
Grokgrok-4.7, grok-4.6, grok-4.5made in the cabinet from the balance of any key — Keys → Model key
⚠
Old combined keys
Combined keys sold before the split lost GPT and Gemini on 31 October 2026; Claude, Grok and the Chinese models work on them as before. For GPT, make a GPT key from their balance: Keys → Model key → GPT.

#See the models of your key

GET /v1/models with your key lists exactly the models that key may call — copy the ids from there. A model of another family is refused with a 403, so this list is also the quickest way to tell which key you hold.

List the models of your key
curl https://api.tkbk.online/v1/models \
  -H "Authorization: Bearer cr_YOUR_KEY"

#Base URLs

Only two things change in any tool: the base URL and the key. Paste the address exactly as shown — clients add the rest of the path themselves (an Anthropic client appends /v1/messages to the bare host).

FormatBase URLModelsTools
Anthropic Messageshttps://api.tkbk.onlineClaudeClaude Code, Cline, n8n, Anthropic SDK
OpenAI Chat Completionshttps://api.tkbk.online/v1Any family: the models of your keyOpenAI SDK, Cline, n8n
OpenAI Responseshttps://api.tkbk.online/openai/v1GPTCodex CLI, Cursor

#First request

Replace cr_YOUR_KEY with your key.

Anthropic Messages — a Claude key

curl — Anthropic Messages
curl https://api.tkbk.online/v1/messages \
  -H "Authorization: Bearer cr_YOUR_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-sonnet-5",
    "max_tokens": 64,
    "messages": [{ "role": "user", "content": "Say one word: works" }]
  }'

OpenAI Chat Completions — a key of any family

The example calls gpt-6.1-sol with a GPT key. With another key, put any id from its /v1/models list into model.

curl — OpenAI Chat Completions
curl https://api.tkbk.online/v1/chat/completions \
  -H "Authorization: Bearer cr_YOUR_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "gpt-6.1-sol",
    "messages": [{ "role": "user", "content": "Say one word: works" }]
  }'
✓
It works
A JSON reply with the model’s text means the key, the balance and the address are all fine. For long answers send "stream": true: a non-streamed answer that runs over about 2 minutes is cut with a 524.

#Claude Code

A Claude key. Set two variables and start Claude Code:

macOS / Linux
export ANTHROPIC_BASE_URL="https://api.tkbk.online"
export ANTHROPIC_AUTH_TOKEN="cr_YOUR_KEY"
# optional: keeps the /effort slider, which Claude Code hides behind a custom base URL
export CLAUDE_CODE_ALWAYS_ENABLE_EFFORT=1

claude
  • Signed in to Claude Code with an Anthropic account before? Run /logout inside Claude Code and start it again, so it uses the key.
  • Keep one key variable — ANTHROPIC_AUTH_TOKEN, the bare key without “Bearer ” — and do not set ANTHROPIC_API_KEY at the same time.
  • Windows PowerShell and settings.json versions: the setup guide.

#Cursor

Cursor → Settings → Models → API Keys. Fill in the fields:

Cursor fields
Override OpenAI Base URL:  ON
Base URL:                  https://api.tkbk.online/openai/v1
OpenAI API Key:            cr_YOUR_KEY
Add model:                 gpt-5.6-sol
  • GPT models need a GPT key, Claude models a Claude key. The key goes into OpenAI API Key only; leave Anthropic API Key off.
  • Add the model by its exact id (Add model) and pick it in the chat instead of Auto.
  • Cursor accepts your own keys on its paid plans.

#Codex CLI

A GPT key only. Add the provider to ~/.codex/config.toml:

~/.codex/config.toml
model = "gpt-5.6-sol"
model_provider = "tkbk"

[model_providers.tkbk]
name = "TKBK"
base_url = "https://api.tkbk.online/openai/v1"
env_key = "OPENAI_API_KEY"
wire_api = "responses"
requires_openai_auth = false
Run
export OPENAI_API_KEY="cr_YOUR_KEY"

codex

#Errors

CodeErrorWhat it meansWhat to do
401invalid_api_key / UnauthorizedThe key is not found or was copied incompletely.Copy the whole cr_… key again, with no trailing space. In Claude Code keep one variable, ANTHROPIC_AUTH_TOKEN, and run /logout.
402Payment Required / insufficient_quotaThe balance of the key is used up.Top up the same key — Top up in the cabinet, or the Telegram bot. The key and your settings stay the same.
403This API key does not include this model familyThe model belongs to another family than the key. Not an outage.Use a key of that family: Keys → Model key in the cabinet.
403This model is not available for this keyThe id is not on your key’s list.Use an exact id from GET /v1/models.
404model not found / Not FoundAn unknown model id, or a wrong path in the base URL.Copy the id from GET /v1/models; paste the base URL exactly as in the table above.
429rate_limit_errorThe model is overloaded for a moment, or your IP is blocked for 10 minutes after many invalid keys in a row.Retry with a pause and check the key. Keys have no per-minute or concurrency limit.
524A timeout occurredA non-streamed answer ran over about 2 minutes.Turn on streaming: "stream": true.
529overloaded_errorA short overload of the model.Retry in a few seconds; the official SDKs do it themselves.

Writing to support? The error text is enough — never send your API key.

#Top up and keys for other families

  • Top up the same key in the cabinet (Top up) or in the Telegram bot: the key and your configs stay the same, and the balance never expires.
  • By a Russian bank card, SBP (fast payments), YooMoney or SberPay on the site; crypto (via @CryptoBot) and Telegram Stars only in the Telegram bot @TKBKStorebot. From outside Russia, crypto or Telegram Stars in the bot are the easiest; the key works from any country.
  • A new Claude or GPT key is bought on the buy page — for GPT pick “GPT / Codex”.
  • Gemini, Chinese models and Grok keys — and a key of any other family than the one you hold — are made in the cabinet: Keys → Model key, paid from the balance of any key you own. The amount is converted at the two families’ prices per $1; see pricing.

#Reselling keys

Selling access to your own customers? Partners & resellers: a wholesale balance, a dashboard and the Partner API to issue keys to your customers.

Stuck on a step?

Send us the error text on Telegram — never your API key. The support chat on the site answers in your language.