All guides · API quickstart · Last checked: n8n documentation, November 2026; the Ollama requests it sends were tested against our live API
- 1. Create an accountSign up in a minute and get $5 of free credit. Already a customer? Sign in.
- 2. Make an API keyIn your account, open AI API and press Create key. Keys start with
dgk_. Keep yours secret. - 3. Follow the steps belowCopy each block, paste your key where it says
dgk_your_key_here.
1. Create the credential
- In n8n, open Credentials → Add credential → Ollama.
- 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
- AI Agent: add an Ollama Chat Model sub-node, choose the credential, and pick
qwen3-coder:30borgpt-oss:120b(both handle tools well). - Simple text jobs (summaries, classification, extraction): Ollama Chat Model with
gemma4:12b, fast and cheap. - Vector stores and RAG: Embeddings Ollama with
bge-m3orqwen3-embedding:8b.
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.