Skip to main content
100%

Fork of OpenRouter LLM API Pricing

✓ Published0🌍 Public
NNita
Last edited Jul 19, 2025
Created on Jul 19, 2025

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 description
MIT Licensed

Similar vizzes