OpenRouter LLM API Pricing
This visualization compares LLM API pricing from OpenRouter, showing the completion cost per million tokens for various models as horizontal bars. Each bar is colored by the model's author, with well-known organizations like OpenAI, Anthropic, and Google distinguished from others. The chart filters out free, beta, and dated models to focus on current paid offerings. The visualization uses D3.js with a linear scale for the x-axis and band scale for model names. A custom `selectTicks` algorithm intelligently places axis tick marks to avoid overcrowding. Model authors are mapped to a Tableau10 color scale, with a color legend showing the mapping. The data comes from OpenRouter's model documentation.
AI-generated descriptionLLM Model pricing data from https://openrouter.ai/docs/models