This topic describes how to use the Developer Center to verify ComfyUI API integration.
Verify ComfyUI API integration
API edition
ComfyUI API edition is used for API calls in multi-ComfyUI instance scenarios. It is designed for developers to implement integration, and has no web graphical interface. Because ComfyUI is a stateful service, in multi-ComfyUI instance scenarios, use an asynchronous queue service of EAS to properly call the ComfyUI service.
Prerequisites
You have a Python environment and have installed the EAS SDK (for asynchronous queue service): pip install eas_prediction
Procedure
-
Log on to the PAI ArtLab console. Choose Developer Center in the left-side navigation pane and click the Custom Service tab. Then, click Create Custom Service.
Select ComfyUI (API Edition) for Service Edition.
-
When the Status changes to Running, click Call Information. On the Response URL (Internet) tab, get the URL, token, endpoint, and service ID.

-
Replace the corresponding content in the code with the call information you just got, and run the sample code.
-
After running the code, get the file name from the results.

-
In the ArtLab, hover over
in the upper-right corner. Click the link next to Storage to go to the OSS bucket and get the storage path.
-
Concatenate the OSS image address and access it. Format: OSS bucket path/output/file name
For example, 26****/data-115****************/output/ComfyUI_00000000_174427782695938_599ffc33-edea-4e64-bb60-28e834940f5c_.png
Exclusive edition
ComfyUI exclusive edition supports both API calls and online debugging. The verification process is similar to that of the API edition.
Prerequisites
You have a Python environment.
Procedure
-
Log on to the PAI ArtLab console. Choose Developer Center in the left-side navigation pane and click the Custom Service tab. Then, click Create Custom Service.
Select ComfyUI (Exclusive edition) for Service Edition.
-
When the Service Status changes to Running, click Call Information. On the Internet Endpoint tab, get the URL and token.

-
Replace the corresponding content in the code with the call information you just got, and run the sample code.
-
After running the code, get the file name from the results.

-
In the ArtLab, hover over
in the upper-right corner. Click the link next to Storage to go to the OSS bucket and get the storage path.
-
Concatenate the OSS image address and access it. Format: OSS Bucket path/output/file name
For example, 26****/data-115****************/output/ComfyUI_00000000_174427782695938_599ffc33-edea-4e64-bb60-28e834940f5c_.png