Deploy your ComfyUI workflows as scalable APIs or shareable Gradio AI Apps
FlowScale allows you to deploy your ComfyUI workflows as scalable APIs or shareable AI apps using Gradio UIs. This guide will cover how to prepare, deploy, and monitor your workflows, as well as the scalability options and post-deployment processes.
Before deploying a workflow as an API or Gradio UI, you need to configure the workflow settings, particularly input/output (I/O) settings, and test it on the ComfyUI instance.
Open the Workflow:
If you are deploying an existing workflow, you must first import it and run it successfully on the ComfyUI instance. Ensure that all models and custom nodes are set up correctly. If you are building a workflow from scratch, make sure you’ve saved it successfully.
Workflow Ready for Deployment
Saving the Workflow:
Once the workflow has been run successfully, save the changes. An API JSON file is created along with the workflow file, which is required for deployment.
See the Building Workflows document for more details.
Setting Up I/O Configurations:
API JSON -> I/O Configuration
Select input and output workflow nodes
Select Input Parameters & Save
Before deploying the workflow, ensure it runs smoothly on the ComfyUI instance. Running it verifies that all nodes and models are properly configured and ready for deployment.
Tip: If the workflow runs successfully, it confirms that all necessary components (models, nodes) are installed and functional.
Deploying a workflow as an API on FlowScale enables scalable, serverless API endpoints for external use.
Deploy the Workflow:
Deploy button
Deploy Workflows
Confirm Deployment:
API Deployments Tab
Deploying Workflows
After deployment, FlowScale generates API documentation using Swagger. This documentation includes details on how to call the API, endpoints, request/response formats, and authentication information.
You can access the API Docs by clicking the API Docs button in the deployment section.
API Docs Link
API Docs
Once deployed, the API endpoints can be accessed via the API Docs section.
Authentication: API requests are authenticated using an API Key, which can be found in the API Settings under Project Settings. You can regenerate the key or disable authentication to make the API publicly accessible.
API Key
Deploying a workflow as a Gradio UI creates a shareable interface that can be accessed via a URL.
Deploy the Workflow:
Follow the same steps as API deployment (explained above). Once the workflow is deployed, a Gradio UI link will be generated alongside the API endpoints.
Accessing and Sharing Gradio UIs:
Once deployed, the Gradio UI link will appear in the Gradio UI section of the deployment page. This link can be shared with others, and they do not need to run ComfyUI on their machine to access the workflow.
Gradio URLs
AI App (Gradio UI)
FlowScale workflows are designed to be scalable and handle multiple API requests efficiently.
Once a workflow is deployed, it’s essential to monitor its performance and make updates as needed.
Deployment Logs: You can view the deployment logs to check for errors, API usage statistics, and other relevant details.
To access the logs, go to the Deployment Tab and click See Logs next to the deployed workflow.
See Deployment Logs
See Current Deployment
Deploying workflows in FlowScale is a seamless process that enables scalable API endpoints and shareable Gradio UIs. By following this guide, you can ensure that your workflows are properly configured, optimized for performance, and monitored effectively after deployment.
Deploy your ComfyUI workflows as scalable APIs or shareable Gradio AI Apps
FlowScale allows you to deploy your ComfyUI workflows as scalable APIs or shareable AI apps using Gradio UIs. This guide will cover how to prepare, deploy, and monitor your workflows, as well as the scalability options and post-deployment processes.
Before deploying a workflow as an API or Gradio UI, you need to configure the workflow settings, particularly input/output (I/O) settings, and test it on the ComfyUI instance.
Open the Workflow:
If you are deploying an existing workflow, you must first import it and run it successfully on the ComfyUI instance. Ensure that all models and custom nodes are set up correctly. If you are building a workflow from scratch, make sure you’ve saved it successfully.
Workflow Ready for Deployment
Saving the Workflow:
Once the workflow has been run successfully, save the changes. An API JSON file is created along with the workflow file, which is required for deployment.
See the Building Workflows document for more details.
Setting Up I/O Configurations:
API JSON -> I/O Configuration
Select input and output workflow nodes
Select Input Parameters & Save
Before deploying the workflow, ensure it runs smoothly on the ComfyUI instance. Running it verifies that all nodes and models are properly configured and ready for deployment.
Tip: If the workflow runs successfully, it confirms that all necessary components (models, nodes) are installed and functional.
Deploying a workflow as an API on FlowScale enables scalable, serverless API endpoints for external use.
Deploy the Workflow:
Deploy button
Deploy Workflows
Confirm Deployment:
API Deployments Tab
Deploying Workflows
After deployment, FlowScale generates API documentation using Swagger. This documentation includes details on how to call the API, endpoints, request/response formats, and authentication information.
You can access the API Docs by clicking the API Docs button in the deployment section.
API Docs Link
API Docs
Once deployed, the API endpoints can be accessed via the API Docs section.
Authentication: API requests are authenticated using an API Key, which can be found in the API Settings under Project Settings. You can regenerate the key or disable authentication to make the API publicly accessible.
API Key
Deploying a workflow as a Gradio UI creates a shareable interface that can be accessed via a URL.
Deploy the Workflow:
Follow the same steps as API deployment (explained above). Once the workflow is deployed, a Gradio UI link will be generated alongside the API endpoints.
Accessing and Sharing Gradio UIs:
Once deployed, the Gradio UI link will appear in the Gradio UI section of the deployment page. This link can be shared with others, and they do not need to run ComfyUI on their machine to access the workflow.
Gradio URLs
AI App (Gradio UI)
FlowScale workflows are designed to be scalable and handle multiple API requests efficiently.
Once a workflow is deployed, it’s essential to monitor its performance and make updates as needed.
Deployment Logs: You can view the deployment logs to check for errors, API usage statistics, and other relevant details.
To access the logs, go to the Deployment Tab and click See Logs next to the deployed workflow.
See Deployment Logs
See Current Deployment
Deploying workflows in FlowScale is a seamless process that enables scalable API endpoints and shareable Gradio UIs. By following this guide, you can ensure that your workflows are properly configured, optimized for performance, and monitored effectively after deployment.