When we started drafting this announcement, OpenRouter was still an independent company. Regardless of who owns it, the value proposition for users of OpenRouter (us included) remains the same.
Multi-model routing is an incredible tool in a world where there is a new model release every other month. It is only fair that many teams want the best of all worlds without wiring a new provider every time the leaderboard moves.
Today we are launching support for OpenRouter, in a similar fashion to the other providers released this week.
You can now ingest OpenRouter usage and analyze your model spend alongside cloud, Kubernetes, and database costs. For providers who serve models through OpenRouter, CostGraph can break that spend down by model, upstream provider, and endpoint, so you can see whether a request actually landed on OpenAI, Anthropic, Azure, or Bedrock without keeping a separate spreadsheet for the gateway.
OpenRouter support is available on all CostGraph plans. To connect an account, open Settings -> Integrations, select OpenRouter, and provide a management key plus your organization ID.
If this sounds useful, get started for free or book a demo today.
Frequently Asked Questions
What is being launched?
CostGraph now supports importing and visualizing OpenRouter billing data.
Customers can view OpenRouter model spend alongside their cloud, Kubernetes, PlanetScale, and other infrastructure costs within CostGraph.
Who can use the OpenRouter integration?
The OpenRouter integration is available to customers on all CostGraph plans.
How does the integration work?
CostGraph connects to OpenRouter using a management key. It reads the Activity API once a day, then normalizes credit spend into the same FOCUS-based cost model used for other providers.
Each charge is one record per UTC day, model, upstream provider, and endpoint.
What permissions does CostGraph require?
CostGraph requires an OpenRouter management key and your organization ID.
A normal inference key (sk-or-v1-) is not enough. OpenRouter only allows management keys to read activity data.
CostGraph cannot change routing, run inference, or access prompt contents. Revoke the key in OpenRouter at any time and the connection stops.
What OpenRouter cost details are available?
OpenRouter costs include the model, upstream provider, endpoint, request count, and token counts when that information is available.
This makes it possible to compare spend across models and the providers serving them, then view that spend alongside the rest of an application's infrastructure.
How frequently does OpenRouter cost data refresh?
CostGraph checks for updated OpenRouter activity once a day.
OpenRouter attributes usage to UTC days, and CostGraph skips the current incomplete day. Wait about 30 minutes past a UTC day boundary before expecting that day's spend to appear.
How much historical usage data is imported?
OpenRouter's Activity API only returns the last 30 completed UTC days. CostGraph imports that window when the integration is first connected, then continues pulling new completed days.
Dates older than that window are not available from OpenRouter.
How is BYOK spend handled?
Bring-your-own-key spend is kept out of billed cost.
If a request routed through your own OpenAI or Anthropic key, OpenRouter did not bill it. Including that amount would double-count against a direct provider integration. CostGraph still keeps the BYOK usage visible, separately from what OpenRouter actually charged.
Are OpenRouter deposit fees included?
No. Reported billed cost is inference credit spend only.
OpenRouter also charges a deposit fee on credit top-ups, but the Activity API does not expose those fees. Until OpenRouter provides a transactions endpoint, CostGraph cannot report them without inventing numbers.
Can CostGraph split input and output token cost?
Not from this source. OpenRouter reports one usage figure per model, provider, and day.
Prompt, completion, and reasoning token counts are still imported, but the dollar amount is not split across token buckets.
Does CostGraph provide optimization recommendations for OpenRouter?
CostGraph shows where model spend is going by model, upstream provider, and endpoint. That is usually enough to see which routes are driving cost.
Rightsizing-style recommendations, the kind we generate for VMs and managed databases, are not part of this launch.
