# Token usage data is missing after "Basic LLM Chain" node

**URL:** <https://community.n8n.io/t/token-usage-data-is-missing-after-basic-llm-chain-node/295819>\
**Category:** Questions\
**Created:** [May 15, 2026, 7:58pm UTC](https://community.n8n.io/t/token-usage-data-is-missing-after-basic-llm-chain-node/295819 "2026-05-15T19:58:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Anshul\_Namdev](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anshul_namdev/32/178229_2.png) [@Anshul\_Namdev](https://community.n8n.io/u/Anshul_Namdev)\
**Post date:** [May 15, 2026, 8:01pm UTC](https://community.n8n.io/t/token-usage-data-is-missing-after-basic-llm-chain-node/295819/3 "2026-05-15T20:01:51Z")

</div>

Hi @Kunwei_TAN, welcome!  
Currently this is a limitation with the basic LLM Chain node.  
There is a possible workaround by using the AI agent node or by retrieving data by the N8N API.

> [@Access an agent's chat model output in subsequent nodes](https://community.n8n.io/t/access-an-agents-chat-model-output-in-subsequent-nodes/116333):
>
> The following is the json output of the chat module of a standard AI Agent node. I’d like the output of my agent to include model\_name and tokenUsage so that the user gets an immediate feedback about the cost of usage per message. How do I access this data? I wasn’t able to find a suitable object in subsequent nodes or even in the system message of the agent node. [ { "response": { "generations": [ [ { "text": "TRUNCATED OUTPUT", "generati…

If you want that kind of information directly, consider using the OpenAI node or Gemini node.

If you want to get the usage by the n8n API, here is the workaround:

> [@How to retrieve used tokens in a node?](https://community.n8n.io/t/how-to-retrieve-used-tokens-in-a-node/263685):
>
> for (const item of $input.all()) { try { // Utilisation de .first() pour forcer n8n à aller chercher les données // dans le nœud Gemini2 peu importe où il se trouve const geminiData = $(‘Gemini2’).first().json; item.json.prompt\_tokens = geminiData.tokenUsage?.promptTokens || 0; item.json.completion\_tokens = geminiData.tokenUsage?.completionTokens || 0; item.json.total\_tokens = geminiData.tokenUsage?.totalTokens || 0; } catch (error) { item.json.prompt\_tokens = 0; item.json.completion\_tok…

---

_[View the full topic](https://community.n8n.io/t/token-usage-data-is-missing-after-basic-llm-chain-node/295819)._
