AI Agent Giving error: no auth credentials found using open router

Hey, I am using AI agent node, with chat model as openAI chat model. I am using open router model with api key and correct base url which got successfully connected in credentials.
Now the problem is when I am executing my node I am getting no auth creds found

Information on your n8n setup

  • n8n version:1.95.1
  • Database (default: SQLite):N/A
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):cloud
  • Operating system:Linux

mode I am selecting using id as expression: deepseek/deepseek-r1-0528-qwen3-8b:free

Following is my json workflow

Hey @Aman,

Instead of openai node, try to use openrouter node. see if it works for you.

See below :point_down:

It is working with openAI models, getting error when I am choosing deepeeek models
error: No endpoints found that support tool use. To learn more about provider routing, visit: Provider Routing | Intelligent Multi-Provider Request Routing | OpenRouter | Documentation

code:

Also is there a way I can limit token utilization in AI Agent node? So that I can only input the chat model less than particular limits.