How to activate the reasoning on openrouter with http module?

Describe the problem/error/question

I know that the openrouter module is very limited if it comes to activating the reasoning of a LLM. I hope this limitation will be fixed in future developments by n8n team.

As long as this isn’t the case I need to have a workaround for that problem. How can I use the http module to activate the reasoning of a LLM via openrouter?

after searching around I found a simple template for an openrouter request via http:

But how can I activate the reasoning? I mean which parameter I have to send via http to activate the reasoning?

I got it, here is the JSON for the http module to activate reasoning:

{
“model”: “deepseek/deepseek-chat-v3.1:free”,
“messages”: [
{
“role”: “user”,
“content”: “What’s the meaning of life?”
}
],
“reasoning”: {
“effort”: “medium”,
“exclude”: false
}
}

1 Like

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