Home → Help
error code: 524A timeout occurredThe request timed out after N seconds with no response bodyThe important detail is that the clock measures time to first byte, not total duration. A streaming response starts emitting almost immediately, so it can run for many minutes without ever tripping the limit. A non-streaming request with a long reasoning phase sends nothing at all until it is completely finished, and that is exactly the shape that gets cut off.
This is why the failure looks random. The same prompt succeeds when it happens to finish quickly and fails when the model thinks for longer, and it correlates with reasoning depth rather than with anything you changed.
Run the same request with streaming on and off. If one survives and the other does not, you have found it:
# non-streaming — vulnerable to the time-to-first-byte limit
curl -sS -X POST 'YOUR_BASE_URL/chat/completions' \
-H 'Authorization: Bearer YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"model":"MODEL","stream":false,"messages":[...]}'
# streaming — first byte arrives in well under a second
-d '{"model":"MODEL","stream":true,"messages":[...]}'
Streaming also gives you a far better failure mode: if something goes wrong midway you still have the partial output, instead of losing the whole call.
https://api.apiclan.us/v1 with no such limit.Last checked 2026-08-24. Written from problems diagnosed on a live OpenAI-compatible gateway, not collected from other sites.