Export

GET /diagrams/{id}/export is free. Pass the format as a query parameter.
The xml returned on generate, edit, and fix is already the native draw.io format, so you only need export when you want SVG or a standalone file. Confirm the current format list via Meta → formats.

Cost and availability

Exports are free on every plan and never consume credits. You pay to create a diagram, never to get it out. Diagrams exported on the free plan carry a small “Made with Diagrams.so” mark inside the SVG. Paid plans export without it.