Save Format vs API Format
The ComfyUI frontend can save workflows in two formats:| Save Format | API Format | |
|---|---|---|
| File menu | File → Save or Ctrl+S | File → Export Workflow (API) |
| File extension | .json | .json |
| Node keys | Node titles or labels | Numeric node IDs |
| Widget values | Included | Included |
| Position/layout data | Included (x, y, width) | Excluded |
| Colors/groups | Included | Excluded |
| Usage | Re-opening in the frontend | API submission |
| Can be loaded in UI | Yes | Yes, but without layout |
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