All Products
Search
Document Center

Platform For AI:PAI ArtLab ComfyUI

Last Updated:Dec 24, 2025

This topic describes how to use the ComfyUI tool.

Log on to the PAI ArtLab console.

Prerequisites

Procedure

This topic provides an example of how to use ComfyUI (Shared Edition) to generate a style transfer image and then create a video from that image.

  1. Log on to PAI ArtLab. In the upper-right corner, hover over the image icon and select the China (Shanghai) region.

  2. On the Toolbox page, click the ComfyUI (Shared Edition) card to start the tool.

  3. Generate a style transfer image.

    1. Drag the sample workflow file into the ComfyUI interface.

    2. In the Upload Style Image ① area, upload a sample style image. In the Upload Style Image ② area, upload a sample building image. Then, click Execute and wait until the image is generated.

  4. Generate a video.

    1. On the workflow page, click image to browse sample templates.

      image

    2. Select ComfyUI-WanVideoWrapper > wanvideo_480p_I2V_example_01.

      image

    3. Configure the parameters as follows.

      Node

      Configuration

      #22 WanVideoWrapper

      (WanVideo Model Loader)

      Set model to WanVideo/Wan2_1-I2V-14B-480P_fp8_e4m3fn.safetensors.

      #16 WanVideoWrapper

      (WanVideo TextEncode)

      This iconic building is completely covered by beautiful pink flowers, lush green leaves, intricate vines, spring garden aesthetics, along with falling petals and fluttering butterflies. Surrealism, rich details, warm sunshine, 8K resolution, realistic natural and architectural scenes, advanced aesthetics, surrealism, high quality, and ultra clarity.

      #21 WanVideoWrapper

      (WanVideo VAE Loader)

      Set model_name to WanVideo_1_VAE_bf16.safetensors.

      #18

      (Load Image)

      Click upload to upload the generated style transfer image.

    4. Click Execute and wait until the video is generated.

Related operations

Use third-party models and install custom nodes (ComfyUI plug-ins)

  1. Make sure that you deploy the Exclusive Edition of ComfyUI. The Shared Edition does not support third-party models or custom nodes.

  2. Go to the Object Storage Service (OSS) storage directory that is mounted to the workflow. In the upper-right corner, click the image icon, and then click the storage bucket link.

    image

    The OSS path contains the following directory structure.

    image

    Where:

    • custom_nodes: This directory stores node files.

      • Example: To install a node from a third-party platform, download the node library package and upload it to the custom_nodes directory. For example, download the ComfyUI_FlashVSR-main folder and upload it to the custom_nodes directory.imageimageimage

    • models: This directory stores model files.

      • Example 1: Installing model dependencies for a node library

        • As mentioned previously, a node library typically uses multiple models. To ensure the node runs correctly, you must upload its dependent model files. As shown in the figure below, upload the required models to the models path and place them in the FlashVSR and vae subpaths.image

      • Example 2: Resolving a "missing model" error

        • If an error message that indicates a missing model appears, as shown in the figure below, it is because the platform cannot connect to the public network by default. To resolve this issue, add the missing model to the models directory. For this specific error, add the depth_anything_v2_vits_fp16.safetensors model to the models/depthanything/ directory in OSS.image

        • If the required path does not exist in OSS, create it.

  3. Load the new model or node.

    After you upload a model to the mounted storage space, click PaiCustom > Load New Model. If the model is not found, click Restart Process. After the process restarts, refresh the browser page.

    After you upload a node file, click Restart Process. After the process restarts, refresh the browser page.

    If you still cannot find the new model or node, in the navigation pane on the left, click Developer Center. Find the corresponding ComfyUI service, Stop the service, and then Start it again.

    image

  4. Upload model or node files. You can upload files to OSS using the console. For large files, see Upload large files to OSS.

Export the API version or original file of a workflow

New ComfyUI (Shared Edition) page

To export the workflow file in API format, click Workflow > Export (API). To export the original workflow file, click Export.

image

Old ComfyUI (Shared Edition) page

To export the workflow file in API format, click Save (API format). To export the original workflow file, click Save.

image

ComfyUI (Exclusive Edition) page

To export the workflow file in API format, click Export (API). To export the original workflow file, click Export.

image

Switch between new and old ComfyUI versions

  • Switch from the old version to the new version:

    image

  • Switch from the new version to the old version:

    image

Verify ComfyUI API integration

For more information, see PAI ArtLab Developer Center usage guide.