PromptSpend
v0.1.11LLM pricing where every rate carries its source and the date it was last confirmed.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_price
List price for one LLM in USD per million tokens, with its source and last-confirmed date. Returns disputed=true when two sources disagree, and close matches when the model is unknown. To cost a workload, use estimate_cost.
| Parameter | Type | Description |
|---|---|---|
model_name * | string | Model id or name, e.g. gpt-5 or "Claude Opus 5". |
as_of | string | Past date YYYY-MM-DD: the rate published then. |
estimate_cost
Monthly cost of a described workload, or of measured usage, on each model. Accounts for history compounding, cache writes, long-context tiers and reasoning tokens. Use this instead of multiplying prices by hand.
| Parameter | Type | Description |
|---|---|---|
models * | array | Up to about 8. |
cached_input_share | number | 0-1. Default 0. |
conversations_per_day | number | Default 1000. |
output_tokens | number | Typical reply. Default 350. |
reasoning_multiplier | number | Bill output at this multiple. Default 1. |
system_tokens | number | System prompt size. Default 800. |
turns | number | Turns per conversation. Default 4. |
usage | object | Measured totals to price instead: input, output, cache_read, cache_write tokens (input excludes cache reads). |
use_batch_api | boolean | Apply batch discounts. |
user_tokens | number | Typical user message. Default 150. |
find_cheaper
Cheaper models that score at or above the given one on capability, costed on the same workload. Returns candidates to test, not a recommendation.
| Parameter | Type | Description |
|---|---|---|
model * | string | The model currently in use. |
conversations_per_day | number | Default 1000. |
min_capability | number | 0-100. Defaults to the given model’s score. |
output_tokens | number | Default 350. |
system_tokens | number | Default 800. |
turns | number | Default 4. |
user_tokens | number | Default 150. |