Docs · Apps · Automation
n8n
Use TokenHaven models in n8n workflows and AI agents.
All apps
WhereCredentials → OpenAI → Base URL
You’ll need an API key. Create one in Dashboard → API keys and give it a monthly limit if the app is shared.
- 01
Create a credential
In n8n, go to Credentials → Add credential → OpenAI. Paste your TokenHaven key as the API Key.
- 02
Set the base URL
Set Base URL to the TokenHaven base URL, including /v1. n8n adds /chat/completions and /models to it.
Base URLhttps://api.tokenhaven.ai/v1
- 03
Use it in a node
In an OpenAI Chat Model or AI Agent node, pick the credential and enter a TokenHaven model id as the model.
Modelanthropic/claude-sonnet-4.5
Good to know
- Newer n8n versions also have a Custom Model Endpoint credential; it takes the same base URL and key.
n8n’s own docs · Model ids are on the models page.