How to get the number of tokens from openai node

Hi Team,

I’m looking how we can access to the logs of an openai node ? I want the number of token used after a call to updated on my side the number of tokens used.

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:

Hello, if I’m not mistaken, if you use the OpenAI node in n8n, the output will not give you the number of tokens used, so you will have to use a normal HTTP request directly to OpenAI, you can use the “Custom Api Call” option of the openai node.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.