Apipriceindex

io.github.apipriceindex由 GitHub 帳號 apipriceindex 發布v0.3.0更新於 Oct 29, 2026

Live, verified LLM API prices and deals: free models, discounts, compare, costs, price changes.

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理查詢即時且經核驗的 LLM API 價格、估算成本、比較模型並查看目前優惠。

可以做什麼
  • 依名稱、供應商、上下文視窗、能力、價格或速度搜尋模型
  • 取得單一模型經核驗的輸入、輸出與快取輸入價格,含核驗日期、信心度與來源
  • 估算每月工作負載費用,並依價格由低到高排序模型
  • 列出當日優惠:免費模型、折扣、額度與免費方案,並附結束日期
  • 產生各託管商的報價表,並排比較二到四個模型
  • 依能力分數找出最便宜的模型,並追蹤價格變動與新模型發布
適用情境
適合在挑選 LLM 供應商或模型、為 token 用量做預算、尋找免費或折扣 API 額度,或確認近期價格是否變動時使用。答案來自即時索引,而非訓練資料。
執行需求
以 stdio 在本機執行;需安裝 apipriceindex-mcp 這個 Python 套件,並在 MCP 用戶端註冊 apipriceindex-mcp 指令。需要能連線到價格索引的網路。未宣告帳號、API 金鑰或標頭;選用環境變數 APIPRICEINDEX_URL 可覆寫資料集位址。
安裝前請注意
僅做價格查詢,但每次查詢都會送往第三方索引 apipriceindex.com,因此所查模型對該服務可見。成本估算只算費用,不評價模型品質;Epoch 能力指數是單一第三方評分。索引無法連線時伺服器直接報錯,不會回傳快取價格。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

apipriceindex-mcp

An MCP server that gives any AI agent live, verified LLM API prices — and today's deals.

Ask your assistant "which LLMs are free to call right now?", "what's the cheapest model at least as good as GPT-5.6 Sol?" or "what would 200M input / 15M output tokens a month cost me on Sonnet vs GPT?" and it answers from today's index — every price with its verification date, cross-check confidence and source URL. Data from apipriceindex.com (CC BY 4.0, re-checked daily from each provider's own price list or from OpenRouter's per-provider data; every price names its source in source_url).

Tools

ToolWhat it does
search_modelsFind model ids by name/provider; filter by context window, open weights, max price (input + output), capabilities (tools, reasoning, vision, json) and min speed
get_priceVerified price of one model: input/output/cached input USD per Mtok, verified_at, confidence, source; speed, availability and Epoch score when known; for open-weight models, the weights precision, context and max output the host serves, each with its state, source and date
estimate_costMonthly bill of a workload; ranks chosen models — or the whole catalog — cheapest first
list_dealsModels free to call right now, discounts, free credits and free tiers — each with its end date and official source; filter "ends within N days"
offers_tableEvery host serving one model, with the columns you choose (input, output, cache, discount, speed, first token, uptime, precision, context, max output, verified_at)
compare_modelsTwo to four models side by side: lowest prices and who gives them, providers, fastest host, context, license, Epoch score, monthly cost
cheapest_at_levelCheapest models reaching an Epoch Capabilities Index score — or as good as a model you name
price_changesPrice drops and rises over the last N days, and the models released in that time

Install

pip install apipriceindex-mcp

Claude Code / Claude Desktop:

claude mcp add apipriceindex -- apipriceindex-mcp

Or in any MCP client config:

json
{ "mcpServers": { "apipriceindex": { "command": "apipriceindex-mcp" } } }

