// Workflow
Use n8n with llmrelay
The self-hostable workflow automation platform. Point it at api.llmrelay.dev and get the same models at half the price.
Recommended model
claude-sonnet-5
Route
openai-compatible
On llmrelay
$1/M · $5/M
Setup
- 1 In n8n, add an "OpenAI" credential.
- 2 Set API key = your llmrelay key.
- 3 Under "Custom URL" → https://api.llmrelay.dev/v1.
- 4 In any OpenAI/AI node, pick claude-sonnet-5 as the model id.
Config
# n8n credential fields API Key: sk-llmrelay-... Base URL: https://api.llmrelay.dev/v1 Model: claude-sonnet-5
Smoke test
Copy, paste, run. If you get JSON back with a message, you're good.
Add an "AI Agent" node with the credential → run with "say hi".
Gotchas
- !n8n's AI Agent node caches the model list. If Claude models don't appear, hit "Refresh" next to the model picker.
You need an llmrelay key first
Sign up in about 30 seconds — free to create an account, no subscription, $10 minimum top-up.