# Agent tool and model cost calculator

Estimate KeepBal tool calls, model token usage, and one-time Paddle top-up fees before funding your wallet. Interactive calculator: /cost-calculator.

[Start with $1 free credit](/sign-up) · [Full pricing](/pricing)

## Formulas

- **Fixed-price tools:** `successful_calls × published_price_per_call` (failed or timed-out calls cost $0).
- **Variable-price tools:** `reported_provider_cost × 1.35`, optionally bounded per call with `max_cost_usd`.
- **Token models:** `(uncached_input_tokens / 1,000,000) × input_rate + (output_tokens / 1,000,000) × output_rate` (plus applicable cache read/write rates).
- **Paddle top-up checkout:** `credit_usd + ceil(credit_cents × 0.08) / 100 + $0.35` before tax; only `credit_usd` enters the wallet.

## Prepaid top-up fee schedule

| Wallet credit added | Processing fee | Pre-tax checkout total |
| --- | --- | --- |
| $10.00 | $1.15 | $11.15 |
| $20.00 | $1.95 | $21.95 |
| $50.00 | $4.35 | $54.35 |
| $100.00 | $8.35 | $108.35 |

## Sample model rates

- **claude-haiku-4.5** (`/v1/messages`): Input: $1.25 / Output: $6.25 / Cache read: $0.13 / Cache write: $2.5 per 1M tokens
- **claude-sonnet-4.5** (`/v1/messages`): Input: $3.75 / Output: $18.75 / Cache read: $0.38 / Cache write: $7.5 per 1M tokens
- **deepseek-v3.2** (`/v1/chat/completions`): Input: $0.336 / Output: $0.504 / Cache read: $0.26 / Cache write: $0 per 1M tokens
- **gpt-5.4** (`/v1/chat/completions`): Input: $3.13 / Output: $18.75 / Cache read: $0.32 / Cache write: $0 per 1M tokens
- **gpt-5.4-mini** (`/v1/chat/completions`): Input: $0.94 / Output: $5.63 / Cache read: $0.1 / Cache write: $0 per 1M tokens
- **jina-embeddings-v3** (`/v1/embeddings`): Input: $0.07 per 1M tokens

## Frequently asked questions

### Are Paddle top-up fees included in tool or model usage rates?

No. Tool and model prices are deducted from wallet credit. Paid Paddle top-ups add an 8% fee (rounded up to the cent) plus $0.35 before tax at checkout; only the credit amount enters your wallet.

### How are variable-price tools estimated?

Variable tools settle at reported upstream provider cost plus 35%. Inspect returns pricing metadata rather than an input-specific quote; pass max_cost_usd on POST /apis/v1/run to cap maximum customer spend per call.
