// 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-4-6
Route
openai-compatible
On llmrelay
$1.5/M · $7.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-4-6 as the model id.
Config
# n8n credential fields API Key: sk-llmrelay-... Base URL: https://api.llmrelay.dev/v1 Model: claude-sonnet-4-6
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. New accounts get $0.20 in free credit — enough to smoke-test every model.