跳到正文
GitHub·· 7 天前AI 评分58

llm-latency-tracker 开源:跨区域测量 AI API 延迟并发布开放数据

mazamaka/llm-latency-tracker

AI 导读

mazamaka/llm-latency-tracker 开源,用于跨区域测量 AI API 延迟与可用性并发布为开放数据。最新 2026-10-11 快照覆盖 4 个区域、46 家 AI 推理供应商,Asia(Tokyo)与 Europe(Germany)最快供应商均为 fireworks,p50 分别为 19 ms 和 99 ms,Uptime 均为 100%。

正文

Measure AI API latency and uptime across regions, and publish the results as open data.

🌐 Live rankings · JSON API · MCP endpoint

⚡ What it does

  • 🌍 Regional measurements — compare provider response times and availability from distributed probe nodes.
  • ⏱️ Two probe types — network time to first byte (TTFB) and optional inference time to first token (TTFT).
  • 📈 Open dataset — daily rankings, historical snapshots and regional p50 / p95 statistics.
  • 🤖 Agent access — JSON API, MCP, Markdown pages and an llms.txt index.
  • 🗓️ Model lifecycle — a deprecation calendar with links to provider announcements.

🔧 Built for measurement

  • Python standard-library core for edge probes; provider keys are needed for inference probes.
  • SQLite storage and regional aggregation, with remote nodes shipping measurements to a central node.
  • Static publishing for the website and JSON datasets.
  • CI checks for tests and linting; published snapshots include their measurement date.

Reading the results: edge TTFB measures network/API responsiveness, not model generation speed. Compare it separately from inference TTFT; results depend on region, probe type and time window.

🚀 Quick start

Use the public data without installing anything:

curl https://llmlatency.dev/api/rankings.json

Or run edge probes locally with Python 3.12+:

git clone https://github.com/mazamaka/llm-latency-tracker.git
cd llm-latency-tracker
REGION=local python3 run.py
python3 aggregate.py --region local

For a local stdio MCP server over the published API (stdlib only, no keys):

python3 mcp_server.py

Tools: get_ai_api_latency (provider leaderboard per region), get_provider_latency (one provider across regions), get_model_deprecations (model shutdown calendar), get_coding_agent_health (Claude Code / Codex speed and accuracy drift). All read-only.

Inference probes, API access & site generation → · Deployment →

🧪 Contributing

Add a provider, bring a new probe region, or improve the measurement code. See CONTRIBUTING.md for setup and checks.


Python · SQLite · JSON API · MCP · Cloudflare Pages

Code: MIT · Data: CC-BY-4.0, with attribution to llmlatency.dev.

📈 Latest daily snapshot

Daily snapshot — 2026-10-11

Measured latency across 46 AI inference providers in 4 regions. Method: distributed edge (DNS→TCP→TLS→TTFB) + inference (TTFT) probes, last 24h. License: CC-BY-4.0.

Region Fastest provider (p50) p50 p95 Uptime
Asia (Tokyo) fireworks 19 ms 62 ms 100%
Europe (Germany) fireworks 99 ms 200 ms 100%
South America (São Paulo) openrouter 60 ms 96 ms 100%
US (Central) fireworks 28 ms 82 ms 100%

Snapshot generated 2026-10-11T07:22:11Z — this table is regenerated daily.

来源:GitHub · github.com