Skip to content

Billing and credits

siema_ai is prepaid. Your organisation has a balance in PLN; every request subtracts its cost; when the balance is not positive, requests fail with 402 insufficient_quota until you top up. There are no subscriptions, minimums or monthly fees.

Credit is added by bank transfer to energiaLab’s account; card and BLIK payments are not available for now. Only companies with a Polish NIP can top up: until the company details below are saved, siema_ai refuses a pro forma request or a top-up and does not show the transfer details. Signing up and creating API keys do not need them.

  1. Open Billing in the console and save your company details (name, NIP, address and the e-mail for invoices). Owners and admins can do this.
  2. The Billing page then shows the account number and the transfer title for your organisation. Pay any amount to that account with exactly that title. If you need a document to pay against first, enter a net amount under Pro forma and pay its total.
  3. After energiaLab imports the bank statement that shows the transfer, usually the next business day, the balance is credited and the VAT invoice is mailed to your billing address with its PDF and listed on the Billing page.

Credit is the net amount: a transfer of 1 230.00 PLN gives you 1 000.00 PLN of credit and an invoice with 23 % VAT. Once invoicing is enabled for your account, every payment gets a VAT invoice (KSeF).

Each model has an input price and an output price per one million tokens, published by GET /v1/models in micro-PLN (1 PLN = 1 000 000 micro-PLN). The cost of a request is:

cost = ceil(prompt_tokens × input_price_per_1M / 1 000 000)
+ ceil(completion_tokens × output_price_per_1M / 1 000 000)

Each part is rounded up to the next micro-złoty (one millionth of a złoty), so a request can never cost exactly zero if it used any tokens. The usage object in the response holds the token counts we bill. Embeddings have only the input part. The price applied is the one in effect when the request started; a later price change never applies retroactively.

Some model servers keep recently seen prompt prefixes in a cache and report how many of a request’s prompt tokens came from it (usage.prompt_tokens_details.cached_tokens). A model that has a separate cached-input price, shown as cached_input_micro_pln_per_1m on GET /v1/models, charges those tokens at it. Cached tokens are part of prompt_tokens, not on top of it:

cost = ceil((prompt_tokens - cached_tokens) × input_price_per_1M / 1 000 000)
+ ceil(cached_tokens × cached_price_per_1M / 1 000 000)
+ ceil(completion_tokens × output_price_per_1M / 1 000 000)

A model without a cached-input price charges cached tokens the input price, as before. Batch lines have no cached price: their cached tokens pay the batch input price. GET /v1/usage/events lists cached_input_tokens for every request.

If energiaLab agreed prices with you in a contract (a discount on every model, or a price for particular models), GET /v1/models, usage.cost_micro_pln and your invoices use your prices; the list prices do not apply to your organisation. Like any price, an agreed price applies from the date it takes effect and never retroactively.

Requests run through the Batch API are charged when each line runs, at the batch price listed on GET /v1/models for that model, or at the prices above until one is set. Nothing is charged for queueing.

Example using the seeded speakleash/bielik-11b-v3.0-instruct placeholder prices (1.50 PLN per million input tokens, 3.00 PLN per million output tokens): a request with 2 000 prompt tokens and 500 completion tokens costs 3 000 + 1 500 = 4 500 micro-PLN. At 10 000 such requests, that’s 45.00 PLN.

Reading cost and balance with your API key

Section titled “Reading cost and balance with your API key”

Every response that carries a usage object also carries usage.cost_micro_pln, the cost of that request computed with the formula above. On a stream it is in the final usage chunk, which you get with stream_options: {"include_usage": true}. The field is absent, never 0, in the rare case the price is not known at that moment; the ledger is the record either way.

Any API key of your organisation can also read:

Request Returns
GET /v1/balance the balance, the credit line if siema set one, and available_micro_pln, their sum: requests are refused with 402 once it is zero or less, or below a request’s maximum cost
GET /v1/usage?from=2026-10-01&to=2026-10-14 requests, tokens and cost in total, per model and per day; days are Warsaw days, both included; the default is the current month; at most 366 days
GET /v1/usage/events?limit=100 one row per billed request, newest first, with its request_id (the X-Request-Id the response carried), tokens and cost_micro_pln; pass next_page as after for the next page

These reads work at a zero balance and count against the key’s rate limit. Details in the API reference.

Requests rejected before reaching a model server — a bad request, an empty balance, an unknown model, a rate limit, no capacity, or a gateway error checking your balance — cost nothing. A failure before the model server sends any reply — a connection error, a first-byte timeout, or an upstream 4xx/5xx before the first byte — also costs nothing. A non-streaming request that fails after the model server started sending its reply is charged the estimated input tokens, and so is a client disconnect at any point after the request reached the model server, including during a cold start before any reply has begun. If you disconnect only after the model’s full reply had already reached the gateway — it just couldn’t be written back to you — you’re charged the full usage for that reply, the same as a completed request. A stream that fails mid-way, or that you disconnect, is charged for the tokens produced up to that point, using an estimate; see Streaming and Errors.

The gateway checks the balance before each request, and it checks it against what the request could cost at most: the input (estimated from the message length) plus max_tokens times your output price. When max_tokens is missing or above the model’s maximum, the model’s maximum is used. The same holds for n above 1, which multiplies the output. If your balance, plus the credit line if siema set one, is below that, the request fails at once with 402 insufficient_quota and a message that names the maximum cost; nothing is billed. Lower max_tokens or top up. A request that passes is charged only for the tokens it really used.

Because the balance is updated a moment after each request finishes, and the input is estimated rather than counted, a burst of parallel requests can still take the balance slightly below zero. The negative balance stands and blocks further requests until your next top-up, which is added to it rather than zeroing it out first. New requests fail with 402 insufficient_quota within a second of the balance reaching zero.

Where OpenAI reports an exhausted quota as HTTP 429, siema_ai returns 402 instead, so the official SDKs raise it immediately rather than retrying it like a rate limit. Detect it by status code 402 or by error.type == "insufficient_quota"; the SDKs do not retry it. See Errors for the full picture.

The Overview page shows a warning when the balance drops below 5.00 PLN.

An owner or admin can set a monthly spend cap in PLN: under Billing in the console, or with siema billing cap set 500. The month is the calendar month in Warsaw. There is no cap unless you set one. When the month’s spend reaches the cap, new requests (and new files and batches in the Batch API) fail with 402 and error.code == "spend_cap_reached" until the next month starts or an owner or admin raises or removes the cap; the change applies within a second. It has the same type as an empty balance (insufficient_quota), so SDKs do not retry it; tell the two apart by code.

Like the balance, the cap is checked against each request’s maximum cost (the input plus max_tokens, see above): a request whose maximum cost is more than what is left under the cap fails at once with the same 402 and spend_cap_reached, and a smaller max_tokens may fit. Spend is added a moment after a request finishes and the input is estimated, so a burst of parallel requests can still go slightly over the cap. Owners and admins get an e-mail when the month’s spend reaches 80 % of the cap and another when it reaches the cap, each at most once a month. Every change of the cap is recorded in the organisation’s audit log with who made it. GET /v1/balance shows the cap and this month’s spend.

Usage in the console shows spend per day and per model, and a table of recent requests with model, tokens, latency, status and cost. Usage metadata is kept for 13 months.