CS11 - Text To Image Generation Failure Blocked By Cloudflare

Hi Charlie,

CSAI image generation on my site, elliewhite.co.uk, is being blocked by a Cloudflare challenge on your side. Every txt2img request returns a Cloudflare “Just a moment…” page from /csai/v1/openai/txt2img instead of an image.

What happened:

  • Earlier today a cs_ai txt2img request with no reference image worked normally (16:9, high quality, about 15 credits).
  • This evening, between about 21:20 and 21:35 GMT, four txt2img requests that each included one reference image from the Media Library were all blocked. I tried the reference as a 4032px PNG, a 1024px PNG and a 1920px JPEG, with the same result each time.
  • No credits were taken for the blocked requests, and the account service still responds normally (balance and licence show correctly).
  • The same endpoint shows no challenge when I request it from my own computer, so it looks as though Cloudflare is challenging requests from my web server specifically.

Cloudflare Ray IDs for the blocked requests:

  • a64de42a2c9615c9
  • a64de71dac3acdb6
  • a64deb43cf4efbf4
  • a64df02d3b0a79c3

Could you check why these were challenged, and allow requests from my site through? I’d also like to know whether reference images are supported with txt2img at the moment.

Many thanks,
Christopher

Hello Christopher,

Thank you for reaching out, and for the detailed report, including the times and Ray IDs. I understand that image requests with a reference image are returning a Cloudflare “Just a moment…” page instead of an image.

Kindly do the following:

  1. Reference images – Yes, they are supported when making a new image. You can attach up to 6 of your own images. Cornerstone sends the Media Library “Large” size of each one, so uploading a smaller original is unlikely to change the result.

  2. Repeat a text-only image – Please generate one image with no reference attached, then one with a reference, a few minutes apart. This shows whether only reference requests are challenged, or all image requests from your server now. A successful image uses credits, so a lower quality setting is a sensible choice for this test.

  3. Find your server’s outgoing IP address – Your web host can provide this, and it may differ from the address your domain points to. Please also ask whether outgoing requests pass through a proxy. Send the address in a secure note rather than a public post.

The image request is sent from your web server to theme.co, so a challenge on that route is not something you can clear from your own browser. The Ray IDs you listed need to be checked on our side.

If the issue persists, please send us the results of the two tests above, with the time and Ray ID of any blocked request, along with your System Info (WP Admin > Cornerstone > System Info) and any browser console errors.

Best Regards.