I like to include the tokens consumed when generating / edit images via OpenAI API in the *token* eval metrics [GOT CREATED]

It would help if there was a node for:

The node type OpenAI already exists but if you use it to generate or edit images, it does not report the input or output tokens as metrics, making evals not showing up the actual costs

My use case:

I am testing various OpenAI image generation models and parameters with evaluations. The prompt_tokens and totalTokens metrics stay empty though as only for text based generation those information from the OpenAI metrics are passed to the eval metrics.

Any resources to support this?

See fix(OpenAI Node): Report token usage for image operations by jonico · Pull Request #38463 · n8n-io/n8n · GitHub with a use case and how to reproduce

Are you willing to work on this?

Yes, here is the PR including test cases: fix(OpenAI Node): Report token usage for image operations by jonico · Pull Request #38463 · n8n-io/n8n · GitHub

New version n8n@2.45.0 got released which includes the GitHub PR 38463.