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.

  1. 01

    Create a credential

    In n8n, go to Credentials → Add credential → OpenAI. Paste your TokenHaven key as the API Key.

  2. 02

    Set the base URL

    Set Base URL to the TokenHaven base URL, including /v1. n8n adds /chat/completions and /models to it.

    Base URL
    https://api.tokenhaven.ai/v1
  3. 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.

    Model
    anthropic/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.