Balance and billing
The prepaid balance, what a request costs, reading the balance from the API, and invoices.
Your balance
Balance usage and subscription overage are paid from a prepaid balance in US dollars. Top it up in your dashboard; you can also switch on automatic top-ups below a threshold.
What a request costs
Each request is priced with the model's prices at the time it is served:
cost = ( input_tokens x input price
+ output_tokens x output price
+ cache_read_tokens x cache-read price
+ cache_write_tokens x cache-write price (5-minute cache)
+ cache_write_1h_tokens x 1-hour cache-write price ) / 1 000 000
+ request feeThe result is rounded to the micro-dollar once per request and debited at once, so the next request sees the lower balance. The cost of each request appears in your usage log, and in the Chat Completions answer as usage.cost (USD). Prices are listed on the pricing page and in GET /public/v1/models; a price change takes effect at the start of a whole hour (UTC).
Reading the balance
GET /v1/billing/balance needs a key with the billing permission (set it when you create the key):
curl "$KEYDAN_API_BASE/v1/billing/balance" \
-H "Authorization: Bearer $KEYDAN_API_KEY"{"state": "ok", "available_credits": "42.180000", "updated_at": "2026-11-19T10:05:00Z"}available_credits is in USD (one credit is one dollar). state is ok, low, overdraft, exhausted, frozen or off. While your balance is low, answers also carry x-balance-state: low (overdraft, exhausted).
When the balance runs out
HTTP/1.1 402 Payment Required
x-should-retry: false
{"type": "error",
"error": {"type": "billing_error", "code": "balance_exhausted",
"message": "credit balance exhausted: top up or wait for the next period"}}Requests are refused with 402 balance_exhausted before any work is done, so nothing is charged. Top up and retry. Subscription requests within the windows never touch the balance.
Paying in roubles
Prices and the balance are in dollars. With a Russian bank card you pay in roubles at the rate of the day; the rate is shown on the site and at checkout, and the rate of each payment is kept with it (a refund uses the same rate). The current rate, no key needed:
curl "$KEYDAN_API_BASE/public/v1/fx"
{"rub_per_usd": "98.43", "updated_at": "2026-11-23T11:49:30+00:00"}Free trial
A new workspace can take 7 days on the trial plan once: small windows and the kd-fast and kd-balanced models (kd-auto picks between them). A request for another model on the trial plan gets 403 model_not_in_plan. The trial needs a card: when it ends the plan you chose starts, and an e-mail comes two days before the charge.
Subscriptions and invoices
- A subscription is paid monthly in advance. Upgrades apply at once with the difference prorated; downgrades apply at the next period.
- Invoices, receipts and payment history are in your dashboard.
- Business plans receive one invoice per month with the number of active end users, paid by the agreed terms.