i have n8n version 2.35.5 still i can’t connect any model.
Hey @JAYESH_PATEL1, while you wait for a response, here are some things that might help:
Suggested resources
Automatically matched to your question.
Docs:
Forum:
@bharath.krishn2, @Michael_Frostbutter, @Sergey_Smirnov - you’ve helped with similar issues before, can you take a look?
Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.
Why not? Is the API key correct?
Can the n8n instance connect to the internet?
yes i have correct api key
Use the HTTP Request node to test the Anthropic API itself:
-
Method:
GET -
URL:
https://api.anthropic.com/v1/models -
Add Header: Under “Authentication”, select “Header Auth”.
-
Name:
x-api-key -
Value: Paste your Anthropic API key.
-
If this HTTP request fails, the issue is likely a firewall or DNS problem blocking your n8n server from reaching api.anthropic.com. If it succeeds, double-check that the same API key is entered correctly in your n8n credentials.
Hi @JAYESH_PATEL1
“The service couldn’t complete the test” is the generic message that wizard shows for any provider failure, n8n classifies the real error coming back from Anthropic as a provider error and the detail never reaches the UI. Set these on the n8n container and restart, then hit Save on the model step again and read the actual error out of the logs:
N8N_LOG_LEVEL=debug
N8N_LOG_FORMAT=json
With an Anthropic key that is usually the credit balance error, API keys bill from prepaid credits on the console account and a claude.ai Pro or Max plan doesn’t cover API use.
Thanks to all of you.
Please read
@JAYESH_PATEL1
That dialog wants the address of your sandbox service, so Service URL takes a URL. You have pjayesh1852@gmail.com in that field, which is what the failing test is reporting.
The n8n Sandbox is a separate stack you run yourself alongside n8n, and once it is up the value there is the sandbox API as n8n sees it, http://sandbox-api:8080 on the same Compose network. The API key is the sandbox’s own secret from SANDBOX_API_KEYS on that container, not your Anthropic key.
Its ports are deliberately not published, so check it from inside the n8n container rather than from the host:
docker compose exec n8n wget -qO- http://sandbox-api:8080/healthz
A working stack returns {“status”:“ok”}.




