Free Read-Only LLM Pricing API & MCP Server
No API key required. Rate limited to 30 requests/minute per IP. Please cache locally. All responses carry source URLs and UTC verification timestamps.
REST endpoints
| Endpoint | Method | Returns |
|---|---|---|
| /api/v1/dataset | GET | Full snapshot: meta, FX rates, providers, all endpoints (JSON) |
| /api/v1/dataset.csv | GET | Flat one-row-per-endpoint CSV, UTF-8 with BOM |
| /api/v1/catalog | GET | Filterable current offers. Query: q, provider, route_type, exclude_stale, limit |
| /api/v1/calculate | POST | Exact workload estimate for one endpoint |
| /health | GET | Catalog counters and last verification time |
Example: estimate a monthly bill
curl -s https://pricetora.com/api/v1/calculate \
-H 'Content-Type: application/json' \
-d '{
"endpoint_slug": "openrouter-deepseek-deepseek-v4-1-flash",
"requests_per_day": 2000,
"active_days": 30,
"input_tokens": 3000,
"output_tokens": 600,
"cache_read_pct": 40,
"cache_write_pct": 5,
"retry_rate": 0.03,
"currency": "MYR"
}'
The response includes incomplete and missing_components. If a required rate is unpublished,
the estimate is flagged instead of silently assuming zero.
MCP server (Model Context Protocol)
A read-only MCP server is included in the project repository under mcp/pricetora_mcp/.
It speaks JSON-RPC over stdio and exposes the pricing index to any MCP-compatible client.
| Tool | Arguments | Purpose |
|---|---|---|
| search_models | query, limit | Find models by name, developer or endpoint ID |
| get_model_pricing | model_slug | All verified endpoints and prices for a model |
| find_cheapest_provider | use_case, min_context, require_tools | Cheapest fresh paid realtime chat endpoints for a workload |
| compare_providers | endpoint_slugs[] | Side-by-side metric comparison |
| estimate_workload_cost | endpoint_slug, requests_per_day, input_tokens, output_tokens, … | Exact monthly/daily/per-request cost |
| get_price_history | model_slug | Recorded observations and detected price events |
| get_free_models | — | Confirmed $0.00 endpoints |
| get_latest_price_drops | limit | Most recent verified price changes |
Install & run
git clone <your-repo> pricetora
cd pricetora/mcp
pip install -r requirements.txt
# stdio transport (what MCP clients expect)
python3 -m pricetora_mcp.server
Client config example (Claude Desktop / compatible):
{
"mcpServers": {
"pricetora": {
"command": "python3",
"args": ["-m", "pricetora_mcp.server"],
"cwd": "/absolute/path/to/pricetora/mcp"
}
}
}
Scope: this API and MCP server are read-only. There is no write path, no account creation, and no personal data is collected by API calls.
Attribution under CC BY 4.0 applies to redistributed datasets.