Fork of OpenRouter LLM API Pricing
✓ Published0🌍 Public
This horizontal bar chart compares completion costs for LLM models from OpenRouter, priced per million tokens, using a quantile color scale to categorize models into budget, standard, and premium tiers. It uses D3’s `scaleBand`, `scaleLinear`, and `scaleQuantile` to position bars and compute tiers, while `colorLegend.js` builds a legend with `scaleOrdinal` and `schemeTableau10` for provider colors. The `selectTicks.js` module implements a custom tick-selection algorithm for the x-axis, and tooltips reveal model details. Data comes from the included `data.csv` file.
AI-generated descriptionMIT Licensed