n8n with AI setup via the Kiree gateway
Connect n8n to kiree.net: an OpenAI credential with Base URL https://kiree.net/v1 or an HTTP Request node — AI steps in workflows and Telegram bots, billed by tokens.
Why the direct setup does not cover every case
n8n normally calls the OpenAI endpoint. The gateway exposes an OpenAI-compatible endpoint; set the Base URL and key in an OpenAI credential (or use an HTTP Request node), and add AI steps to workflows and bots.
Steps to your first request
Get a key
Create a sk-… key in the kiree.net console.
Configure the credential
Credentials → OpenAI API: API Key sk-… and Base URL https://kiree.net/v1.
Add an AI node
OpenAI Chat Model / OpenAI node with a catalog model ID; or HTTP Request: POST https://kiree.net/v1/chat/completions with a Bearer key.
Base URL: "https://kiree.net/v1"
API Key: "sk-…"
HTTP Request (alternative):
POST https://kiree.net/v1/chat/completions
Authorization: Bearer sk-…
For a Telegram bot, chain Telegram Trigger → OpenAI Chat Model → Telegram Send Message: the model reply goes straight into the chat.
Check: execute the workflow with a test message: the model reply reaches the next node, usage visible in the kiree.net console.
What to connect in n8n
Any text model from the catalog works on one key. Below are popular options to start.
Common errors
401 Unauthorized
The key or Base URL in the credential is wrong: check both fields.
404 model_not_found
The model ID is not from the kiree catalog: copy the exact ID from the model page.
429 / insufficient_quota
Balance or request quota is exhausted: top up and retry after a minute.
Frequently asked questions
How do I connect n8n with AI through the gateway?+
With the gateway Base URL in the OpenAI credential or via the HTTP Request node; self-hosted n8n is reachable directly.
How do I build an AI Telegram bot in n8n?+
A Telegram Trigger → OpenAI Chat Model → Telegram Send Message chain with the gateway credential: no code and no extra setup.
How are AI steps billed?+
Tokens are charged from the kiree.net balance; no OpenAI subscription is required.
Which models are available in the nodes?+
Any catalog text model: gpt-4o-mini, gpt-6-astra, claude-sonnet-4-6 and others.
Create a key in a couple of minutes; pay only for actual usage, no subscription required.