InferCPI API
InferCPI tracks what AI inference costs: list prices, what buyers actually pay, the cost of a fixed level of capability, open vs closed models, third-party hosts, self-hosting, and cost per completed task. Site: https://infercpi.com.
This repo holds the public API docs, examples and the MCP server. The data is free, needs no key, and is licensed CC BY 4.0: cite as InferCPI, infercpi.com.
API
Static JSON at https://infercpi.com/v1/. Full reference: https://infercpi.com/api.html.
More in examples/.
MCP server
mcp_server.py gives agents ten read-only tools over the API: index_latest, index_series, index_catalogue, basket, model_price, events, speed, open_vs_closed, self_hosting, cost_per_task.
Hosted, no key: https://infercpi.com/mcp (streamable HTTP).
Claude.ai and Claude Desktop: Settings → Connectors → Add custom connector, paste the URL.
Or run it yourself:
Claude Desktop (claude_desktop_config.json):
It reads https://infercpi.com by default; set INFERCPI_BASE to point elsewhere.
Method and sources
How every series is built: https://infercpi.com/methodology.html. Inputs: LiteLLM and pydantic/genai-prices (MIT), Epoch AI Capabilities Index (CC BY 4.0), OpenRouter rankings (CC BY 4.0), SEC filings (public domain). Speed and cost per task are our own measurements.
Licence
Code in this repo: MIT. Index data: CC BY 4.0. Questions, corrections or a series you need: open an issue.