docs
Automation

n8n

Markdown

No-code automation · OpenAI Chat, OpenAI Responses, Anthropic Messages, Gemini

Full guide
FormatWhere to set it up
OpenAI Chat, OpenAI Responses, Anthropic Messages, GeminiCredentials → OpenAI → Base URL (default https://api.openai.com/v1); Credentials → Anthropic → Base URL (default https://api.anthropic.com); Credentials → Google Gemini(PaLM) Api → Host (default https://generativelanguage.googleapis.com). Then use OpenAI Chat Model / Anthropic Chat Model / Google Gemini Chat Model nodes

Setup

Copy the configuration and replace sk-... with your key from the Ailoot Dashboard. Prefer storing the key in the environment variable AILOOT_API_KEY, if the application supports it.

Before starting, request GET /v1/models with your Ailoot key. Choose an exact model ID whose methods include POST /v1/chat/completions, POST /v1/responses, POST /v1/messages, POST /v1beta/models/{model}:generateContent, then use that ID in the configuration. For agents, also check tool support and the features required by your client version.

OpenAI credential:
  API Key: sk-...
  Base URL: https://api.ailoot.ai/v1
Anthropic credential:
  API Key: sk-...
  Base URL: https://api.ailoot.ai
Google Gemini(PaLM) Api credential:
  Host: https://api.ailoot.ai
  API Key: sk-...
OpenAI Chat Model node → Model: By ID → gpt-6.1-sol (Use Responses API toggle — only for models with the responses method)

Example model: gpt-6.1-sol / deepseek-v4-pro (OpenAI), claude-sonnet-5-5 (Anthropic), gemini-3.6-flash (Gemini). Choose any other model from the catalog — check that it supports the format you need.

Good to know

Test

  • For the OpenAI format, the URL is https://api.ailoot.ai/v1 (or the full path if the application asks for a full URL).
  • For the Anthropic format, the URL is https://api.ailoot.ai without /v1.
  • For the Gemini format, the URL is https://api.ailoot.ai without /v1beta.
  • Ask a short question. If you get an error, check the code and Request ID, then consult Errors and limits.
  • 404 immediately after setup almost always means the URL is wrong: an extra or missing /v1.
  • 402 — insufficient balance for the reserve. Agents reserve more than chat: why.

Application documentation: https://github.com/n8n-io/n8n/blob/master/packages/nodes-base/credentials/OpenAiApi.credentials.ts

Still have questions? Send your Request ID and a description — we'll help you troubleshoot.Contact support