InferCPI

com.infercpi由 infercpi.com 發布官方發布者v1.0.0更新於 Oct 29, 2026

AI inference price index: token prices, cost per capability, open vs closed, hosts, cost per task.

已驗證Streamable HTTP可網頁執行金融資料與分析AI 與機器學習

概覽

AI 產生的概覽

唯讀 MCP 伺服器,提供 InferCPI 的 AI 推論價格指數:token 價格、單位能力成本、開源與閉源比較、託管商及單一任務成本。

可以做什麼
  • 讀取各指數序列的最新值、編輯說明與授權署名列
  • 瀏覽序列目錄,並取得單一序列的完整每週歷史
  • 查看本週定價模型清單,以及依模型名稱查詢混合標價
  • 列出已定價事件,例如發布、降價、漲價與下架
  • 在相同能力水準下比較開源與閉源模型,並估算自建部署與 API 的成本
  • 查看每日速度測試與每月單一任務完成成本
適用情境
適合比較 AI 模型或 API 價格、追蹤價格隨時間的變化、在特定能力水準下權衡開源與閉源模型,或評估自建部署是否比按 token 付費更划算。
執行需求
遠端 streamable HTTP 端點位於 infercpi.com,不需金鑰或帳號。可選的自架 Python 腳本需要 Python 與 mcp 套件,預設讀取 infercpi.com,可用 INFERCPI_BASE 指向其他位址。
安裝前請注意
十個工具皆為唯讀,資料免費並以 CC BY 4.0 授權釋出,應引用 index_latest 回傳的授權列。速度與單一任務成本為提供方自行量測,指數彙整了 LiteLLM、Epoch AI、OpenRouter 與 SEC 文件等第三方來源。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 InferCPI,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.infercpi%2Fapi/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "infercpi": {
      "type": "http",
      "url": "https://infercpi.com/mcp"
    }
  }
}

README

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.

FileWhat
latest.jsonLast value of every series, plus the weekly editorial note
index.jsonCatalogue of every series: point count, dates, method string, URL
series/<signal>/<key>.jsonFull history: points: [[unix_ts, value], ...] and method
basket.jsonEvery model priced this week: input, output and blended $/1M, context, Epoch ECI, open or closed
events.jsonLaunches, price cuts, increases and removals since Sep 2023
speed.jsonOur daily speed run: time to first token, tokens per second
token_mix.jsonTokens routed through OpenRouter per week, by lab and region
capex.jsonHyperscaler capex, chip and cloud revenue by quarter (SEC filings)
bash
curl -s https://infercpi.com/v1/latest.json | jq '.latest["weighted_index/paid_usd_1m"]'

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).

bash
claude mcp add --transport http infercpi https://infercpi.com/mcp   # Claude Code

Claude.ai and Claude Desktop: Settings → Connectors → Add custom connector, paste the URL.

Or run it yourself:

bash
mkdir -p ~/.local/share/infercpicurl -so ~/.local/share/infercpi/mcp_server.py https://raw.githubusercontent.com/Infer-CPI/api/main/mcp_server.pypip install mcp                                       # mcp 1.x or 2.x both workclaude mcp add infercpi -s user -- python3 ~/.local/share/infercpi/mcp_server.py   # Claude Codepython3 ~/.local/share/infercpi/mcp_server.py --http  # or: streamable HTTP on :8765

Claude Desktop (claude_desktop_config.json):

json
{ "mcpServers": { "infercpi": { "command": "python3", "args": ["/home/YOU/.local/share/infercpi/mcp_server.py"] } } }

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.

來源:README.md,提交 1e7403e

工具

10

index_latest

Latest value of every index series (list-price chained/composition/hedonic, usage-weighted paid price, Törnqvist, OpenRouter shares, TPI replica) with dates, the latest editorial note, and the licence/attribution line. Start here.

無需輸入參數。

index_series

Full weekly history of one series as [[unix_ts, value], ...] plus its method string. signal: price_index | weighted_index | or_rankings | implied_margin | self_host | task_cost | hf_downloads | gpu_spot | gpu_neocloud | aws_gpu | speed | hyperscaler_capex | seller_revenue | cloud_revenue | token_price ... key: see index_catalogue. since: optional ISO date to cut the history.

輸入參數key必填sincesignal必填

index_catalogue

Every series the index publishes: signal/key, point count, first and last date, method string.

無需輸入參數。

basket

Every model priced in this week's list-price index: provider, blended $/1M (0.75 in + 0.25 out), Epoch capability score where matched.

無需輸入參數。

events

Priced events in first-party price lists, newest first: launch, price_cut, price_increase, removed, each with key, provider, old/new blended $/1M and pct. since: ISO date; kind: filter to one kind.

輸入參數kindsince

speed

Latest daily speed run, measured by the index: per model and route (openrouter default routing, openrouter_pinned to the first-party host, anthropic and openai direct), median time to first token (ms), visible output tokens per second, host that served it. Same prompt every day.

無需輸入參數。

model_price

Blended list $/1M for one model by any common name ('Claude Opus 5.5', 'anthropic/claude-opus-5.5', 'gpt-5.5'); matches by the index's name normaliser and returns every basket entry that matches.

輸入參數name必填

open_vs_closed

Cheapest blended $/1M at each capability level (Epoch ECI 130/145/160) for closed models, open models at their lab's price and open models at the cheapest third-party host; the open discount; DeepSeek's floor lift (cheapest price without DeepSeek / cheapest overall, at lab and at host prices); and the host discount per open model (lab price / cheapest host).

無需輸入參數。

self_hosting

What it costs per 1M tokens to leave the APIs: desk boxes (Mac Studio lease, RTX 5090 bought) at full and 25% duty, H100 rented by source (Vast, AWS, RunPod, CoreWeave, Lambda, Nebius) and owned, against the API price of the same open model and of the cheapest closed model at equal capability; break-even volume and how far hardware cost must fall. Plus posted GPU-hour prices and Hugging Face download counts.

無需輸入參數。

cost_per_task

Monthly measurement: dollars and tokens per completed task for the most-used models (fixed 8-task suite via OpenRouter at default settings, charged cost), reasoning share of output tokens, accuracy, and medians.

無需輸入參數。

版本歷史

1
  1. v1.0.0最新Oct 29, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。