AI SDK raises the Responses event limit for large generated images, fixing 'images arrived but the request failed'
On November 26, AI SDK added configurable maxEventSize handling and raised the per-event limit used by OpenAI and xAI Responses models from the 64 MiB default to 512 MiB. Because response.completed repeats every output item, several large base64 images could exceed the limit and fail the request after the images had already reached the client.
Why it matters
A generative interface must complete the whole multi-image response, not merely render the first asset. When resources appear but the protocol ends in error, the UI presents contradictory success and failure state; retry can then regenerate assets, repeat charges, or overwrite results the user already inspected.
A closer look
The shared event-stream parser now exposes maxEventSize, and the OpenAI and xAI Responses adapters set it to 512 MiB. The same change propagates through ai 7.0.183, xAI 5.0.52, workflow 2.0.115, and related dependencies in the coordinated release set.
Who this is for
Teams building multi-image generation UIs, OpenAI or xAI Responses streaming adapters, edge gateways, result recovery, or retry interfaces.
Original sources
Revisions & corrections (1)
— New evidence-complete official framework fix affecting large multimodal generative-UI streams, with the failure mode, scope, and resource limitation stated in the release.