I have already purchased credits ($5) and successfully generated an API key.
I tested the key via curl using the official Perplexity documentation, and it works correctly (the API responds with valid results).
But when I try to connect the same key inside n8n using the Perplexity API credential, I get the error:
“Couldn’t connect with these settings – Bad request.”
It looks like the built-in Perplexity credential in n8n does not activate properly, even though the key itself is valid and working outside n8n.
I’m attaching a screenshot of the n8n credential screen.
Could you please help me understand what might be the issue? Is this a bug in the n8n Perplexity integration, or do I need to configure it differently (e.g. endpoint, headers)?
You were right — the issue was only with the connection test. It shows an error when saving the credential, but the node itself works fine once connected.
I just attached the node in the workflow and it executed successfully.
I had the exact same problem that had me flummoxed. Reading this thread saved me from what would have been an extremely frustrating afternoon. Hope they fix the issue soon
Hi Jan! Thanks for the suggestion, however it is still visible after the update to ver. 1.111.0 self hosted version. Is there an alternative solution, would be great. Thank you!
Edit: Currently feeding perplexity API key into Openrouter and using OR in N8n as a workaround.