Skip to content
laminarity

Get started

Balance and top-ups

API keys spend a prepaid balance held in US dollars. You add money once and every request draws from it.

How a request is charged

  • The rate is $0.15 per million tokens for input and output, for every model.
  • Before a request runs, the balance must cover its worst case: prompt plus max_tokens, at least $0.001. If it does not, the request is refused with 402 insufficient_balance and nothing is charged.
  • After the request, the response headers tell you what happened: x-openrelay-charged-usd is the charge for this call, x-openrelay-balance-usd is what remains.
  • The balance never goes below zero.
Set max_tokens on long prompts when your balance is low: the pre-check uses it to estimate the worst case.

USDC on Base

On the Billing page enter an amount and press Add to balance. Your wallet asks you to sign a USDC transfer authorization; you pay no gas because the payment facilitator submits it on Base. The balance updates when the transfer settles, usually within half a minute.

USDT on TON

The Billing page shows a TON address and a personal comment. Send USDT on TON from Telegram Wallet, Tonkeeper or any TON wallet with that comment — the comment tells us whose balance to credit. The balance is credited automatically, typically within about a minute.

Bank card

Card payments go through on-ramp partners that deliver USDC to your own wallet on Base. When it arrives, move it to your balance with Add to balance. The partners available to you are listed on the Billing page.

Usage history

The dashboard shows daily spend, the number of requests and every top-up, so you can see how long your balance will last at the current pace.