Behavior

  • Data is fetched live from the index (15-minute in-memory cache) — never stale training data.
  • Index unreachable → explicit error. No cached or invented price is ever served silently.
  • Index older than 14 days → answers still come, with a warning pointing at the index's health endpoint.
  • Model not tracked → says so, links the dataset. No price invented.
  • Cache discount only where the provider publishes a cached-input price.
  • Deals always carry an end date — no end date when the host publishes none — and the link to the host's own page.
  • Speed and availability are read from OpenRouter and always come with their window (median over 30 minutes, share of successful requests over 24 hours). No tail latency or error rates.
  • What a host serves (weights precision, context, max output) is read at the host's own catalogue or docs where its terms allow, otherwise as the host declares to OpenRouter. Each value carries its state: published, not_stated (the host's source does not state it), not_read (the host's terms forbid automatic reading and OpenRouter has no value) or to_check. Nothing is guessed.
  • One third-party score: the Epoch Capabilities Index by Epoch AI (CC BY 4.0). Every answer that carries it carries its credit. Otherwise, cost only: the index does not rank model quality.

Environment: APIPRICEINDEX_URL overrides the dataset URL (testing); deals.json and pricing-history.csv are read next to it.

Changelog

  • 0.3.0 — What each host serves of an open-weight model: get_price returns served.precision, served.context and served.max_output, each with its state, source and date, and the maker's values in served.maker; offers_table takes precision and max_output columns, and an empty served cell comes with <column>_state. Other answers unchanged.
  • 0.2.1 — get_price and this README now say where prices are read: each provider's own price list, or OpenRouter's per-provider data, named by source_url. They said "official pricing pages", which was true of about one price in four. No change to the tools or their answers.
  • 0.2.0 — list_deals, offers_table, compare_models, cheapest_at_level, price_changes; search_models filters by max price, capabilities and min speed; Epoch score, speed and availability where known. The three 0.1 tools answer as before.
  • 0.1.1 — search_models, get_price, estimate_cost.

License

Code: MIT. Price data: CC BY 4.0, attribution "API Price Index". Epoch Capabilities Index: CC BY 4.0, credit Epoch AI.

來源:README.md,提交 96d56c5

工具

8

search_models

Search the API Price Index for LLM API endpoints by name, id or provider. Returns matching models with their `id` (use it with get_price / estimate_cost / offers_table), provider, context window and USD prices per million tokens. Optional filters: provider slug (e.g. 'openai'), minimum context window, open-weights only, max_price (input + output USD per million tokens), capabilities (any of tools, reasoning, vision, json — as declared by the host), min_speed (output tokens per second, OpenRouter median over 30 min). An empty query lists everything that passes the filters.

輸入參數query必填providermax_pricemin_speedmin_contextcapabilitiesopen_weights

get_price

Get the verified price of one model (USD per million tokens). Returns input/output/cached-input prices with verification date, cross-check confidence and source URL. Prices are re-checked daily, from each provider's own price list or from OpenRouter's per-provider data; source_url says which. For open-weight models, served.precision, served.context and served.max_output say what this host serves, each with its state (published, not_stated, not_read, to_check), source and date. Data: apipriceindex.com, CC BY 4.0.

輸入參數model_id必填

estimate_cost

Estimate the monthly USD bill of a workload and rank models by cost. Give monthly volumes in millions of tokens (input and output) and an optional share of input served from cache (0-100). Ranks the given model ids — or the whole catalog — from cheapest to most expensive. Cost only: this tool does not rank model quality.

輸入參數modelscache_pctinput_mtok必填output_mtok必填

list_deals

List today's LLM API deals: models free to call right now, discounts, free credits and free tiers. kind: all, free, discount or credits. ending_within_days: only deals whose host-published end date falls within that many days (e.g. 2 for "what ends tomorrow?"). Every deal carries its end date ("no end date" when the host gives none), its official source and the date it was checked. Free models are read every morning from OpenRouter, host pages twice a day.

輸入參數kindending_within_days

offers_table

Every host serving one model, as a table with the columns you choose. model: a model id, base model or name (find it with search_models). columns: any of input, output, cache, discount, speed, first_token, uptime, precision, context, max_output, verified_at (default: input, output, cache, speed, uptime, verified_at). Rows are sorted cheapest first. Speed and uptime come from OpenRouter with their window; prices from each host's source; precision, context and max_output from the host's own catalogue or docs where its terms allow, otherwise from OpenRouter, and an empty one comes with <column>_state saying why.

輸入參數model必填columns

compare_models

Compare two to four models side by side. For each: lowest input, output and cached-input price with the provider that gives it, number of providers, fastest provider (OpenRouter median), context window, license, Epoch Capabilities Index score; `best` names the winner of each row. Give monthly volumes (millions of tokens) to add the monthly cost at each model's cheapest provider.

輸入參數models必填cache_pctinput_mtokoutput_mtok

cheapest_at_level

Cheapest models that reach a given intelligence level. Level = Epoch Capabilities Index score (Epoch AI, CC BY 4.0): pass min_score, or as_good_as a model to use its score. Returns the cheapest models at or above it (lowest input + output price among their providers), optionally open weights only.

輸入參數limitmin_scoreas_good_asopen_weights

price_changes

Price drops and rises over the last N days, and the models released in that time. direction: all, drops or rises. Each change compares the last recorded price before the period with today's (input + output per million tokens). New models come with their cheapest provider.

輸入參數daysdirectioninclude_new_models

版本歷史

3
  1. v0.3.0最新Oct 26, 2026
  2. v0.2.0Oct 21, 2026
  3. v0.1.1Sep 16, 2026

評分

已滿足適用檢查項的 90%

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

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分