Skip to main content
Presenton can send generated image prompts to your own ComfyUI workflow. This supports local or hosted models such as FLUX, Stable Diffusion, and SDXL while keeping the image pipeline under your control.

Before you start

  • Build and test a text-to-image workflow directly in ComfyUI.
  • Ensure the Presenton container can reach the ComfyUI server.
  • Decide whether to configure the provider in Settings or with environment variables.

1. Expose ComfyUI to Presenton

Start ComfyUI on an interface reachable from the Presenton container:
The default port is 8188. Restrict network access with a firewall or private container network; an exposed ComfyUI server can run resource-intensive workflows.
localhost inside the Presenton container points to Presenton, not to ComfyUI running on the host.

2. Mark the prompt node

Presenton must know where to inject each image prompt:
  1. Find the positive text-prompt node in ComfyUI.
  2. Right-click it and choose Title.
  3. Rename it to exactly Input Prompt.
Presenton searches the exported workflow for _meta.title equal to Input Prompt (case-insensitive), then replaces its writable prompt text. A compatible node resembles:

3. Set image dimensions (optional)

When a presentation template provides an image area’s width and height, Presenton can pass those dimensions to ComfyUI. To use them, include a node with editable numeric width and height inputs that meets one of these conditions:
  • Its title is exactly Image Size (case-insensitive). Right-click the node and choose Title to rename it.
  • Its node type is EmptySD3LatentImage or an EmptyLatentImage variant. These node types are recognized without renaming.
For example, an API-exported EmptySD3LatentImage node can look like this:
Presenton replaces the node’s width and height for each image request when template dimensions are available. If no matching node has editable numeric width and height inputs, Presenton leaves the workflow’s exported dimensions in place. Linked width or height inputs also remain under the workflow’s control. You can therefore use your workflow’s default image size without adding an Image Size node.

4. Export the API workflow

  1. Open ComfyUI settings and enable Dev mode Options.
  2. Open File from the ComfyUI menu.
  3. Choose Export (API).
Use the API export, not the normal workflow save. Presenton needs the API node graph.

5. Configure Presenton

In Settings → Image provider, select ComfyUI, enter the server URL, paste the complete exported workflow JSON, and save. For a managed deployment, set the same values as environment variables:
COMFYUI_WORKFLOW contains the exported JSON itself, not a filesystem path. For Compose, quote or escape the JSON according to your environment-file tooling. The Settings UI is often easier for large workflows.

6. Test the integration

Generate a short presentation that requests images, then verify:
  • ComfyUI receives a job at /prompt.
  • The Input Prompt node contains the generated prompt.
  • If you configured an editable size node, its width and height match the template image area. Otherwise, the workflow keeps its exported dimensions.
  • The workflow produces an image output rather than only previews or latent data.
  • Presenton can read the ComfyUI history and download the output.
  • Repeated images use different seeds where supported by the workflow.

Troubleshooting

Images and web search

Compare ComfyUI with stock, hosted, and OpenAI-compatible image providers.