AI Nodes - Use token consumption in flow?

Hey everyone,

I’m working on a post-call workflow for an AI phone call and want to track how many tokens I’m using to analyze transcripts. This will help me calculate the total cost per call accurately.

With the regular OpenAI node or a custom HTTP request, I can see the token usage and use that data. For AI nodes like the Information Extractor, I can see the token usage when I click into the Logs, but I can’t use that in the flow.

Is there any way to pull token usage directly from these nodes to use within the flow?

Thanks in advance!

1 Like

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Bryce_Claudin,

There isn’t at the moment but that sounds like it would make a great feature request.

I am going to move this to the feature request category for future consideration.

2 Likes

thank you! I want to be able to track my costs at every single step.

2 Likes

@Jon any updates on this clear AI Token Usage Cost Calculation feature? Would love to have this in-built in my Ai workflows soon too to view cost per workflow

1 Like