How to serve your ComfyUI model behind an API endpoint
Dec 8, 2023

Summary
This post details the process of deploying ComfyUI image generation pipelines as API endpoints using Baseten and Truss. It explains how to export ComfyUI workflows in an API-compatible JSON format, package them with Truss by adding the workflow JSON and linking model weights via build commands, and deploy them to Baseten. It also provides a Python script for calling the deployed API and generating images, demonstrating the use of positive_prompt, negative_prompt, controlnet_image, and seed parameters.
More from the Baseten AI Model Deployment and Serving Platform trail
- LangChain trains custom models for LangSmith Engine with Baseten Loops
- DeepSeek-V4.1-Flash: more efficient prefill for coding agents
- Blaxel is joining Baseten to build the future of agentic infrastructure
- How Baseten makes pyannote’s diarization models 9.6x faster
- Optimizing delta weight syncs for managed rollouts