Skip to main content
When you deploy a ComfyUI workflow as Serverless API (ComfyUI), you’ll work with three JSON files:
  • 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
Examples in this guide use the RunComfy/FLUX workflow.

Quick comparison


workflow.json

workflow.json is the full workflow export. It includes nodes, positions, links, and UI elements like groups. To download workflow.json:
  1. Open your workflow in the ComfyUI interface on RunComfy.
  2. Click the Workflow menu in the top-left.
  3. Select Export.
Alt download ComfyUI workflow.json The file’s main content is in the "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:
For the complete example, you can check flux_workflow.json.

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
When you deploy a workflow on RunComfy, the platform stores this file internally and uses it as the basis for serverless API calls. During API calls, RunComfy references this stored file and applies your overrides without requiring you to resend the whole workflow. To get workflow_api.json:
  1. Open your workflow in the ComfyUI interface on RunComfy.
  2. Click the Workflow menu in the top-left.
  3. Select Export (API).
Alt download ComfyUI workflow_api.json The file is a single JSON object where:
  • keys are node IDs (as strings)
  • values are node definitions (inputs, class_type, and optional _meta)
For example:
For the complete example, you can check flux_workflow_api.json.

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
Use this file to validate inputs (for example in your own UI), or to build tools that dynamically generate/modify workflows. Fetch it from a running server:
  1. Launch a ComfyUI instance on RunComfy.
  2. Note the server ID.
  3. Visit https://<server_id>-comfyui.runcomfy.com/object_info in your browser.
Alt download ComfyUI object_info.json For example:
For the complete example, you can check flux_object_info.json.

Files in API calls

When making API requests to a deployed workflow:
  • use workflow_api.json to 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)
This keeps requests efficient and makes it easy to evolve your workflow over time. For exact formatting and examples, refer to Async Queue Endpoints.