Billing

Pricing is set in your agreement. This page explains how usage is measured and charged.

What’s metered

Usage is measured in tokens for each request: input tokens and output tokens. For Anthropic models, prompt-cache reads and writes are metered separately. Each request’s model, token counts and cost are recorded against the API key that made it.

Your balance

Your organization has a prepaid balance, and optionally a credit line. Requests are covered by the balance plus any credit line. When neither can cover a request, it’s refused until the balance is topped up.

You can see your balance, credit line and usage on the Billing page in the console.

Reserve, then settle

  1. Before forwarding a request, Makahai works out the most it could cost, using the model’s prices and the request’s max_tokens.
  2. That amount is reserved from your balance. If it can’t be reserved, or the key has reached its spend limit, the request is refused and nothing is sent to the model provider.
  3. When the response finishes, the request is charged for the tokens actually used, and the rest of the reservation goes back to your balance.

Because of the reservation, a lower max_tokens lets more requests run at the same time within the same balance or key limit.

Failed requests

If the model provider returns an error, that attempt isn’t charged. If the request is retried, only the attempt that succeeds is charged.

Records

Every charge and adjustment is recorded in a ledger. If you dispute a charge, contact info@makahai.com within 60 days and we’ll share the relevant records. Balance changes on our side require approval from a second Makahai employee.