Use n8n with Datagram

Build AI workflows and agents in n8n on private open models, using n8n's built-in Ollama credential pointed at our servers.

Works with Datagram AI

All guides · API quickstart · Last checked: n8n documentation, November 2026; the Ollama requests it sends were tested against our live API

  1. 1. Create an accountSign up in a minute and get $5 of free credit. Already a customer? Sign in.
  2. 2. Make an API keyIn your account, open AI API and press Create key. Keys start with dgk_. Keep yours secret.
  3. 3. Follow the steps belowCopy each block, paste your key where it says dgk_your_key_here.

1. Create the credential

  1. In n8n, open Credentials → Add credential → Ollama.
  2. Fill in the fields below and save. n8n checks the connection when you save.
Base URL
https://api.datagram.net/v1/ollama
API Key
your dgk_ key (n8n sends it as a Bearer token)

2. Use it in a workflow

Model names are the same as in Ollama. The model menu in the node lists the ones your key can use.

If something goes wrong

The credential test fails

Check the Base URL is exactly https://api.datagram.net/v1/ollama with no trailing slash, and the key is filled in. If your key only allows certain IP addresses, add your n8n server's address in your account under AI API.

The model menu is empty

Your key may be limited to certain models. Check in your account under AI API, or type the model name.

402 "credit has run out"

Add credit in your account under AI API. Credit never expires.

Questions

Why the Ollama credential and not OpenAI?

n8n's Ollama credential has a Base URL and an API key field made for remote servers like ours, so it is the simplest route. Our Ollama-compatible address works with n8n's Ollama Chat Model and Embeddings nodes.

Which model for an AI Agent node?

One that is good with tools: qwen3-coder:30b or gpt-oss:120b. For simple text tasks (summaries, classification) gemma4:12b is fast and cheap.

What does it cost?

The normal token price of the model, from your Datagram credit. Workflows that run often can add up, so start with a small model and check your use in your account under AI API.

Create an account Get an API key More guides →