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

EndpointMethodReturns
/api/v1/datasetGET Full snapshot: meta, FX rates, providers, all endpoints (JSON)
/api/v1/dataset.csvGET Flat one-row-per-endpoint CSV, UTF-8 with BOM
/api/v1/catalogGET Filterable current offers. Query: q, provider, route_type, exclude_stale, limit
/api/v1/calculatePOST Exact workload estimate for one endpoint
/healthGET 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.

ToolArgumentsPurpose
search_modelsquery, limitFind models by name, developer or endpoint ID
get_model_pricingmodel_slugAll verified endpoints and prices for a model
find_cheapest_provideruse_case, min_context, require_toolsCheapest fresh paid realtime chat endpoints for a workload
compare_providersendpoint_slugs[]Side-by-side metric comparison
estimate_workload_costendpoint_slug, requests_per_day, input_tokens, output_tokens, …Exact monthly/daily/per-request cost
get_price_historymodel_slugRecorded observations and detected price events
get_free_models—Confirmed $0.00 endpoints
get_latest_price_dropslimitMost 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.

Prefer a bulk download?

The whole snapshot is available as JSON and CSV, including modality and billing-mode labels.