OpenAI return 400 Error

Describe the issue/error/question

Since some time i get for every OpenAI Request a 400 error. It dosn´t mapper what kind of request i do (Text or Image with every combination of parameters)

How can i debug the requests that are done by n8n?

What is the error message (if any)?

NodeApiError: Bad request - please check your parameters
    at RoutingNode.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/src/RoutingNode.ts:220:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/src/Workflow.ts:1341:11)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:938:29

Please share the workflow

Share the output returned by the last node

ERROR: Bad request - please check your parameters
Request failed with status code 400

Information on your n8n setup

  • n8n version: 0.216.0
  • Database you’re using (default: SQLite): MySQL
  • Running n8n with the execution process [own(default), main]:
  • Running n8n via [Docker, npm,, desktop app]: Docker

I found out what the problem was!
After looking in my OpenAI account, I noticed that my account has no payment data stored. - I have done this now and it works again.

TLDR: Check your payment methods in OpenAPI

1 Like

Thanks for sharing the solution @niefuend !

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.