Get token and cost stats for a generation
One step with OpenRouter. We can help you get access.
Look something up
Get token and cost stats for a generation
with OpenRouter
Use OpenRouter: its OpenRouter Generation API lets you get token and cost stats for a generation in a single step (GET /generation). capabilities.work can help you get signed up and connected.
- How many tokens did a completed generation use and how much did it cost?
- Can I see cached and reasoning token counts for a generation?
Say it to your AI assistant
- Get generation stats for {id}.
- Show token counts and cost for generation {id}.
For your developer
GET /generation in OpenRouter Generation API. Full spec on APIs.io.