Persistent HTTP 520 errors when OpenAI image processing starts

Since August 9, 2026, I have been receiving persistent HTTP 520 errors from Cloudflare when OpenAI image processing actually starts.

My workflow was previously working normally and no relevant change was made before the failures began.

Tests from the same PC/network:

  • Authenticated GET /v1/models → HTTP 200 OK
  • gpt-image-2 is available to the API key
  • Unauthenticated POST /v1/images/edits → normal HTTP 401 + OpenAI x-request-id
  • Unauthenticated POST /v1/responses → normal HTTP 401 + OpenAI x-request-id
  • Authenticated image processing through /v1/images/edits → HTTP 520
  • Authenticated image editing through /v1/responses + image_generation → HTTP 520

Latest failing request:

CF-Ray: a28e3c2ad8e14718
Timestamp: 2026-08-10T10:14:51Z
Zone: api.openai.com
Error category: origin
Cloudflare error: true
OpenAI x-request-id: none

Local diagnostics are clean:

  • no VPN
  • no proxy
  • Windows Defender only
  • TCP 443 OK
  • TLS certificate valid
  • MTU 1500 OK
  • no packet loss
  • normal Cloudflare BRU routing
  • no hosts-file modification

Working control request:

GET /v1/models
HTTP 200 OK
x-request-id: d7886ed1-0692-40dc-bafe-01d33042bb7c
CF-Ray: a28e41264eb9fad8-BRU

Has anyone else been seeing persistent HTTP 520 errors specifically when image processing starts?

I have already opened an OpenAI support ticket and provided the Ray IDs and timestamps.

Seeing the same pattern here, but on text/reasoning models via /v1/responses rather than image generation - so this doesn’t look scoped to gpt-image-2 specifically.

Since 2026-08-10 ~05:51 UTC, every /v1/responses call using a reasoning-tier model fails with the same Cloudflare 520, while gpt-4o succeeds on the identical request (same account, same key, same document, same few minutes)

FAIL (520): gpt-5.6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-5.5, gpt-5.5-pro, o3, o4-mini

OK (200): gpt-4o

Like loulou1, local diagnostics are clean (no proxy/VPN, DNS fine, GET /v1/models returns 200). Failures come back fast (2-27s), not after a long timeout. Retrying with backoff doesn’t help - same result for hours.

Looks like it’s the heavier/compute-bound processing paths specifically (image generation for loulou1, reasoning models here), while lightweight endpoints stay healthy.

Thanks, this is very useful. Your results look extremely similar to mine.
On my side, lightweight/control API calls work normally, while image-processing paths fail with Cloudflare 520.

The fact that you get the same behavior on reasoning models while gpt-4o works strongly suggests this may affect heavier compute-bound backend paths rather than a specific model or endpoint.

I have already sent OpenAI support my Ray IDs, timestamps, working 200 control requests, and failing 520 requests. You should probably send them your Ray IDs and timestamps too so they can correlate both cases.

If more users confirm the same split between lightweight requests working and heavier processing paths failing, this looks much more like an infrastructure/routing issue than a client-side problem.

USA: No HTTP Status 520 on image generation - running up the time for a response to 1500 tokens in/7300 tokens generated of image output on quality:high for an extended-length http request with no stream.

More

/v1/responses with gpt-5.6-sol xhigh also succeeds (and doubts the truthfulness about its own model name in simply pasting in this topic, built to distrust users.)

Now we can doubt AI right back when it says you have some more server origin info you can gather and compare:

  • Full CF-Ray values, including the three-letter colo suffix

status.openai.com is problem free, but it is also seemingly human-powered only.

Thanks. In my case the 520 happens very quickly, not after a long client-side timeout, and the same issue also occurs through /v1/responses when image processing starts.

My Cloudflare traffic is currently routed through BRU (Brussels), while you’re reporting successful image generation from the USA. So regional routing/backend differences may be relevant here.

I’ve already provided OpenAI support with the Ray IDs, timestamps, endpoint, model, and successful control request IDs.

Same here, it matches what we’ve been measuring almost exactly

We hit the same thing on POST /v1/images/edits with gpt-image-2. It started
for us on 2026-08-09 as well, with no change on our end.

A controlled experiment that isolates where it breaks

Four series inside the same 15-minute window (2026-08-10, 09:27–09:31 UTC), same
egress, same Cloudflare PoP (BRU), byte-identical 137 KB multipart bodies (1024 px JPEG + PNG mask, synthetic test images):

# Setup Result
A postman-echo.com/post (also Cloudflare-fronted) 15/15 → 200
B /v1/images/edits, invalid key, gpt-image-2 15/15 → 401 + x-request-id
C /v1/images/edits, real key, nonexistent model 10/10 → 400 + x-request-id
D /v1/images/edits, real key, gpt-image-2 10/10 → 520, no x-request-id

B and C are the interesting ones: the exact same 137 KB body reaches OpenAI’s application layer intact and comes back with their own error codes and their own
request IDs in 0.2–0.6 s. The only variable that changes in D is whether image
generation is actually attempted.

