Skip to content

Account

Usage and billing

Pay as you go, monthly plans and their allowances, rate limits and spend limits.

Every request is paid from your prepaid credit balance, at the listed price of the model that served it.

How requests are paid

Pay as you go. Each request draws down your prepaid credit balance at the model's listed price, and credits never expire. New accounts can receive a small signup credit to try it. Current prices are on the pricing page.

What a request costs

(input_tokens - cached_tokens - cache_write_tokens) / 1_000_000 * input_per_m+ cached_tokens      / 1_000_000 * cached_input_per_m+ cache_write_tokens / 1_000_000 * input_per_m * 1.25   (× 2 for a 1-hour cache)+ output_tokens      / 1_000_000 * output_per_m= cost_usd
  • Prices are per million tokens and set per model. Where a model runs doesn't change what you pay.
  • Prompt-cache reads bill at the cached rate, where the model has one. Prompt-cache writes bill at 1.25× the input rate, or 2× for a 1-hour cache, where the model reports them. Reasoning tokens bill as output.
  • Some models charge more for long prompts. Where a model lists long-context rates, a request whose prompt is longer than its threshold bills at those rates for the whole request.
  • Image models bill per generated image.
  • Failed requests are free, and so is a stream that ends before any of the answer reaches you, or an answer that comes back empty with no usage reported for it. If a stream breaks or you disconnect after the answer has started, you pay for the prompt and the part of the answer you received.

Rate limits

AccountDescription
Pay as you goUntil you have purchased $10 of credit in total.
Pay as you go, $10+ purchasedPermanent once reached. Promotional credit, like the signup bonus, doesn't count.

Requests over the limit return 429 with rate_limit_exceeded and a retry-after header. Responses carry x-ratelimit-limit-requests and x-ratelimit-remaining-requests whenever a limit applies.

When requests are refused

An empty balance and a spend limit are billing problems, not rate limits, so they return a different status:

{  "error": {    "type": "billing_error",    "code": "insufficient_credit",    "message": "Your credit balance is empty. Add credit to keep making requests.",    "param": null,    "request_id": "req_91c7de24af03b5168e2c4d70"  }}
  • insufficient_credit: the pay-as-you-go balance is empty, or doesn't cover the request. While a request runs, its input's estimated cost is held against your balance, and a new request is let through only if what isn't held covers its own input. The message gives that request's estimate. The output of requests already running can still take the balance slightly negative. An image generation's n must be a whole number from 1 to 10.
  • key_spend_limit_reached: the key has spent its limit. Raise it on the API keys page, or use another key.

Set a spend limit on every key

A per-key limit is the one control that works while you are asleep, and it is the usual way to keep a test harness from draining the balance.

Tracking usage

Usage groups spend, tokens and requests by model or key. Activity keeps the per-request detail: status, timing, tokens and cost.

Buying credits or a plan

Buy credit yourself on your Billing page, paying by card, SBP, SberPay or crypto — it's added automatically once the payment confirms. Your credit history is listed on the same page.

Got another payment method? Contact our support team on Discord, and we'll help you get started.