メインコンテンツへスキップ
更新日: 2026-06-23
n8n is a strong fit when you want to place LLM calls inside automation flows, agents, approval chains, and business-system integrations. When connecting it to Crazyrouter, the recommended rollout is to get one minimal workflow working with n8n’s OpenAI credential path first, then decide whether you need the more flexible HTTP Request fallback.

Overview

Using n8n’s OpenAI credentials or AI nodes, you can route workflow model traffic through Crazyrouter:
  • Recommended protocol: OpenAI-compatible API
  • Recommended route: n8n OpenAI API credential + node-level Base URL
  • Base URL: https://api.crazyrouter.com/v1
  • Auth method: sk-... token
  • Recommended first validation model: gpt-5.5
If a specific node does not expose the parameters or newer model features you need, fall back to the HTTP Request node and call Crazyrouter directly.

Best For

  • teams putting AI inside automation workflows
  • users connecting forms, databases, approvals, webhooks, and LLMs
  • builders using AI Agent nodes with tool orchestration
  • internal automation stacks that need visual workflow control

Protocol Used

Recommended protocol: OpenAI-compatible API When connecting Crazyrouter in n8n, use:
Do not enter:
  • https://api.crazyrouter.com
  • https://api.crazyrouter.com/v1/chat/completions

Prerequisites

Recommended starting whitelist:
  • gpt-5.5
  • claude-opus-4-8
  • gemini-3.1-pro
  • text-embedding-3-large if you will use vector or retrieval-related flows

5-Minute Quick Start

1

Create a dedicated n8n token

In the Crazyrouter dashboard, create a token named n8n. For the first rollout, allow only gpt-5.5 and claude-opus-4-8.
2

Add an OpenAI credential

In n8n, go to SettingsCredentialsAdd Credential, then choose OpenAI API or the equivalent OpenAI credential type in your version.
3

Enter the credential and node values

First fill in the credential:
  • API Key: your sk-...
Then in the OpenAI, OpenAI Chat Model, or related AI node Options, set:
  • Base URL: https://api.crazyrouter.com/v1
4

Build a minimal workflow

Create a workflow such as Manual TriggerOpenAI Chat ModelOutput, and set the model to gpt-5.5.
5

Run the first validation

Send a simple input such as Reply only OK through the OpenAI Chat Model node and execute the workflow manually. Once it succeeds, add AI Agent or more complex logic later.

Minimal Workflow Example

OpenAI Chat Model node

AI Agent workflow

Start with the simplest path:
  1. Manual Trigger
  2. AI Agent
  3. Output
In the AI Agent, choose the Crazyrouter credential and attach only one simple tool for the first test. That keeps model issues separate from tool-chain issues.

HTTP Request Fallback

Use the HTTP Request node if you need:
  • newer parameters not yet exposed by n8n AI nodes
  • tighter control over the request body
  • easier debugging of headers, body, or streaming behavior
Example:
Recommended order: first validate with the native OpenAI credential and AI nodes; only switch to HTTP Request when node coverage is not enough.
Depending on the n8n version, Base URL may appear on the credential page or in the specific OpenAI / Chat Model node Options. Current official docs more clearly document node-level Base URL overrides, so for Crazyrouter the safest first setup is: put the API key in the credential, then set Base URL on the node.
Recommended order: get gpt-5.5 working in a minimal flow, then expand to agents, tools, and batch jobs.

Token Setup Best Practices

Verification Checklist

  • the OpenAI API credential is saved successfully
  • node-level Base URL is set to https://api.crazyrouter.com/v1
  • the OpenAI Chat Model node executes successfully
  • the first minimal workflow returns a valid response
  • the AI Agent node works too if you need agent flows
  • the request appears in the Crazyrouter logs
  • token quota and model whitelist match your plan
  • dev, staging, and production workflows use separate tokens

Common Errors and Fixes

Performance and Cost Tips

  • Keep gpt-5.5 as the default automation baseline during initial rollout
  • Add stricter caps and alerts for looped, scheduled, or batch workflows
  • Keep production and debugging flows on separate tokens
  • Validate AI Agent flows with fewer tools and shorter chains before scaling up
  • If cost spikes, check both Crazyrouter logs and n8n execution history to see whether retries or loops are the cause

FAQ

Which Base URL should I use in n8n?

Use https://api.crazyrouter.com/v1.

Should I put Base URL in the credential or in the node?

Check the UI in your current n8n version. Current official docs more clearly mention node-level Base URL options; if your credential page also supports it, that can work too, but the safest first setup is credential for the API key and node for Base URL.

Should I start with native AI nodes or HTTP Request?

Start with native OpenAI credentials and AI nodes. Use HTTP Request only when you need deeper control or unsupported parameters.

Which model should I test first?

Start with gpt-5.5.

Why did workflow costs suddenly increase?

Usually the cause is not a single request. It is more often loops, batches, retries, or many executions sharing one token.

Does n8n really need multiple tokens?

Yes. At minimum, separate development from production. High-volume jobs should often get their own token too.
Once n8n is connected to Crazyrouter, the real challenge is not just making one request work. It is controlling retries, loops, batch execution, and quota boundaries across automation flows.