#Model costs endpoint broken down per provider
9 messages · Page 1 of 1 (latest)
Thank you! I will check it out. At first glance, it looks like it’s fetching one model at a time. Do you have a way to fetch all the providers for all the models in one request?
nope!
Would you consider showing the pricing per model on the models endpoint? We were using it at PostHog as the source of truth for LLM prices, but have had to switch to using Helicone’s endpoint, since we needed a breakdown per provider.
Given how many models/providers combinations there are, I’m not sure how realistic it is to make a call to that endpoints endpoint for every model is.
I’m asking because we’d love to switch back to using OpenRouter’s data for LLM pricing
oh i'm not openrouter staff, i just answered your question because i'm been doing this lately while building my own tool for aggregating the data. there are currently 325 models/variants, so that many endpoint calls. https://orchid-three.vercel.app/endpoints
you'd probably get a quick response if you emailed support@openrouter.ai
View and compare AI model endpoints available through OpenRouter
so is the best way to do it just akin to getAllModels().map(modelName=>getEndpointsForModel(modelName)) ?
that's what i do! you can actually do it pretty quickly