n8n
Use Nexrouting models in n8n workflows and AI agents with an OpenAI credential and a custom base URL.
La documentazione è in inglese.
n8n talks to Nexrouting through its OpenAI nodes. You need three things: the base URL, your key and a model ID.
1. Create the credential
- Go to Credentials and create a credential of the type OpenAI.
- Paste your Nexrouting key in API Key.
- Set Base URL to
https://api.nexrouting.com/v1. - Save. Leave the organization field empty.
2. Pick the model
In an OpenAI Chat Model node (for an AI Agent or a chain), choose the credential and set the model by its ID, for example anthropic/claude-sonnet-5.5. If the model isn't in the list, switch the field to By ID and type it.
Or use an HTTP Request node
| Field | Value |
|---|---|
| Method | POST |
| URL | https://api.nexrouting.com/v1/chat/completions |
| Header | Authorization: Bearer nr-v1-… (better: a Header Auth credential) |
| Body (JSON) | {"model": "openai/gpt-6-astra", "messages": [{"role": "user", "content": "Hello"}]} |
Field names can differ a little between n8n versions.