Builder pricing
Standard gateway charges are based on provider usage and the applicable fee. Amounts are computed to the millionth of a dollar and displayed to cents. The smallest top-up is $25. Charges are in USD.
The markup
| You use | CloakAPI rate |
|---|---|
| Pooled keys (CloakAPI holds the provider keys) | 15% |
| BYOK (you bring your own provider keys) | 5% |
The rate is applied to the provider cost recorded for the call. Where a provider charges a request fee, that fee is included in its recorded cost. With pooled keys, the charge includes provider cost plus the listed rate; with BYOK, the provider charges your key and CloakAPI’s fee is calculated from provider usage.
Price calculations use micro-dollars (µUSD). The provider-cost amount is rounded down to whole micro-dollars, with its fractional remainder carried into the fee calculation. CloakAPI’s fee rounds up to a whole micro-dollar for each call. A metering call has a $0.01 minimum fee. Account balances are kept to sub-cent precision and displayed to cents; a completed call can leave a small negative balance if its final charge exceeds the reservation. A later request may then receive HTTP 402 until the balance is topped up.
- Pooled keys, 15%: CloakAPI supplies the upstream provider keys, so you do not need provider accounts. This is the simplest way to start.
- BYOK, 5%: you bring your own provider keys, and CloakAPI meters, relays and signs. The markup is lower because you carry the provider relationship.
Per-provider: pooled vs BYOK
Which rate applies depends on the provider. Five providers are available both pooled (15%) and BYOK (5%). The rest are BYOK-only (5%): you must bring your own key, because CloakAPI holds no pooled key for them.
| Provider | Pooled (15%) | BYOK (5%) |
|---|---|---|
| Anthropic (Claude) | Yes | Yes |
| OpenAI (GPT) | Yes | Yes |
| Google Gemini | Yes | Yes |
| Grok | Yes | Yes |
| DeepSeek | Yes | Yes |
| OpenRouter | No | Yes |
| Perplexity | No | Yes |
| Mistral | No | Yes |
| Cohere | No | Yes |
| Groq | No | Yes |
| Together AI | No | Yes |
| Fireworks AI | No | Yes |
- Pooled or BYOK (Anthropic, OpenAI, Google Gemini, Grok, DeepSeek): use CloakAPI’s pooled keys at 15%, or connect your own key for the same provider at 5%.
- BYOK-only (OpenRouter, Perplexity, Mistral, Cohere, Groq, Together AI, Fireworks AI): CloakAPI holds no pooled key for these, so you bring your own key; CloakAPI’s fee is calculated from recorded provider usage.
- Local (Ollama): on-device inference through the desktop app has no model cost; a 5% metering fee applies to complete-local usage (see the main pricing page). No provider key is needed.
- Gemini thinking models can spend the whole
max_tokensbudget on thinking, so a shortmax_tokensmay return empty content withfinish_reasonlength. Thinking tokens are billed as output.
Billed through the gateway
The gateway handles billing for relayed calls. A recorded debit uses billable provider
usage or a supported estimate. Some calls have no debit: an aborted stream before any
provider frame, an error-only stream, or a stream that ends after only a role frame,
without a finish event and without a client disconnect. The drop-in proxy, the SDKs, the
self-hosted MCP server and REST calls all go through api.cloakapi.io, but usage
handling can vary by provider and surface. When receipt issuance and persistence
succeed, a completed reply carries a signed (P-256) receipt. A failed call gets a
failed-call receipt only when it was made with an API key (not for redirects, OPTIONS
or HEAD), and a stream that is cut off early may end without one.
For streams, valid provider usage is used when it is received. When usage is missing,
the gateway estimates from the available output and the request reservation for
supported providers and cases. A stream cut off after billable usage or output may
receive a partial or estimated charge; a stream that ends after only a role frame,
without a finish event and without a client disconnect, is not billed. Invalid provider
usage is rejected without settlement. Where a receipt is issued for an incomplete
response, it is marked completed=false.
Top up the account balance to fund usage. For requests handled by prepaid-balance admission, the gateway checks whether the available balance can cover a conservative reservation. Trial requests use a provider-supported output limit, which the gateway may insert or lower before forwarding so that a request never holds more than the trial credit left; a trial request that the credit left cannot cover gets HTTP 402. A request that cannot pass balance admission may also receive HTTP 402.
What builders charge their own users
That is your decision. You might resell at your own price, bundle it into a subscription, or absorb it. CloakAPI charges based on provider usage and the rate above; this does not set your product’s pricing.
Tiers and trial credit
For builder usage, this page lists no subscription tiers or per-seat charges and shows rates in USD. Eligible accounts may receive $2 of trial credit after email verification. The credit works on any priced model until it is used up. Rates and provider availability can change; use the current details on this page and in the machine-readable price book.
See also Choose your integration and Build on CloakAPI.