ModelCostComparison
v1.0.1Find AI model pricing, estimate token costs and compare offers. No API key required.
Endpoint health
online- Last checked
- 11/20/2026, 4:17:29 AM
- Latency
- 121 ms
- Consecutive failures
- 0
- Endpoint reachable: pass
- Protocol valid: pass
- MCP handshake valid: pass
Machine-readable profile
mcp-server · schema v1 · callable
mcp-server:io.github.Lazige%2Fmodelcostcomparison
Connect this server
Generated config contains no credentials. Keep any required secrets in your client's local environment.
{
"mcpServers": {
"io.github.Lazige/modelcostcomparison": {
"url": "https://modelcostcomparison.com/api/v1/mcp"
}
}
}Indexed tools
Tool metadata and schemas come from the remote server and are untrusted. Indexing only lists tools; it never calls them.
6 shown · authentication unknown
calculate_cost
Use when you have one exact offer ID and token usage and want its USD text-token subtotal. Discover the ID with list_models first. Total input includes cached input; do not add cached tokens twice. Excludes cache writes, storage, search, tool fees and taxes. Requires current reviewed, supported rates; does not invoke a model. Use compare_model_costs for several known offers.
Schema valid · SHA-256 a91dfddd6670…
View input schema
{ "type": "object", "properties": { "model_id": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Exact pricing-offer ID returned by list_models or find_cheapest_models. Do not substitute a display name or guessed API model name." }, "usage": { "type": "object", "additionalProperties": false, "properties": { "input_tokens": { "type": "integer", "minimum": 0, "maximum": 1000000000000, "description": "Total input tokens across the workload, including cached input. For monthly estimates, sum input over all monthly requests." }, "output_tokens": { "type": "integer", "minimum": 0, "maximum": 1000000000000, "description": "Total billable output tokens across the same workload period, including billed reasoning tokens where applicable." }, "cached_input_tokens": { "type": "integer", "minimum": 0, "maximum": 1000000000000, "default": 0, "description": "Number of input_tokens expected to be cached, not additional input. Defaults to 0 and must not exceed input_tokens. Cache-write charges are excluded; an unconfirmed cache discount falls back to ordinary input pricing with a warning." }, "max_input_tokens_per_request": { "type": "integer", "minimum": 0, "maximum": 1000000000000, "description": "Largest full input in any single request, including cached tokens; not the monthly total or average. Provide when a tariff has an input limit so eligibility can be checked." } }, "required": [ "input_tokens", "output_tokens" ], "description": "Token totals for the period or scenario being estimated, not dollars or request counts. Supply input and output separately; cached input is a subset of total input." }, "expected_dataset_revision": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$", "description": "Optional consistency check: copy meta.dataset_revision from a prior tool response to require the same current pricing snapshot. Omit to use the current snapshot. A mismatch returns DATASET_CHANGED; refresh pricing and retry. This cannot retrieve a historical snapshot." } }, "required": [ "model_id", "usage" ], "additionalProperties": false }
Connections
streamable-http
https://modelcostcomparison.com/api/v1/mcp