n8n's OpenAI credential has a Base URL field, so the OpenAI Chat Model node can run AI agents and chains on 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.
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.
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).
qai-flash or a higher tier.qai-pro for most agents, qai-flash for cheap high-volume steps.