Skip to main content

ComfyUI (Local)

Connect to a local ComfyUI instance to perform highly customizable node-based image generation.

  • Setup Requirements:
    • The ComfyUI server must be running. For example, you need to enable CORS by starting the server with the --enable-cors-header flag. Load your desired workflow in ComfyUI and click "Save (API Format)". Paste the resulting JSON into the ComfyUI Workflow (JSON) field of this app.
  • Workflow Placeholders: This app automatically replaces the following placeholders within the workflow JSON:
    • The string ##prompt## is replaced with the AI's positive image prompt.
    • The string ##negative_prompt## is replaced with the AI's negative image prompt.
    • The number 1234567890 is replaced with a random seed for each generation. Please ensure this number exists in the seed input of the KSampler.

Troubleshooting

Local server is not working

Check the browser's developer console (F12) for "CORS" or "network" errors. This is the most common issue. Ensure the server is started with the correct flag (e.g., --enable-cors-header for ComfyUI) and that the endpoint URL in this app is correct.