Skip to content
프로젝트

소개

Real-time AI model power rankings (水墨战力榜) — usage, benchmarks, price-performance & speed from OpenRouter, as an ink-wash Streamlit dashboard.

AI 및 머신러닝

이 수치를 측정하는 방법

What you can do

  • 🏆 Usage Top 12 — real token consumption & request counts of the last 24h across 400+ live models, free variants highlighted.
  • 👑 Capability Summary — three leading models for intelligence / coding / agentic tasks (Artificial Analysis).
  • 📐 Dimension Champions — expand the capability section for the full table of development, creative, value-for-money and weekly-riser champions.
  • 💰 Price–Performance scatter — cost per request vs intelligence index, bubble size = usage.

측정된 스타 증가

in 24h
0
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

AI Model Rankings logo

AI Model Rankings

Real-time AI model power rankings on an ink-wash dashboard (水墨风大模型实时战力榜) — usage, benchmarks, price-performance, speed & trends at a glance.

Python Streamlit ECharts Backendless

🌐 Live Demo (ai-model-rankings.streamlit.app)

English | 简体中文 | 日本語

榜如水墨,浓淡随时 — rankings refreshed like ink, every 5 minutes.

📖 Table of Contents

✨ Features

  • 🏆 Usage Top 12 — real token consumption & request counts of the last 24h across 400+ live models, free variants highlighted.
  • 👑 Capability Summary — three leading models for intelligence / coding / agentic tasks (Artificial Analysis).
  • 📐 Dimension Champions — expand the capability section for the full table of development, creative, value-for-money and weekly-riser champions.
  • 💰 Price–Performance scatter — cost per request vs intelligence index, bubble size = usage.
  • ⚡ Speed scatter — P50 latency vs throughput, bubble = request volume.
  • 📈 30-day trend — daily token lines of the top 6 models.
  • 🏢 Vendor share & task spend — weekly market share donut, 30-day spend-by-category donut.
  • 🗂️ Category boards — programming / natural language / long-context / image / tool-call / video boards.
  • 🐎 Dark horses & fresh models — biggest weekly gainers with sparklines; models onboarded in the last 14 days.
  • 🧰 Toolbox — head-to-head model compare (?vs=slugA,slugB), free-variants board, China-vs-global duel, daily price-drop board (git-as-database snapshots), monthly cost calculator.
  • 🔍 Model card — click any model on any board for a full-dimension popup; jump straight into compare.
  • 🖨 Ink stamping — one-click canvas share cards (Top-5 board or single model) in the site's ink-wash style.
  • 🎨 Ink-wash dark UI — Ma Shan Zheng calligraphy, seal stamps, layered mountains; every vendor rendered in its real brand color (Claude orange, GLM blue, OpenAI green…).
  • 🔄 Auto-refresh every 5 minutes, timestamps in the visitor's local timezone.

🧠 How It Works

flowchart LR
    A[OpenRouter public APIs] -->|fetch pool x3 retries| B[Normalize + slug match]
    B --> C[ECharts render]
    C --> D[Ink-wash dark UI]
    D -->|postMessage / frameElement| E[Streamlit iframe auto-height]
    F[Daily CI] -->|costPerRequest snapshot| G[(git: data/snapshots)]
    G -->|diff last two| H[Price-drop board]
  1. The browser fetches 12 public OpenRouter endpoints concurrently (3-way pool, empty-payload & network retries).
  2. Responses are normalized (unwrapping {data:{data:[…]}} variants); dated model slugs are reduced to base slugs to join benchmarks, costs and names.
  3. ECharts renders 7 charts + 2 card grids + 1 table; per-vendor brand colors are applied consistently across all charts.
  4. A daily CI job commits a costPerRequest snapshot into data/snapshots/ — the price-drop board diffs the last two, giving a static site a history without a backend.
  5. app.py embeds the page as a full-width Streamlit component; the page stretches its own iframe to the true content height.

📖 Usage Guide

  • Tokens / Requests — toggle the usage leaderboard metric.
  • Category tabs — switch the category board (编程 / 自然语言 / 长上下文 / 图像 / 工具调用 / 视频).
  • Section navigation / Model lookup — jump to any board from the header; enter a full model name or slug in the usage board and press Enter for details.
  • Toolbox (collapsed by default) — the header shortcut opens the toolbox directly: head-to-head compare with shareable ?vs= URLs, free-models board, China-vs-global duel, price drops, cost calculator.
  • Click any model — full-dimension popup; "加入对比" sends it to the compare tool; "拓印" renders an ink-wash PNG.
  • Hover anything — every chart carries full tooltips (slug, vendor, share, cost, provider).
  • ⟳ 刷新 — force a fresh fetch; data also auto-refreshes every 5 minutes.

📁 Project Structure

ai-model-rankings/
├── app.py                  # Streamlit entry: embeds the page full-width
├── build.py                # index.html → Streamlit inline rewrite (tested in CI)
├── requirements.txt        # streamlit only
├── .streamlit/config.toml  # dark silk theme for Streamlit chrome
├── index.html              # the page itself
├── css/style.css           # ink-wash dark theme
├── js/app.js               # data layer + charts + cards (exposes window.MB)
├── js/tools.js             # toolbox: compare / free / duel / price-drop / calculator
├── js/card.js              # model popup + ink stamp share cards
├── scripts/snapshot.py     # daily costPerRequest snapshot (CI schedule)
├── data/snapshots/         # git-as-database: daily cost history for the price board
├── vendor/echarts.min.js   # vendored ECharts 5.6.0 (no CDN needed, fully offline)
├── logo.svg                # README header logo
├── avatar.png              # 640×640 repo avatar (upload manually in Settings)
├── docs/index.html         # GitHub Pages redirect page
└── docs/perf-baseline.md   # Lighthouse baseline & decisions

🚀 Quick Start

Static version (no dependencies):

python -m http.server 8124
# open http://127.0.0.1:8124

Streamlit version:

pip install -r requirements.txt
streamlit run app.py

🌐 Deployment

Streamlit Community Cloud — fork this repo, then share.streamlit.io → New app → repo Mocas-12/ai-model-rankings, branch main, main file app.py → Deploy. Done.

Any static host — Cloudflare Pages / Vercel / GitHub Pages: upload the folder as-is (everything runs client-side).

🛠️ Customization

  • REFRESH_SEC in js/app.js — auto-refresh interval (default 300 s).
  • PAL — the traditional Chinese pigment palette (花青 / 藤黄 / 石绿 / 紫棠 / 赭石 …).
  • BRAND — official vendor brand colors (Claude orange, GLM blue, OpenAI green…); add an entry to override.
  • CATS — category boards shown in the tabbed section.
  • CN_AUTHORS in js/tools.js — vendor slugs counted as domestic in the China-vs-global duel.

❓ FAQ

Why do some charts occasionally show stale data? OpenRouter edge nodes sometimes answer 200 with an empty body. The app retries 3× and falls back to the last good snapshot cached in sessionStorage.
Why is my favorite model missing from a board? Boards show the current top entries (usage top 12, category top 8). A model with near-zero traffic today simply has no bar yet.
Does it need an API key? No. All OpenRouter endpoints used here are public and CORS-enabled.

📄 License

Released under the MIT License. Rankings reflect real OpenRouter traffic and third-party benchmarks (Artificial Analysis, Design Arena); model names and trademarks belong to their owners. For model selection reference only.


Made with 💙 — 🌐 Live Demo · Issues

관련 프로젝트 살펴보기

불러오는 중…