// guides · n8n error index

n8n OpenAI node not working? 18 tests, every error decoded

Why the n8n OpenAI node fails: insufficient quota vs rate limit, generic "Bad request" lines, undefined output, cut-off replies, Base URL /v1. Tested on n8n 2.43.7.

Updated 2026-10-25 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. How we tested, and what is real

    We ran 17 workflows (about 25 executions) with the OpenAI node, operation Message a model (node version 2.3, which calls OpenAI's Responses API), on n8n 2.43.7 with n8n execute. To make OpenAI fail on purpose (no credits, rate limits, wrong model) we set the OpenAI credential's Base URL to a small local stand-in that logs every request and answers with the error bodies OpenAI documents. So what n8n sends and how it reports errors is real; the OpenAI answers are simulated.

  2. Reply is undefined? The text moved to output[0].content[0].text

    With Simplify Output on (the default), the item looks like {"output": [{"type": "message", "status": "completed", "content": [{"type": "output_text", "text": "..."}]}]}. Read the reply with {{ $json.output[0].content[0].text }}. Expressions copied from older workflows, such as $json.text or $json.message.content, return nothing. Turn Simplify Output off to also get usage token counts and incomplete_details.

  3. "Bad request - please check your parameters" and other generic top lines

    n8n replaces OpenAI's message with a short generic one. A prompt too long for the model and a text field over the size limit both showed only Bad request - please check your parameters. A wrong key showed Authorization failed - please check your credentials, and a model name that does not exist showed The resource you are requesting could not be found. In every case OpenAI's real reason, such as Your input exceeds the context window of this model or The model `gpt-nope` does not exist or you do not have access to it., was on the next line of the error (400 - {"error": ...}). Read that line first.

  4. "Insufficient quota detected" is billing, not speed

    Insufficient quota detected. Learn more about resolving this issue is n8n's text for OpenAI's insufficient_quota: You exceeded your current quota, please check your plan and billing details. The API account has no credits left. Waiting or retrying does not help; add credits on platform.openai.com (a ChatGPT Plus subscription is billed separately and does not count). n8n sent one request and stopped.

  5. "OpenAI: Rate limit reached" is not retried

    When our stand-in answered 429 rate_limit_exceeded with Please try again in 20s., n8n sent exactly one request and failed with OpenAI: Rate limit reached. Turn on Settings > Retry On Fail with a wait of 20000 ms or more, or space items out with Loop Over Items and a Wait node. Options compared in n8n 429 rate limits.

  6. Custom Base URL: it must end in /v1

    For OpenAI-compatible servers (LiteLLM, Ollama, OpenRouter, a company proxy) the credential's Base URL needs the /v1 part, for example http://localhost:11434/v1. Without it n8n posted to /responses and got the generic The resource you are requesting could not be found. A server that is down gives The service refused the connection - perhaps it is offline. Also check that your server supports the Responses API, which this operation calls.

  7. Replies cut off with no error: Maximum Number of Tokens

    When you add the Maximum Number of Tokens option it shows 16, and n8n sent max_output_tokens: 16. The reply was cut after a few words and the node still succeeded. With Simplify Output on, the only sign was output[0].status set to incomplete. Remove the option or set a real limit, such as 1000. With Output Format JSON Object, a valid JSON reply is parsed into an object, but a cut-off one silently stays a broken string, so .text.summary is undefined further on. An invalid JSON Schema fails before sending with Failed to parse schema.

  8. Many items: one failure stops the rest

    With 3 items and a bad item 2, item 1 was sent and item 3 was never sent. With Settings > On Error > Continue (using regular output) all 3 were sent and item 2 became {"error": "Bad request - please check your parameters"}, without OpenAI's reason. Careful: in Continue mode an insufficient_quota error read The service is receiving too many requests from you, which looks like a speed limit but is a billing problem. An empty prompt fails before any request with A non-empty prompt is required.

All test results

Left: what we did with the OpenAI node (Text > Message a model, node version 2.3). Right: what n8n did (real) and the answer from our OpenAI stand-in (simulated, see the first step).

TestResult
Say hello, defaults (Simplify Output on)Worked. The reply text was at $json.output[0].content[0].text, not at $json.text or $json.message.content
Same with Simplify Output offFull response: id, status, incomplete_details, usage token counts, and output
Empty prompt, or an expression that resolves to emptyFailed before any request: A non-empty prompt is required.
Wrong API key (401 invalid_api_key)Authorization failed - please check your credentials; OpenAI's Incorrect API key provided only on the 401 line below
No credits on the API account (429 insufficient_quota)Insufficient quota detected. Learn more about resolving this issue; one request, no retry
Rate limited (429 rate_limit_exceeded, body says try again in 20s)OpenAI: Rate limit reached; exactly one request, not retried
Model name that does not exist (404 model_not_found)Generic The resource you are requesting could not be found; the model name only on the 404 line
Base URL without /v1Request went to /responses; same generic The resource you are requesting could not be found
Base URL not reachableThe service refused the connection - perhaps it is offline
Prompt too long for the model (400 context_length_exceeded)Generic Bad request - please check your parameters; the real reason only on the 400 line
Another 400 (text field too long)Same generic Bad request - please check your parameters
Output Format JSON Object, valid JSON replyn8n parsed it: content[0].text was an object, so .text.summary worked
JSON Object, reply cut off (status incomplete)No error. text stayed a truncated string, .text.summary undefined downstream
Maximum Number of Tokens option added, left at its default 16Sent as max_output_tokens: 16; reply cut to The quick brown fox jum, node succeeded, only output[0].status said incomplete
JSON Schema option with invalid schema JSONFailed before any request: Failed to parse schema
3 items, item 2 fails, default settingsItem 1 sent, item 2 failed, item 3 never sent
Same, On Error set to Continue (regular output)All 3 sent; item 2 became {"error": "Bad request - please check your parameters"}, OpenAI's reason lost
Continue (regular output) + insufficient_quotaError item said The service is receiving too many requests from you, not insufficient quota

Code node: get the text and catch cut-off replies

Put this after the OpenAI node with Simplify Output on. It throws when a reply was cut off, instead of passing half an answer on (written from the output shape we saw; this exact snippet was not run):

return $input.all().map(i => {
  const msg = (i.json.output || []).find(o => o.type === 'message') || {};
  if (msg.status === 'incomplete') throw new Error('OpenAI reply was cut off: raise Maximum Number of Tokens');
  const text = ((msg.content || [])[0] || {}).text;
  return { json: { text } };
});

Checklist

Good to know

What we did not test

The real api.openai.com (answers came from our stand-in, built from OpenAI's documented error bodies), other operations (images, audio, assistants, files), tools and built-in tools, the AI Agent and OpenAI Chat Model nodes, the editor's own error panel, and n8n Cloud.

FAQ

Why is the output of the n8n OpenAI node undefined?

In node version 2.x (Message a model) the reply is at $json.output[0].content[0].text. Older expressions like $json.text or $json.message.content point at fields that no longer exist.

What does "Insufficient quota detected" mean in n8n?

OpenAI says the API account has no credits or hit its spending limit. It is a billing problem, not a speed limit: add credits on platform.openai.com. A ChatGPT subscription does not pay for API calls.

Does the n8n OpenAI node retry on "Rate limit reached"?

Not in our n8n 2.43.7 tests: one 429 failed the node at once. Turn on Retry On Fail with a wait of 20 seconds or more, or space items with a Wait node.

What does "Bad request - please check your parameters" mean in the n8n OpenAI node?

OpenAI rejected the request with a 400 and n8n shows a generic line. The real reason, often a prompt longer than the model's context window, is on the next line of the error.

Why are OpenAI replies cut off in n8n?

The Maximum Number of Tokens option starts at 16 when you add it. The reply stops after a few words and the node does not fail. Remove the option or raise it.

Why does n8n say "The resource you are requesting could not be found" for OpenAI?

Either the model name does not exist for your key, or a custom Base URL is missing /v1. Check the 404 line of the error to see which.

Related guides

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.