Pricing and how billing works

Pay-as-you-go has no monthly fee. Add balance (the minimum top-up is shown on the top-up page of the console) and each request is charged from it at actual usage. Prices are in US dollars (USD).

How one request is charged

  1. When a request arrives, its cost is estimated from the input size and the maximum output, and that amount is reserved from your balance. If the balance cannot cover the reservation the request is refused before any upstream cost is incurred.
  2. When the upstream answers, the cost is computed from actual usage at the model's price in effect at that time and settled once: any excess reservation goes back to your balance, any shortfall is charged.
  3. If a stream is interrupted, the client disconnects or the gateway restarts, the request is settled on the usage recorded so far, or on the reservation estimate when nothing was recorded.

Billed items

A model is charged only for the items in this table that apply to it; see the price list below and each model page for unit prices.

ItemUnitApplies to / fallback
Input tokensper 1M tokensChat, embeddings
Output tokensper 1M tokensChat
Reasoning tokensper 1M tokensOutput price unless priced separately
Cache readper 1M tokensInput price unless priced separately
Cache write (5 min / 1 hour)per 1M tokens1-hour falls back to 5-minute, then to input price
Image and audio input tokensper 1M tokensInput price unless priced separately
Image and audio output tokensper 1M tokensOutput price unless priced separately
Input charactersper 1M charactersCharacter-priced text-to-speech models
Input audio durationper second (shown per minute)Transcription, metered in milliseconds
Generated imagesper image, optionally by quality and sizeImage generation
Web searchper search call executed by the providerModels with web search
Flat request feeper billable requestSome models

Context tiers

Some models charge more for long prompts. The tier is chosen by the total input tokens of the request, cache reads and writes included: the highest tier whose threshold does not exceed that total. Every item of the request is then billed at that tier; the excess is not billed separately.

Precision and rounding

Amounts are kept as integer nano-dollars (1 USD = 1,000,000,000 nano-USD), never floating point. The items of a request are summed exactly, any contract discount is applied to the sum, and the result is rounded up once, to 0.000000001 USD.

Example: ds-flash, 1,200 input and 350 output tokens

1,200 × $0.18 / 1,000,000 + 350 × $0.72 / 1,000,000 = $0.000468 → $0.000468

Computed from the price list below; after a price change, the price in effect when the request ran applies.

The order credits are used in

Your balance is made of separate credits, used in this order: subscription, promotional, converted referral rewards, then top-ups. Promotional credits can expire; the expiry date is shown on the billing page of the console.

How to top up

Top up by card or with crypto. Crypto payments take stablecoins only (USDT or USDC) and add bonus credits on top of the top-up; the current rate is shown on the top-up page of the console. Bonus credits cannot be refunded, and a refund of the payment removes the matching share of any bonus not yet used.

Where to check a charge

  • usage.cost in every response: the USD amount charged for that request.
  • GET /v1/generation?id=<request id>: list cost, amount charged and the quantity, unit price and amount of every billed item.
  • The usage page of the console: one row per request, and the billing breakdown of each request.

Price list

The main unit prices of each model at its lowest tier. Tiered prices, cache prices and other items are on each model page.

Model Type Price (USD) Tiers
ds-flash
ds-flash
Chat
Input $0.18 / 1M tokens
Output $0.72 / 1M tokens
1
ds-pro
ds-pro
Chat
Input $0.792 / 1M tokens
Output $2.376 / 1M tokens
1
mock
mock
Chat
Input $0.30 / 1M tokens
Output $1.20 / 1M tokens
1