Save Format vs API Format
The ComfyUI frontend can save workflows in two formats:
The key difference: API format omits UI metadata (positions, colors, groups, node sizes) that is only needed for visual editing in the frontend. This keeps the JSON smaller and cleaner for programmatic use.
How to Export
Open your workflow in the ComfyUI frontend, then navigate toFile → Export Workflow (API):

.json file containing only the API-relevant data:
Converting Between Formats
If you have a save-format workflow and need it in API format, the simplest method is:- Open the
.jsonfile usingFile → Loadin the frontend - Export it via
File → Export Workflow (API)
x, y, width fields from each node and removes the groups and extra sections from the root JSON.
Related Pages
- APIs Overview — Compare Cloud and Server API options
- Cloud API Overview — Submit API-format workflows to Comfy Cloud
- API Examples — See API-format workflows in action
- Getting an API Key — Required for Cloud API and Partner Nodes