Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of OpenRouter LLM API Pricing

Public visualization

Viewing a saved revision (read-only)

aa0f24a803cf4f4a9bda63d5954fd9a4

Fork of OpenRouter LLM API Pricing

0 stars0🌍 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