Sourced LLM API prices and cost budgets for agent runs across OpenAI, Claude, Gemini and more.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Say which models can take this input plus the output you want to reserve, which cannot, and which do not publish a context window. Use before sending a very large document or conversation.
Prompt text. Counted with an estimator, never stored.
Model ids to compare, e.g. ["claude-sonnet-5-5", "gpt-6.2-sol", "gemini-3.8-flash"]. Omit to compare every listed model. list_models gives every id.
System prompt text.
Chat messages [{role, content}]. Counted with an estimator, never stored.
Only these providers.
Exact input token count, if you have it. Overrides text and gives an exact cost.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http tokenbudget https://tokenbudget.netlify.app/mcp
Say which models can take this input plus the output you want to reserve, which cannot, and which do not publish a context window. Use before sending a very large document or conversation.
| Argument | Type | Description |
|---|---|---|
| text | string | Prompt text. Counted with an estimator, never stored. |
| models | array | Model ids to compare, e.g. ["claude-sonnet-5-5", "gpt-6.2-sol", "gemini-3.8-flash"]. Omit to compare every listed model. list_models gives every id. |
| system | string | System prompt text. |
| messages | array | Chat messages [{role, content}]. Counted with an estimator, never stored. |
| providers | array | Only these providers. |
| input_tokens | integer | Exact input token count, if you have it. Overrides text and gives an exact cost. |
| reserve_output_tokens | integer |
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Prompt text. Counted with an estimator, never stored."
},
"models": {
"type": "array",
"items": {
"type": "string"
},
"description": "Model ids to compare, e.g. [\"claude-sonnet-5-5\", \"gpt-6.2-sol\", \"gemini-3.8-flash\"]. Omit to compare every listed model. list_models gives every id."
},
"system": {
"type": "string",
"description": "System prompt text."
},
"messages": {
"type": "array",
"items": {
"type": "object"
},
"description": "Chat messages [{role, content}]. Counted with an estimator, never stored."
},
"providers": {
"type": "array",
"items": {
"enum": [
"anthropic",
"openai",
"google",
"deepseek",
"mistral",
"groq"
],
"type": "string"
},
"description": "Only these providers."
},
"input_tokens": {
"type": "integer",
"minimum": 0,
"description": "Exact input token count, if you have it. Overrides text and gives an exact cost."
},
"reserve_output_tokens": {
"type": "integer",
"minimum": 0
}
}
}Estimate how many tokens a text is for each tokenizer family (OpenAI o200k, Claude legacy and 2026, Gemini, DeepSeek, Mistral, Qwen), with an error band. Estimates only; for exact counts use the provider's count endpoint.
| Argument | Type | Description |
|---|---|---|
| text | string | Prompt text. Counted with an estimator, never stored. |
| models | array | Model ids to compare, e.g. ["claude-sonnet-5-5", "gpt-6.2-sol", "gemini-3.8-flash"]. Omit to compare every listed model. list_models gives every id. |
| messages | array | Chat messages [{role, content}]. Counted with an estimator, never stored. |
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Prompt text. Counted with an estimator, never stored."
},
"models": {
"type": "array",
"items": {
"type": "string"
},
"description": "Model ids to compare, e.g. [\"claude-sonnet-5-5\", \"gpt-6.2-sol\", \"gemini-3.8-flash\"]. Omit to compare every listed model. list_models gives every id."
},
"messages": {
"type": "array",
"items": {
"type": "object"
},
"description": "Chat messages [{role, content}]. Counted with an estimator, never stored."
}
}
}Price one LLM request (input + expected output) on many models at once, cheapest first, with current list prices from each provider's own pricing page (source URL and check date included), prompt-cache and batch discounts, long-prompt surcharges and announced price changes. Also says whether the request fits each model's context window. Call this before an expensive request to pick a model or to stay inside a budget.
| Argument | Type | Description |
|---|---|---|
| date | string | Price on this day (YYYY-MM-DD), to see announced price changes. Default today. |
| text | string | Prompt text. Counted with an estimator, never stored. |
| batch | boolean | Price with the provider's batch API discount where one is listed. |
| models | array | Model ids to compare, e.g. ["claude-sonnet-5-5", "gpt-6.2-sol", "gemini-3.8-flash"]. Omit to compare every listed model. list_models gives every id. |
| system | string | System prompt text. |
| messages | array | Chat messages [{role, content}]. Counted with an estimator, never stored. |
| providers | array | Only these providers. |
| input_tokens |
Price, context window, long-prompt surcharge, announced price changes and source for one model id.
| Argument | Type | Description |
|---|---|---|
| model* | string |
{
"type": "object",
"required": [
"model"
],
"properties": {
"model": {
"type": "string"
}
}
}List every model this tool prices, with input, output, cache and batch prices per 1M tokens, context window, max output, source URL and the day the price was checked.
| Argument | Type | Description |
|---|---|---|
| provider | string | One provider (same as providers with one item). |
| providers | array | Only these providers. |
| min_context | integer |
{
"type": "object",
"properties": {
"provider": {
"enum": [
"anthropic",
"openai",
"google",
"deepseek",
"mistral",
"groq"
],
"type": "string",
"description": "One provider (same as providers with one item)."
},
"providers": {
"type": "array",
"items": {
"enum": [
"anthropic",
"openai",
"google",
"deepseek",
"mistral",
"groq"
],
"type": "string"
},
"description": "Only these providers."
},
"min_context": {
"type": "integer",
"minimum": 0
}
}
}Estimate the total cost of an agent loop that re-sends its growing context every turn, with prompt caching, on many models. Returns total cost, peak context, how many turns fit in each model's context window, how many turns fit in a budget, and a recommended model. Use before starting a long agent task.
| Argument | Type | Description |
|---|---|---|
| cache | boolean | Assume prompt caching of the previous turn. Default true. |
| turns* | integer | Number of model calls in the loop. |
| models | array | Model ids to compare, e.g. ["claude-sonnet-5-5", "gpt-6.2-sol", "gemini-3.8-flash"]. Omit to compare every listed model. list_models gives every id. |
| providers | array | Only these providers. |
| budget_usd | number | |
| task_tokens | integer | Tokens of the first user message. |
| tools_tokens | integer | Tokens of tool definitions sent every turn. |
| system_tokens | integer | |
Report a wrong price, a missing model, a bug or an idea. Read by a person. Keep it under 1000 characters and do not include prompts, secrets or personal data (they are scrubbed anyway).
| Argument | Type | Description |
|---|---|---|
| kind | string | |
| model | string | Model id the feedback is about, if any. |
| message* | string | |
| endpoint | string | Tool or endpoint the feedback is about, e.g. plan_agent_run. |
{
"type": "object",
"required": [
"message"
],
"properties": {
"kind": {
"enum": [
"bug",
"wrong-price",
"missing-model",
"idea",
"praise",
"other"
],
"type": "string"
},
"model": {
"type": "string",
"description": "Model id the feedback is about, if any."
},
"message": {
"type": "string",
"maxLength": 1000
},
"endpoint": {
"type": "string",
"description": "Tool or endpoint the feedback is about, e.g. plan_agent_run."
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 25, 2026.
| integer |
| Exact input token count, if you have it. Overrides text and gives an exact cost. |
| output_tokens | integer | Expected output tokens (or the max_tokens you will allow). |
| cached_input_tokens | integer | How many input tokens will be read from the prompt cache. |
{
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "Price on this day (YYYY-MM-DD), to see announced price changes. Default today."
},
"text": {
"type": "string",
"description": "Prompt text. Counted with an estimator, never stored."
},
"batch": {
"type": "boolean",
"description": "Price with the provider's batch API discount where one is listed."
},
"models": {
"type": "array",
"items": {
"type": "string"
},
"description": "Model ids to compare, e.g. [\"claude-sonnet-5-5\", \"gpt-6.2-sol\", \"gemini-3.8-flash\"]. Omit to compare every listed model. list_models gives every id."
},
"system": {
"type": "string",
"description": "System prompt text."
},
"messages": {
"type": "array",
"items": {
"type": "object"
},
"description": "Chat messages [{role, content}]. Counted with an estimator, never stored."
},
"providers": {
"type": "array",
"items": {
"enum": [
"anthropic",
"openai",
"google",
"deepseek",
"mistral",
"groq"
],
"type": "string"
},
"description": "Only these providers."
},
"input_tokens": {
"type": "integer",
"minimum": 0,
"description": "Exact input token count, if you have it. Overrides text and gives an exact cost."
},
"output_tokens": {
"type": "integer",
"minimum": 0,
"description": "Expected output tokens (or the max_tokens you will allow)."
},
"cached_input_tokens": {
"type": "integer",
"minimum": 0,
"description": "How many input tokens will be read from the prompt cache."
}
}
}| output_tokens_per_turn |
| integer |
| Default 800. |
| tool_result_tokens_per_turn | integer | Default 1500. |
{
"type": "object",
"required": [
"turns"
],
"properties": {
"cache": {
"type": "boolean",
"description": "Assume prompt caching of the previous turn. Default true."
},
"turns": {
"type": "integer",
"maximum": 500,
"minimum": 1,
"description": "Number of model calls in the loop."
},
"models": {
"type": "array",
"items": {
"type": "string"
},
"description": "Model ids to compare, e.g. [\"claude-sonnet-5-5\", \"gpt-6.2-sol\", \"gemini-3.8-flash\"]. Omit to compare every listed model. list_models gives every id."
},
"providers": {
"type": "array",
"items": {
"enum": [
"anthropic",
"openai",
"google",
"deepseek",
"mistral",
"groq"
],
"type": "string"
},
"description": "Only these providers."
},
"budget_usd": {
"type": "number",
"exclusiveMinimum": 0
},
"task_tokens": {
"type": "integer",
"minimum": 0,
"description": "Tokens of the first user message."
},
"tools_tokens": {
"type": "integer",
"minimum": 0,
"description": "Tokens of tool definitions sent every turn."
},
"system_tokens": {
"type": "integer",
"minimum": 0
},
"output_tokens_per_turn": {
"type": "integer",
"minimum": 0,
"description": "Default 800."
},
"tool_result_tokens_per_turn": {
"type": "integer",
"minimum": 0,
"description": "Default 1500."
}
}
}