How billing works
Every request is paid from your balance at the rates of the model that answered it. You can see each model’s rates on indorouter.ai/models, or read them from GET /v1/models.
Each rate is in rupiah per million units. We take the vendor’s list price and convert it at a fixed rupiah rate, so a rate does not move with the exchange rate from one day to the next. Rates can change: an increase is announced on the models page before it takes effect, and a request is always charged at the rate in force when it was processed.
Models have separate rates for each type of billable usage:
| Rate | What it counts |
|---|---|
| Input | Tokens in your prompt, including system messages, tool definitions and images sent as tokens. |
| Output | Tokens the model writes. Reasoning (thinking) tokens are billed at the output rate. |
| Cache read | Input tokens the vendor served from its prompt cache, at a lower rate than input. |
| Cache write (5 minutes, 1 hour) | Input tokens written into the vendor’s prompt cache, on models that charge for it. |
| Image output | Tokens of a generated image, or a price per image on models that bill per picture. |
| Audio | Audio tokens or seconds of audio, depending on the model. |
| Characters | Characters of text turned into speech, on speech models that bill this way. |
| Video seconds | Seconds of generated video. |
To calculate a request’s cost, we multiply each type of reported usage by its rate and add the results. Charges are not rounded per request. The console displays your balance rounded down to the nearest whole rupiah.
Long prompts
Section titled “Long prompts”Some models charge a higher rate when a prompt reaches a specified length. When a prompt reaches that size, the whole request is billed at the higher rates, not only the part above the threshold. In GET /v1/models, such a model’s route carries a long_context entry under overrides, with the threshold in min_prompt_tokens and the higher rates beside it.
Off-peak rates
Section titled “Off-peak rates”A few models are cheaper outside the vendor’s busy hours. A request gets the lower rate only if it ran entirely outside those hours. One that started or finished inside them is billed at the normal rate. The model page on indorouter.ai/models shows the busy hours, in UTC.
Batch rates
Section titled “Batch rates”Some models have a lower batch rate. It applies only to requests you send through /v1/batches, never to ordinary requests.
Which route’s rate applies
Section titled “Which route’s rate applies”Some models can be served by more than one provider. If the first provider fails and another one answers, the request is billed at the rates of the provider that answered.
Service fee
Section titled “Service fee”On top of a model’s rates, every model request carries a 5.5% service fee on its usage cost. It comes off your balance together with the usage, each time a request is charged: a request with Rp1.000 of usage takes Rp1.055 from your balance.
- Top-ups have no service fee. The full top-up amount is added to your balance; VAT (PPN) is added to the payment total when applicable.
- On a postpaid account, the service fee is one line on the invoice.
- An enterprise contract may set a different percentage.
- Partner services have no service fee.
The rates on the models page and in GET /v1/models do not include the service fee.
Before a request runs
Section titled “Before a request runs”Before processing a request, we reserve its estimated maximum cost. This covers the estimated prompt tokens, the output limit, the highest applicable rate and the service fee. Reserved balance is unavailable to other requests running at the same time.
After the vendor responds, we charge for the reported usage and release the remaining reservation. The reservation is usually larger than the final charge because it assumes the model uses its full output limit.
When your balance is low
Section titled “When your balance is low”If your balance cannot cover the reservation, we lower max_tokens for that request to what your balance can cover, as long as that is at least 4,096 tokens. The response then carries two headers:
| Header | Value |
|---|---|
x-indorouter-max-output-tokens |
The output limit we actually sent to the vendor. |
x-indorouter-max-output-tokens-lowered-from |
The limit you asked for. Only present when we lowered it. |
This only happens for text replies on Chat Completions and Responses. If even 4,096 tokens is not covered, or the request is for images, audio or video, the request is refused with 402 and the code insufficient_funds. Sending a smaller max_tokens reserves less.
You can configure an API key to reject requests when the balance cannot cover the requested output limit. Choose Refuse the request under When the balance runs low when you create the key on the API Key page.
When something goes wrong
Section titled “When something goes wrong”| What happened | What you pay |
|---|---|
| The request failed and nothing was sent back to you. | Nothing. The reservation is released. |
| The first provider failed and another answered. | Only the answer you received, at the answering provider’s rates. |
| The vendor did not report its usage. | Nothing. We absorb the cost. |
| The vendor reported more than we reserved. | At most the reservation. |
| Your client disconnected, or the stream ended early, after text was sent. | Your prompt as we counted it at the input rate, plus the output tokens actually delivered at the output rate, never more than the reservation. |
The service fee is added to each billable amount in this table.
A stream also ends after an hour, or after two minutes with nothing from the vendor. What was delivered by then is billed as in the last row.
Checking a request’s cost
Section titled “Checking a request’s cost”Every request is listed on the Requests page in the console, with its cost. Request details show usage costs and service fees separately, as do CSV exports (usage_idr, platform_fee_idr and charge_idr). From code, pass the request’s id to GET /v1/generation; its total_cost is what came off your balance, service fee included.
For limits that stop spending at a set amount, see Spend limits.