# n8n

> Use DigitSpace models in n8n's AI nodes through an OpenAI credential with a custom base URL.

Source: https://digitspace.ai/docs/tools/n8n · Last checked: 2026-10-31

n8n's OpenAI credential can point at another address, so its AI nodes can use DigitSpace.

1. In n8n, create a credential of type **OpenAI**.
2. Paste your DigitSpace key as the **API Key**, and set **Base URL** to:

```text
https://api.digitspace.ai/v1
```

3. In an **OpenAI Chat Model** node (or an AI Agent's chat model), choose that credential.
4. Set the model **By ID** to `auto`, or any model ID from the [models page](/models).

Use one DigitSpace API key per workflow, with a [budget](/docs/control/budgets), so a runaway loop can't spend more than you meant.
