All Products
Search
Document Center

Platform For AI:PAI ArtLab ComfyUI

Last Updated:May 12, 2026

This topic describes how to use the ComfyUI tool.

Log on to the PAI ArtLab console.

Prerequisites

Procedure

This section shows you how to use ComfyUI (Shared Edition) to generate a style transfer image and then create a video from that image.

  1. Log in 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 for the image to generate.

  4. Generate a video.

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

      image

    2. Select ComfyUI-WanVideoWrapper > wanvideo_480p_I2V_example_01.

      image

    3. Configure the following parameters.

      Node

      Description

      #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, as well as 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 load the generated style transfer image.

    4. Click execute and wait for the video to generate.

Related operations

Third-party models and custom nodes (ComfyUI plug-ins)

  1. Only ComfyUI (Exclusive Edition) supports third-party models and custom nodes.

  2. Go to the Object Storage Service (OSS) directory mounted to your 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

    • custom_nodes: This directory is used to store node files.

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

    • models: This directory is used to store model files.

      • Example 1: Models required by a node library.

        • As mentioned, a typical node library often involves different models. For the nodes to run correctly, you must download and upload their required models. As shown in the figure below, upload the corresponding models to the FlashVSR and vae subdirectories within the models directory. For the model files shown in the figure,  upload all of them to models/FlashVSR and models/vae.image

      • Example 2: A workflow reports a missing model.

        • For example, the following error occurs because the platform cannot connect to the public internet by default. To resolve this, you must add the model to the models directory. For example, add the depth_anything_v2_vits_fp16.safetensors model to the models/depthanything/ directory in OSS.image

        • If a required directory does not exist in your OSS bucket, create it.

  3. Load a new model or node.

    After you upload a model to the mounted storage space, click PaiCustom > load new model. If the model does not appear, click restart process. After the process restarts, refresh your browser.

    After uploading a node file, click restart process. After the process restarts, refresh your browser.

    If the new model or node is still not found, go to Developer Center in the left navigation pane, find the corresponding ComfyUI service, Stop the service, and then Start it again.

    image

  4. Upload a model or node file. You can upload files to OSS through the console. For large files, refer to How do I upload large objects to OSS?.

Workflow export (API or original)

Shared edition (New UI)

To export the API version of the workflow, click Workflow > Export (API). To export the original workflow, click Export.

image

Shared edition (Old UI)

To export the API version of the workflow, click Save (API format). To export the original workflow, click Save.

image

Exclusive edition

To export the API version of the workflow, click Export (API). To export the original workflow, click Export.

image

Switch UI versions

  • Switch from the old UI to the new UI:

    image

  • Switch from the new UI to the old UI:

    image

ComfyUI API validation

For details, see PAI ArtLab Developer Center Usage Guide.