Hello n8n community,
I’m encountering a persistent “Bad request - please check your parameters” error when trying to create credentials for any AI Chat Model node that uses an API Key. I have tested this with Google Gemini (PaLM) API, Groq, and xAI, and they all fail with the exact same error.
My Environment:
- n8n Version: 1.104.2 (Self-Hosted)
- Installation Method: Docker on a VPS
- Operating System: Ubuntu 24.04
Problem Description:
When I add any AI Chat Model node (e.g., Groq Chat Model) and try to create a new credential by entering a valid API Key, the connection test fails instantly with the “Bad request” error, as shown in the screenshot below.
What I’ve Tested:
- I have generated fresh and valid API keys from Groq, Google AI Studio, and xAI.
- Crucially, the
HTTP Requestnode works perfectly. I can successfully make HTTPS requests to external APIs, which confirms that there are no general networking, firewall, or DNS issues with my n8n container. - The issue seems to be specific to the credential creation modal for these AI nodes.
This leads me to believe there might be a bug in how the credential validation process is handled for API Key based authentication in version 1.104.2. The success of the HTTP Request node strongly suggests the problem is not with my server’s connectivity.
Has anyone else experienced this specific behavior with AI model credentials on a similar self-hosted version? Any insights or workarounds would be greatly appreciated.
Thank you!
