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:8188. Restrict network access with a firewall or private container network; an exposed ComfyUI server can run resource-intensive workflows.
2. Mark the prompt node
Presenton must know where to inject each image prompt:- Find the positive text-prompt node in ComfyUI.
- Right-click it and choose Title.
- Rename it to exactly
Input Prompt.
_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 numericwidth 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
EmptySD3LatentImageor anEmptyLatentImagevariant. These node types are recognized without renaming.
EmptySD3LatentImage node can look like this:
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
- Open ComfyUI settings and enable Dev mode Options.
- Open File from the ComfyUI menu.
- Choose Export (API).
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 Promptnode contains the generated prompt. - If you configured an editable size node, its
widthandheightmatch 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.