This topic describes how to use the Developer Center to verify ComfyUI API integration.
Log on to the PAI ArtLab console.
Verify ComfyUI API integration
API edition
The API Edition of ComfyUI is designed for developers to make API calls across multiple ComfyUI instances. It does not have a web-based graphical user interface. Because ComfyUI is a stateful service, you must use the asynchronous queue service of Elastic Algorithm Service (EAS) to call the ComfyUI service when you are using multiple ComfyUI instances.
Prerequisites
You have a Python environment and have installed the EAS software development kit (SDK) dependency for the asynchronous queue: pip install eas_prediction
Procedure
Log on to the PAI ArtLab console. On the Developer Center page, click the Custom Service tab, and then click Create Custom Service.
Set Service Version to ComfyUI (API Edition).
Wait until the Service Status changes to Running. Click Call Information. On the Request URL (Internet) tab, obtain the request URL, token, endpoint, and service ID.

Replace the corresponding parameters in the code with the call information that you obtained, and then run the code.
After the code runs, retrieve the file name from the output.

On the PAI ArtLab page, hover the mouse pointer over the
icon in the upper-right corner. Click Storage to access the OSS bucket and obtain the storage path.
Construct the OSS image URL and access it. Use the following format: OSS bucket path/output/file name
For example, 26****/data-115****************/output/ComfyUI_00000000_174427782695938_599ffc33-edea-4e64-bb60-28e834940f5c_.png
Exclusive edition
The Exclusive Edition of ComfyUI supports both API calls and web-based debugging. For the verification process, see the API Edition section.
Prerequisites
You have a Python environment.
Procedure
Log on to the PAI ArtLab console. On the Developer Center page, click the Custom Service tab, and then click Create Custom Service.
Set Service Version to ComfyUI (Exclusive Edition).
Wait until the Service Status changes to Running. Click Call Information. On the Internet Endpoint tab, obtain the request URL and token.

Replace the corresponding parameters in the code with the call information that you obtained, and then run the code.
After the code runs, retrieve the file name from the output.

On the PAI ArtLab page, hover the mouse pointer over the
icon in the upper-right corner. Click Storage to access the OSS bucket and obtain the storage path.
Construct the OSS image URL and access it. Use the following format: OSS bucket path/output/file name
For example, 26****/data-115****************/output/ComfyUI_00000000_174427782695938_599ffc33-edea-4e64-bb60-28e834940f5c_.png