Published
Short answer: To use an OpenAI-compatible API in n8n, create an OpenAI credential, set its Base URL to https://qoraapi.com/v1, paste your Qora API key, and pick the model by ID in the OpenAI Chat Model node. As of November 2026, Qora API serves deepseek/deepseek-v4.1-flash at $0.15 input / $0.45 output per 1M tokens, so a typical 2,000-in / 500-out workflow run costs about $0.0005.
n8n has no separate “OpenAI-compatible” node. Instead, its built-in OpenAI credential and OpenAI Chat Model sub-node accept a custom base URL, so any gateway that speaks the OpenAI Chat Completions format works. This guide shows the exact fields, a test call, the “Use Responses API” setting, how to pick non-OpenAI models, and the cost per run.
How do I connect n8n to an OpenAI-compatible endpoint?
- Get an API key from Qora API (minimum top-up is $50; new users can ask for a $5 trial via X @QoraAPI or [email protected]).
- In n8n open Credentials → Create credential → OpenAI.
- Fill in: API Key = your Qora key; Base URL =
https://qoraapi.com/v1(include/v1, no trailing slash). Leave Organization ID empty. - Save. n8n runs a credential test; if it complains, ignore it and test with a node instead (see below), because some gateways do not expose every OpenAI utility endpoint the test uses.
- Add an AI Agent or Basic LLM Chain node, attach an OpenAI Chat Model sub-node and select the credential.
The OpenAI credential is documented in the n8n OpenAI credentials docs; the node is described on the OpenAI Chat Model page.
Which model ID do I enter in the OpenAI Chat Model node?
Switch the Model field from From list to By ID and type the Qora model ID. The dropdown is loaded dynamically from the endpoint and may not show every model, so By ID is the reliable route. Examples: deepseek/deepseek-v4.1-flash, gemini-3.8-flash, glm-5.2. The full list is on Qora’s pricing page.
How much does an n8n workflow cost with Qora API?
As of November 2026, these Qora API prices come from the live pricing page (per 1M tokens). Official prices are from each vendor’s pricing page and were checked in November 2026.
| Model (ID) | Qora input / output | Official input / output | Cost per 1,000 runs* |
|---|---|---|---|
DeepSeek V4.1 Flash (deepseek/deepseek-v4.1-flash) |
$0.15 / $0.45 | $0.30 / $1.20 | $0.53 |
Gemini 3.8 Flash (gemini-3.8-flash) |
$0.15 / $0.90 | $0.75 / $3.75 | $0.75 |
GLM 5.2 (glm-5.2) |
$0.42 / $1.32 | $1.40 / $4.40 | $1.50 |
*Assumes 2,000 input and 500 output tokens per run, no caching. Qora prices are “up to 70% off” official; the discount differs per model. Details: DeepSeek V4.1 Flash, Gemini 3.8 Flash, GLM 5.2.
How do I test the endpoint before building the workflow?
Use an HTTP Request node (or a terminal) first. If this works, the n8n credential will too.
curl https://qoraapi.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_QORA_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-v4.1-flash",
"messages": [{"role": "user", "content": "Reply with the word ok"}]
}'
In n8n, the equivalent HTTP Request node settings are: Method POST, URL https://qoraapi.com/v1/chat/completions, Authentication Header Auth with Authorization: Bearer YOUR_QORA_KEY, Body type JSON with the payload above.
Should I turn on “Use Responses API” in n8n?
Leave it off unless you need OpenAI built-in tools. The OpenAI Chat Model node defaults to the Chat Completions API (/v1/chat/completions), which every OpenAI-compatible gateway supports. The “Use Responses API” toggle switches the node to /v1/responses and unlocks Web Search, File Search and Code Interpreter, which are OpenAI-hosted tools and only make sense on models that provide them. If a non-OpenAI model returns an error, check this toggle first.
What if n8n shows “Could not retrieve models” or a 404?
- 404 / not found: the Base URL is missing
/v1or has a typo. It must be exactlyhttps://qoraapi.com/v1. - 401 / invalid key: paste the key without the word “Bearer” and without spaces.
- Empty model list: use Model → By ID.
- Model not found: copy the ID exactly from the pricing page; DeepSeek IDs include the
deepseek/prefix. - Self-hosted n8n cannot connect: make sure the server can reach the internet over HTTPS. Qora API is for users outside mainland China only.
Can I use Claude or Gemini models in n8n through the same credential?
Yes for chat. Qora exposes Claude, Gemini and other models through the OpenAI-compatible /v1/chat/completions endpoint, so the same credential and node work; just change the model ID. Native Anthropic features that need the /v1/messages format use n8n’s Anthropic credential instead, with its base URL set to https://qoraapi.com. See Claude API pricing for current Claude prices.
Other tools that use the same base URL
The same https://qoraapi.com/v1 base URL works in editors and agents: see the guides for OpenCode and the Zed editor.
FAQ: n8n with OpenAI-compatible APIs
Does n8n support OpenAI-compatible APIs?
Yes. n8n’s OpenAI credential accepts a custom Base URL, so any OpenAI-compatible gateway such as Qora API (https://qoraapi.com/v1) works with the OpenAI Chat Model, AI Agent and Basic LLM Chain nodes.
What is the base URL for Qora API in n8n?
The base URL is https://qoraapi.com/v1. Put it in the Base URL field of the n8n OpenAI credential.
Why does the n8n model dropdown not show my model?
The dropdown loads models dynamically and may be incomplete on gateways. Switch the Model field to By ID and enter the exact ID, for example deepseek/deepseek-v4.1-flash.
How much does it cost to run an n8n AI workflow on DeepSeek V4.1 Flash?
About $0.53 per 1,000 runs at 2,000 input and 500 output tokens each, based on Qora’s $0.15 / $0.45 per 1M tokens price in November 2026.
How do I get a Qora API key?
Register at qoraapi.com/register. The minimum top-up is $50, and new users can request a $5 trial via X @QoraAPI or [email protected].
Create your Qora API key and point n8n at https://qoraapi.com/v1. Full prices are on the pricing page. This guide has not been tested against your specific n8n version; field names can vary slightly between releases.

Leave a Reply