OpenAI Image Node Fails with Cloudflare Error 1015 in n8n Cloud

Describe the problem/error/question

I’m using the OpenAI “Generate Image” node in n8n Cloud (fi*p****x.app.n8n.cloud) to generate images via the OpenAI API. While the text-based nodes (e.g., chat completions) work correctly, the image generation consistently fails with a Cloudflare 1015 error: “You are being rate limited.”

This happens even for a single execution, suggesting the issue is not with my usage but possibly with the shared outbound IP used by n8n Cloud. I suspect this IP has been temporarily banned by Cloudflare for api.openai.com.

Could you please investigate:

  • Whether the outbound IP used by my workspace is rate-limited?
  • If it’s possible to rotate or change the IP or proxy used for OpenAI image generation?
  • Or, alternatively, whether there’s a workaround or proxy n8n could offer?

What is the error message (if any)?

The service is receiving too many requests from you

Access denied | api.openai.com used Cloudflare to restrict access (function()The service is receiving too many requests from you
Access denied | api.openai.com used Cloudflare to restrict access
Cloudflare Error 1015
Ray ID: 9608e46d3e4d0d18

Please share your workflow

Share the output returned by the last node

The service is receiving too many requests from you
Access denied | api.openai.com used Cloudflare to restrict access
Cloudflare Error 1015
Ray ID: 9608e46d3e4d0d18

Information on your n8n setup

  • n8n version: 1.91.3 n8n Cloud
  • Database (default: SQLite): Managed by n8n Cloud
  • n8n EXECUTIONS_PROCESS setting (default: own, main): Default (Cloud-managed)
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: n8n Cloud (managed)
1 Like

Dear Edmichael,

This is one of the comman issue, I used to face, but after some deep deging. I figure it out, it’s happening because of following comman reason.

  • You have used your Token limit to use Image generation model of OpenAI.

When you have by OpenAI API subsciption, you have an option for top up. There you can top up by $5, $10 up to you. There’s where different model of OpenAI you can get top up.

And the issue you are facing is clealy mentioning that your top up or token for particular openAI image generation model has ended, while for other models there is still some tokens letf.

That’s why you are able to use text based version and not the image one.

Once you recharge the image model again or top up it again, the workflow should start working again.

Happy to Help.
(If you find out the answer helpful please make it out as solution, as this will help me provide better solutions.)

I’ve been facing the same issue - no found solution. I was discussing it on the OpenAI forum and found several other people facing the issue as well. When I test my OpenAI token outside of n8n, it worked fine for generating images, pointing to the fact that this is a problem with n8n, not OpenAI.

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