We also ruled out an inline TLS-inspecting proxy — by measurement

Unlike you, our egress does pass through a corporate TLS-inspecting forward proxy, so support quite reasonably asked whether that could be disrupting long-lived connections. It isn’t. Five non-streaming POST /v1/chat/completions
calls (gpt-5.5, 4000 max completion tokens), where the connection sits idle for
over a minute waiting, over the same proxy and the same PoP:

09:42:01 200 79.1 s openai-processing-ms 78530
09:43:19 200 77.8 s openai-processing-ms 77297
09:44:38 200 78.6 s openai-processing-ms 78316
09:45:54 200 75.8 s openai-processing-ms 75500
09:47:14 200 79.5 s openai-processing-ms 79205

5/5 succeeded at ~78 s each. Every failing image edit died between 0.33 s and 25.9 s — all shorter. So connection longevity isn’t the variable. And your report closes the loop from the other direction: you have no proxy at all and see the identical failure. Between the two of us, the client-side network is out.

CF-Ray IDs for series D (all 520, 2026-08-10, times are response completion, UTC)

09:28:36 a28df87019fd985a-BRU 7.7 s
09:28:43 a28df8a1dcff1dfe-BRU 7.3 s
09:28:44 a28df8d0da651037-BRU 0.33 s
09:28:51 a28df8d43e51b9ba-BRU 7.1 s
09:29:04 a28df9023edd1327-BRU 12.7 s
09:29:10 a28df95308421327-BRU 5.6 s
09:29:28 a28df9776e0e13d7-BRU 18.1 s
09:29:29 a28df9ea2e3daeaf-BRU 0.53 s
09:29:55 a28df9eedc18df65-BRU 25.9 s
09:30:21 a28dfa92beceb9b9-BRU 25.9 s

Note the 0.33 s and 0.53 s ones — same latency as our successful 400 responses.

Same problem here in Poland. Responses logs in platform openai show that the image generation is happening but all I get in my code is 520: Web server is returning an unknown error.

Tested with responses api, image api with and without an image to edit.
One in a 50 times it comes back with 200

hey. im from europe. server in germany and milan same problem 520 on chat api from yesterday, mainly in /responses endpoint.

Thanks for the detailed reports and diagnostics. I’ve flagged this with the team.

I was also able to reproduce the image-processing-specific HTTP 520 behavior through both /v1/images/editsand /v1/responses with image generation.

I wasn’t able to reproduce the reasoning-model failures during my testing; those requests returned normally.

If others encounter it, please continue sharing the UTC timestamp, CF-Ray, endpoint, model, and approximate region.

4 Likes
cf-ray: a28f6019da3215ec-TXL
server: cloudflare
date: Mon, 10 Aug 2026 13:34:14 GMT

Responses, GPT5-mini, Germany

Thanks for confirming and for reproducing it on your side.

That’s very helpful. I’m still seeing the same image-processing-specific HTTP 520 from Belgium through BRU on both /v1/images/edits and /v1/responses with image generation.

I’ll stop retrying for now to avoid unnecessary API usage and will wait for the team’s investigation.

Same problem via TXL, but no issues at all via a Hetzner server that’s routed via CDG.

We are seeing the same intermittent HTTP 520 errors from Europe.

Environment:
- PHP/cURL application hosted in Germany
- OpenAI Responses API: /v1/responses
- Text-only requests, sometimes using web search
- No image input
- cURL error number: 0
- HTTP status: 520
- No OpenAI request ID was returned

Example:
- Timestamp: 2026-08-10 15:02:36 UTC
- Cloudflare Ray ID: a28fe1db7f72d7b4
- Cloudflare error: unknown_origin_error
- retryable: true
- retry_after: 60 seconds

The response states that the OpenAI origin returned an empty, malformed,
or otherwise unparseable response. Retrying after 60 seconds sometimes
succeeds, so the problem appears to be intermittent. It occurs especially
during longer Responses API requests involving web search.

Good news — at least for now.

I’ve run a few tests again and they are currently going through successfully. I still want to wait a bit before saying it is fully fixed, but right now it looks like it may be working again.

One strange coincidence: just before testing again, I restarted my PC and installed a pending Windows update. After the reboot, the first image-processing test succeeded, followed by a couple more successful tests.

I strongly doubt the Windows update itself fixed this, especially given the number of people reproducing the same 520 issue and the fact that OpenAI was able to reproduce it too. It may simply be that OpenAI deployed a mitigation at around the same time I rebooted.

Still, if anyone affected has a pending system update, it may be worth installing it just to rule that out.

Hopefully this is the beginning of the fix and the requests remain stable.

UPDATE

This issue has now been resolved. Image processing requests through both /v1/images/edits and /v1/responses with image_generation should be working normally again.

If you continue to encounter HTTP 520 errors, please retry your request and contact OpenAI Support with the timestamp, CF-Ray ID, and OpenAI x-request-id if one is returned.

Thank you for your patience and for providing detailed diagnostics while the team investigated.