
Live prices, cost estimates and retirement dates for 4,100+ LLMs. Remote, no key needed.
Maintained byagentcost.tech(verified)Also a maintainer?
Call this server's tools from your browser. Nothing to install.
Optional. 'Bearer <project API key>' adds your own spend, budget and run-cost tools. Pricing tools need no key.
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.
Work out the USD cost of one or more LLM calls before making them, from the current catalogue. Give a model and the token counts involved. Use `calls` to price a whole job rather than a single call. Cached input tokens bill at the provider's cached rate when one is published and at the full input rate when it is not; the result reports which happened.
Model name, e.g. gpt-4o.
Prompt tokens per call.
Completion tokens per call.
How many identical calls to price. Use this to cost a whole job.
Tokens written into the prompt cache, per call.
Prompt tokens served from the provider's cache, per call.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http mcp https://agentcost.tech/api/mcp
Headers
Authorization (optional, not in the config above): Optional. 'Bearer <project API key>' adds your own spend, budget and run-cost tools. Pricing tools need no key.Work out the USD cost of one or more LLM calls before making them, from the current catalogue. Give a model and the token counts involved. Use `calls` to price a whole job rather than a single call. Cached input tokens bill at the provider's cached rate when one is published and at the full input rate when it is not; the result reports which happened.
| Argument | Type | Description |
|---|---|---|
| calls | integer | How many identical calls to price. Use this to cost a whole job. |
| model* | string | Model name, e.g. gpt-4o. |
| input_tokens* | integer | Prompt tokens per call. |
| output_tokens* | integer | Completion tokens per call. |
| cache_write_tokens | integer | Tokens written into the prompt cache, per call. |
| cached_input_tokens | integer | Prompt tokens served from the provider's cache, per call. |
{
"type": "object",
"required": [
"model",
"input_tokens",
"output_tokens"
],
"properties": {
"calls": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "How many identical calls to price. Use this to cost a whole job."
},
"model": {
"type": "string",
"minLength": 1,
"description": "Model name, e.g. gpt-4o."
},
"input_tokens": {
"type": "integer",
"minimum": 0,
"description": "Prompt tokens per call."
},
"output_tokens": {
"type": "integer",
"minimum": 0,
"description": "Completion tokens per call."
},
"cache_write_tokens": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "Tokens written into the prompt cache, per call."
},
"cached_input_tokens": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "Prompt tokens served from the provider's cache, per call."
}
},
"additionalProperties": false
}Month-to-date spend against the project's budget: the budget, what is left, utilisation, whether it is exhausted and when the period ends. Use this before starting an expensive job. Needs the project API key in the Authorization header.
No arguments.
{
"type": "object",
"properties": {},
"additionalProperties": false
}Look up the per-1,000-token rates for a single named model. Resolves the name exactly, then case-insensitively, then by provider-prefixed suffix (so 'gpt-4o' finds 'azure/gpt-4o'). Use this when you already know which model you are pricing.
| Argument | Type | Description |
|---|---|---|
| model* | string | Model name as the provider spells it, e.g. gpt-4o or claude-sonnet-4-6. |
{
"type": "object",
"required": [
"model"
],
"properties": {
"model": {
"type": "string",
"minLength": 1,
"description": "Model name as the provider spells it, e.g. gpt-4o or claude-sonnet-4-6."
}
},
"additionalProperties": false
}Every model call in one run (trace) of the caller's own project, in execution order, with the cost of each, the run total and how the run ended. The trace id is the one the SDK's workflow() minted or an external system supplied. Needs the project API key in the Authorization header.
| Argument | Type | Description |
|---|---|---|
| trace_id* | string | The run's trace id. |
{
"type": "object",
"required": [
"trace_id"
],
"properties": {
"trace_id": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "The run's trace id."
}
},
"additionalProperties": false
}Cost and call volume for the caller's own project, grouped by agent, model, workflow, tool, user or session, most expensive first. Use this to find which agent or model is spending the money. Needs the project API key in the Authorization header.
| Argument | Type | Description |
|---|---|---|
| limit | integer | Maximum groups to return. |
| range | string | Time window ending now. |
| dimension* | string | What to group by. user and session come from user_id and session_id in event metadata. |
{
"type": "object",
"required": [
"dimension"
],
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 200,
"minimum": 1,
"description": "Maximum groups to return."
},
"range": {
"enum": [
"1h",
"24h",
"7d",
"30d",
"90d"
],
"type": "string",
"default": "7d",
"description": "Time window ending now."
},
"dimension": {
"enum": [
"agent",
"model",
"workflow",
"tool",
"user",
"session"
],
"type": "string",
"description": "What to group by. user and session come from user_id and session_id in event metadata."
}
},
"additionalProperties": false
}Total LLM spend, call count, tokens, average cost per call and success rate for the caller's own AgentCost project over a time window. Needs the project API key in the Authorization header.
| Argument | Type | Description |
|---|---|---|
| range | string | Time window ending now. |
{
"type": "object",
"properties": {
"range": {
"enum": [
"1h",
"24h",
"7d",
"30d",
"90d"
],
"type": "string",
"default": "7d",
"description": "Time window ending now."
}
},
"additionalProperties": false
}List models with an upstream-announced retirement date, soonest first. Use this to check whether a model a user depends on is being retired, or to avoid recommending one that is.
| Argument | Type | Description |
|---|---|---|
| limit | integer | |
| provider | string | Optional provider slug to filter by. |
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 50,
"maximum": 200,
"minimum": 1
},
"provider": {
"type": "string",
"description": "Optional provider slug to filter by."
}
},
"additionalProperties": false
}Search the public AgentCost catalogue of LLM models and their per-1,000-token rates. Filter by provider and/or a substring of the model name. Use this to compare model costs or find a cheaper alternative. Returns rates in USD; no credentials required.
| Argument | Type | Description |
|---|---|---|
| limit | integer | Maximum models to return. Results are sorted cheapest-input-first. |
| query | string | Case-insensitive substring to match against the model name, e.g. 'sonnet' or 'gpt-4'. |
| provider | string | Provider slug to filter by, e.g. openai, anthropic, google, aws, azure. |
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 25,
"maximum": 200,
"minimum": 1,
"description": "Maximum models to return. Results are sorted cheapest-input-first."
},
"query": {
"type": "string",
"description": "Case-insensitive substring to match against the model name, e.g. 'sonnet' or 'gpt-4'."
},
"provider": {
"type": "string",
"description": "Provider slug to filter by, e.g. openai, anthropic, google, aws, azure."
}
},
"additionalProperties": false
}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 Dec 4, 2026.