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. Export the API workflow
- Open ComfyUI settings and enable Dev mode Options.
- Open File from the ComfyUI menu.
- Choose Export (API).
4. 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.
5. 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. - 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.