n8n - 💡(How to fix) Fix Open router model not returning cache and thinking tokens [4 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
n8n-io/n8n#28624Fetched 2026-04-18 05:57:04
View on GitHub
Comments
4
Participants
3
Timeline
9
Reactions
0
Author
Timeline (top)
commented ×4mentioned ×2subscribed ×2labeled ×1
RAW_BUFFERClick to expand / collapse

Bug Description

I'm using Open router model node, set to x-ai/grok-4.1-fast and only returns completion, prompt and total tokens in tokenUsage

To Reproduce

Create AI Agent with Open router model

Expected behavior

only returns completion, prompt and total tokens in tokenUsage

Debug Info

only returns compleetion, prompt and total tokens in tokenUsage

Operating System

Ubuntu

n8n Version

2.15.1

Node.js Version

24

Database

PostgreSQL

Execution mode

main (default)

Hosting

self hosted

extent analysis

TL;DR

The issue might be related to the specific configuration of the Open router model node, which only returns limited information in the tokenUsage output.

Guidance

  • Verify the configuration of the Open router model node, specifically the x-ai/grok-4.1-fast model, to ensure it is set up correctly.
  • Check the documentation for the x-ai/grok-4.1-fast model to see if it has any known limitations or restrictions on the output it provides.
  • Test the node with a different model to see if the issue is specific to the x-ai/grok-4.1-fast model.
  • Review the node's implementation to ensure it is correctly handling the output from the model.

Notes

The issue may be specific to the x-ai/grok-4.1-fast model or the way it is configured in the Open router model node. Without more information about the node's implementation or the model's documentation, it is difficult to provide a more specific solution.

Recommendation

Apply workaround: Try using a different model or configuration to see if the issue is specific to the current setup, as the x-ai/grok-4.1-fast model may have limitations on its output.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

only returns completion, prompt and total tokens in tokenUsage

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING