How can I access the token usage metadata returned by an LLM for a specific request and pass it to subsequent nodes in n8n for further processing, such as tracking token consumption, calculating costs, and maintaining usage logs?

Hey @AstralVyom, while you wait for a response, here are some things that might help:

Suggested resources

Automatically matched to your question.

Docs:

Forum:

@Mayank1024, @mohamed3nan, @jcuypers - you’ve helped with similar issues before, can you take a look?

Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.