Deploying custom ComfyUI workflows as APIs
Jul 25, 2024

Summary
Introduced the `build_commands` feature within Truss to allow arbitrary shell commands during the Docker image build process. This enables the installation of custom nodes, model checkpoints, and other dependencies for ComfyUI workflows, caching these during the build to reduce cold start times. The post details how to modify `config.yaml` to include these commands and how to adapt ComfyUI workflow JSONs for API compatibility.
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