fofr/any-comfyui-workflow 🖼️❓📝🔢✓ → 🖼️
About
Run any ComfyUI workflow. Guide: https://github.com/replicate/cog-comfyui
Example Output
Output
Performance Metrics
1.80s
Prediction Time
1.81s
Total Time
All Input Parameters
{
"output_format": "webp",
"workflow_json": "{\n \"3\": {\n \"inputs\": {\n \"seed\": 156680208700286,\n \"steps\": 10,\n \"cfg\": 2.5,\n \"sampler_name\": \"dpmpp_2m_sde\",\n \"scheduler\": \"karras\",\n \"denoise\": 1,\n \"model\": [\n \"4\",\n 0\n ],\n \"positive\": [\n \"6\",\n 0\n ],\n \"negative\": [\n \"7\",\n 0\n ],\n \"latent_image\": [\n \"5\",\n 0\n ]\n },\n \"class_type\": \"KSampler\",\n \"_meta\": {\n \"title\": \"KSampler\"\n }\n },\n \"4\": {\n \"inputs\": {\n \"ckpt_name\": \"SDXL-Flash.safetensors\"\n },\n \"class_type\": \"CheckpointLoaderSimple\",\n \"_meta\": {\n \"title\": \"Load Checkpoint\"\n }\n },\n \"5\": {\n \"inputs\": {\n \"width\": 1024,\n \"height\": 1024,\n \"batch_size\": 1\n },\n \"class_type\": \"EmptyLatentImage\",\n \"_meta\": {\n \"title\": \"Empty Latent Image\"\n }\n },\n \"6\": {\n \"inputs\": {\n \"text\": \"beautiful scenery nature glass bottle landscape, purple galaxy bottle,\",\n \"clip\": [\n \"4\",\n 1\n ]\n },\n \"class_type\": \"CLIPTextEncode\",\n \"_meta\": {\n \"title\": \"CLIP Text Encode (Prompt)\"\n }\n },\n \"7\": {\n \"inputs\": {\n \"text\": \"text, watermark\",\n \"clip\": [\n \"4\",\n 1\n ]\n },\n \"class_type\": \"CLIPTextEncode\",\n \"_meta\": {\n \"title\": \"CLIP Text Encode (Prompt)\"\n }\n },\n \"8\": {\n \"inputs\": {\n \"samples\": [\n \"3\",\n 0\n ],\n \"vae\": [\n \"4\",\n 2\n ]\n },\n \"class_type\": \"VAEDecode\",\n \"_meta\": {\n \"title\": \"VAE Decode\"\n }\n },\n \"9\": {\n \"inputs\": {\n \"filename_prefix\": \"ComfyUI\",\n \"images\": [\n \"8\",\n 0\n ]\n },\n \"class_type\": \"SaveImage\",\n \"_meta\": {\n \"title\": \"Save Image\"\n }\n }\n}\n",
"output_quality": 80,
"randomise_seeds": true,
"force_reset_cache": false,
"return_temp_files": false
}
Input Parameters
- input_file
- Input image, video, tar or zip file. Read guidance on workflows and input files here: https://github.com/replicate/cog-comfyui. Alternatively, you can replace inputs with URLs in your JSON workflow and the model will download them.
- output_format
- Format of the output images
- workflow_json
- Your ComfyUI workflow as JSON string or URL. You must use the API version of your workflow. Get it from ComfyUI using 'Save (API format)'. Instructions here: https://github.com/replicate/cog-comfyui
- output_quality
- Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.
- randomise_seeds
- Automatically randomise seeds (seed, noise_seed, rand_seed)
- force_reset_cache
- Force reset the ComfyUI cache before running the workflow. Useful for debugging.
- return_temp_files
- Return any temporary files, such as preprocessed controlnet images. Useful for debugging.
Output Schema
Output
Example Execution Logs
Checking inputs
====================================
Checking weights
✅ SDXL-Flash.safetensors exists in ComfyUI/models/checkpoints
====================================
Randomising seed to 1052882187
Running workflow
[ComfyUI] got prompt
Executing node 3, title: KSampler, class type: KSampler
[ComfyUI]
[ComfyUI] 0%| | 0/10 [00:00<?, ?it/s]
[ComfyUI] 10%|█ | 1/10 [00:00<00:01, 7.87it/s]
[ComfyUI] 20%|██ | 2/10 [00:00<00:01, 7.43it/s]
[ComfyUI] 30%|███ | 3/10 [00:00<00:00, 7.28it/s]
[ComfyUI] 40%|████ | 4/10 [00:00<00:00, 7.21it/s]
[ComfyUI] 50%|█████ | 5/10 [00:00<00:00, 7.16it/s]
[ComfyUI] 60%|██████ | 6/10 [00:00<00:00, 7.02it/s]
[ComfyUI] 70%|███████ | 7/10 [00:00<00:00, 7.11it/s]
[ComfyUI] 80%|████████ | 8/10 [00:01<00:00, 7.19it/s]
[ComfyUI] 90%|█████████ | 9/10 [00:01<00:00, 7.46it/s]
[ComfyUI] 100%|██████████| 10/10 [00:01<00:00, 7.73it/s]
Executing node 8, title: VAE Decode, class type: VAEDecode
Executing node 9, title: Save Image, class type: SaveImage
[ComfyUI] 100%|██████████| 10/10 [00:01<00:00, 7.39it/s]
[ComfyUI] Prompt executed in 1.68 seconds
outputs: {'9': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}}
====================================
ComfyUI_00001_.png
Version Details
- Version ID
67ed4ba04ce0842446e16c428b1be131452815d01810861f71d171f63e8ba8f0- Version Created
- July 28, 2025