Automation

Use Qai with n8n

n8n's OpenAI credential has a Base URL field, so the OpenAI Chat Model node can run AI agents and chains on Qai.

Connect n8n to Qai

Create an OpenAI credential for Qai

Add a new OpenAI credential, paste your Qai key as the API Key, and set Base URL to https://llm.quickcasa.ai/v1. Saving it tests the connection by listing models.

Add the OpenAI Chat Model node

In your AI Agent or chain, add the OpenAI Chat Model node, choose the Qai credential, and set the model by ID, for example qai-pro.

Turn off "Use Responses API"

Newer versions of the node send the Responses API by default. Switch that option off so it sends chat completions, which Qai serves.

Credential and node settings from n8n's documentation and source as of November 25, 2026. The node runs on LangChain's ChatOpenAI, which was tested against Qai the same day (invoke, streaming, tools).

Limits and gotchas

  • In the OpenAI app node, use "Generate a Chat Completion", not "Generate a Model Response" (that one uses the Responses API).
  • Tool calling works for AI Agent tools; use qai-flash or a higher tier.

Questions, answered.

Why does n8n return a 404 from Qai?
The OpenAI Chat Model node is sending the Responses API. Turn off "Use Responses API" on the node.
Which model should agents use?
qai-pro for most agents, qai-flash for cheap high-volume steps.