Replies: 3 comments
-
|
This is a confirmed bug in Dify v1.9.1: the backend summary API omits token fields ( To resolve: upgrade to Dify v1.9.2 or later. If you can't upgrade, you can patch your backend to include these token fields in the summary API response (see If you use plugin-based or custom models, make sure your model/plugin supplies usage data and that any required flags (like If token counts are still zero after these steps, check your workflow execution and model/plugin integration for deeper issues. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
Do you want to modify the YAML file? Or some other file? Is it effective to modify the YAML file? |
Beta Was this translation helpful? Give feedback.
-
|
If you're having trouble tracking real-world token costs per conversation, I highly recommend using a routing proxy that provides granular telemetry. I've been using ClawRouter (https://github.com/BlockRunAI/ClawRouter) in front of my agent setups. It not only routes requests based on complexity to save costs (up to 92% in my tests), but it also gives you a very clear breakdown of token usage and savings for every single model call. It’s been much more reliable for cost management than relying on the built-in dashboards of many frameworks. Plus, the x402 payment system means you can track exactly how much each specific 'agent turn' costs in real USDC. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
The token usage always shows as 0. Now, every time we make a query, the displayed token count is 0. But I want it to show how many tokens are used for each conversation. What should I do? Is this a bug in version 1.9.1dify?
2. Additional context or comments
!

![Uploading 屏幕截图 2025-11-10 091710.png…]()
Beta Was this translation helpful? Give feedback.
All reactions