When you deploy a ComfyUI workflow as Serverless API (ComfyUI), you’ll work with three JSON files:Documentation Index
Fetch the complete documentation index at: https://docs.runcomfy.com/llms.txt
Use this file to discover all available pages before exploring further.
workflow.json— full UI export (graph + layout)workflow_api.json— execution graph optimized for API calls (what deployments run)object_info.json— schema registry for all nodes in a running ComfyUI instance
Quick comparison
| File | Contains | Typical use |
|---|---|---|
workflow.json | Nodes + links + canvas layout (groups, positions, UI metadata) | Sharing/editing in the ComfyUI UI |
workflow_api.json | Only what’s required to execute (node inputs + connections) | Referenced by overrides when calling a Deployment |
object_info.json | Input/output schemas for every node in the running instance | Validating inputs, building tools/UIs, debugging |
workflow.json
workflow.json is the full workflow export. It includes nodes, positions, links, and UI elements like groups.
To download workflow.json:
- Open your workflow in the ComfyUI interface on RunComfy.
- Click the Workflow menu in the top-left.
- Select Export.

"nodes" array, which lists each node as an object. Each node object includes keys like "id" (a unique number for the node), "type" (the node’s class, e.g., “SamplerCustomAdvanced”), "pos" (an array [x, y] for canvas position), "size" (an array [width, height] for node dimensions), "flags" (an object for node states like collapsed), "order" (execution order index), "mode" (node mode, often 0 for active), "inputs" (an array of input objects with “name”, “type”, and “link” to a connection ID), "outputs" (an array of output objects with “name”, “type”, “slot_index”, and “links” array of connection IDs), "properties" (an object for node-specific settings), and "widgets_values" (an array of widget values if any).
For example:
workflow_api.json
workflow_api.json is a streamlined workflow export designed for API execution.
It removes UI-related details (node positions, sizes, groups) and keeps only:
- node types (
class_type) - node inputs (
inputs) - connections between nodes
overrides without requiring you to resend the whole workflow.
To get workflow_api.json:
- Open your workflow in the ComfyUI interface on RunComfy.
- Click the Workflow menu in the top-left.
- Select Export (API).

- keys are node IDs (as strings)
- values are node definitions (
inputs,class_type, and optional_meta)
object_info.json
object_info.json is a schema catalog for a running ComfyUI instance. It includes each node’s:
- required/optional inputs
- accepted types and ranges
- output types
- tooltips/metadata
- Launch a ComfyUI instance on RunComfy.
- Note the server ID.
- Visit
https://<server_id>-comfyui.runcomfy.com/object_infoin your browser.

Files in API calls
When making API requests to a deployed workflow:- use
workflow_api.jsonto find node IDs and inputs - send only the values you want to change under
overrides(you don’t include the full file in your request)
