delta | text (string) | The next chunk of SVG markup. Concatenate all text values in order. |
diagram | diagram (object) | Sent once, after the last delta, by models that describe their drawing: the diagram object. For a request with options it holds the views, the parts and the answer key. Ignore the fields you do not know. |
saved | asset (object) | The generation was stored to your workspace library. Carries the full asset object - id, hosted URLs, cost, latency. |
save_error | message (string) | The SVG was generated (and billed) but could not be stored. The message is "Could not save to your workspace". You still have the markup from the deltas. |
photo | image (string) | Zero data retention workspaces only: the PNG copy of the image, when the model returned one, as a data:image/png;base64, URL (at most 8 MiB decoded). Sent once, before done; it is not stored anywhere. |
done | retention (string, optional), note (string, optional) | Terminal event. Everything you need arrived before it. retention: "none" says the workspace keeps nothing and no saved event came; note: "not_retained" marks a replay under that mode (see Zero data retention). |
error | code (string), message (string) | Terminal frame. The generation failed and its reservation was refunded. code is one of the stable values listed under Failure modes; message is fixed wording for display, never raw upstream text, except for unsupported_input and unsupported_request, where it is the model’s own explanation of what it does not take. |