Browse and run applications from Application Gallery, create custom applications from ComfyUI workflows, and share them.
Log on to the PAI ArtLab console.
Prerequisites
-
PAI ArtLab activation and authorization are complete. For details, see PAI ArtLab activation and authorization.
-
(Optional) Claim free trial resources or coupons, or purchase a resource plan. For details, see PAI ArtLab billing.
Run an application from Application Gallery
Application Gallery tab in App Square section lists ready-to-use applications. This example uses New Year Red Packet With Q-style Portrait (Q版人像贺岁红包) to demonstrate the workflow.
-
Log on to the PAI ArtLab console and click Application in the left-side navigation pane.
-
On the Application Gallery tab, click the New Year Red Packet With Q-style Portrait (Q版人像贺岁红包) card. On the details page, click Run Application > Shared Edition.

-
Upload a portrait photo, enter keywords, and select a gender.
-
Click Start Generation.
After image generation, delete, download, or zoom in to view it.
Create an application
Applications run on ComfyUI workflows. Prepare and export the workflow in the required format before creating an application.
Step 1: Verify the workflow in ComfyUI
ComfyUI is available in three versions:
|
Version |
Description |
|
ComfyUI (Shared Edition) |
Shared compute resources |
|
ComfyUI (Exclusive Edition) |
Exclusive compute resources |
|
ComfyUI (Exclusive Edition) GP7V Type |
Exclusive resources with GP7V instances |
Ensure the workflow runs successfully in the version your application will use.
Step 2: Export the workflow in API format
After successful workflow execution, export it as an API-format file. For instructions, see Export an API or original version of a workflow file.
Step 3: Set up basic information and load the workflow
-
Log on to the PAI ArtLab console. In the left-side navigation pane, choose Application > My Applications, then click Create Application.

-
In Basic Information, set Application Name and upload an Application Thumbnail.
-
In Workflow Configuration, configure the following settings. Workflow loading process differs by ComfyUI version. Follow the instructions for your selected version.
Setting
Description
API Format Workflow
Upload the exported API-format workflow file.
Tool Edition of Workflow
Select the ComfyUI version to use.
ComfyUI Service
Required only for ComfyUI (Exclusive Edition) or ComfyUI (Exclusive Edition) GP7V Type. Select a running ComfyUI service of matching version.
Load workflow for ComfyUI (Shared Edition)
Verify that workflow runs successfully in ComfyUI (Shared Edition) and is exported in API format.

Upload exported workflow file. For Tool Edition of Workflow, select ComfyUI (Shared Edition), then click Load Workflow.

Page displays message "Workflow loaded".

Load workflow for ComfyUI (Exclusive Edition)
Verify that workflow runs successfully in ComfyUI (Exclusive Edition) and is exported in API format.

Upload exported workflow file. For Tool Edition of Workflow, select ComfyUI (Exclusive Edition).

Select a running ComfyUI (Exclusive Edition) service, then click Load Workflow.

If no ComfyUI (Exclusive Edition) service is running, click Create ComfyUI Service to create one, or click Start for an existing service.

Page displays message "Workflow loaded".

Load workflow for ComfyUI (Exclusive Edition) GP7V Type
Verify that workflow runs successfully in ComfyUI (Exclusive Edition) GP7V Type and is exported in API format.

Upload exported workflow file. For Tool Edition of Workflow, select ComfyUI (Exclusive Edition). Select a running ComfyUI (Exclusive Edition) GP7V Type service, then click Load Workflow.

If no ComfyUI (Exclusive Edition) GP7V Type service is running, click Create ComfyUI Service to create one, or click Start for an existing service.
Page displays message "Workflow loaded".

Step 4: Configure output and input
After workflow loading, configure the following settings on Application Configuration tab:
-
Output Type: Select Image or Video.
-
Output Configuration: Specify workflow's final output node. This corresponds to the output node of the workflow. To find node ID, see How do I display and view node IDs?


-
Input Configuration: Define which workflow input nodes appear on application's user interface. This corresponds to the input nodes of the workflow. To find node ID, see How do I display and view node IDs?


Step 5: Publish application
Click Publish Application. After publishing, view or run the application on My Applications tab.
Share an application
-
On My Applications tab, click
(Share) icon in the upper-right corner of application card. -
On H5 Mobile (mobile web) tab, upload an Application Thumbnail, then click Generate Sharing URL. Upload a portrait image at 750 x 1624 pixels for optimal mobile preview.

-
After application starts, on Application tab, click Generate Share Link to view share link and QR code.
Share link is valid for 8 hours.

Manage applications
On My Applications tab, run, edit, share, or delete applications.

FAQ
How do I export a ComfyUI workflow as an API-format file?
How do I display and view node IDs?
ComfyUI (Shared Edition)
-
Click the Settings gear icon
in the top menu, then select Settings. -
In the settings panel, go to Lite Graph > Display Node ID and set it to Show All.

Node ID now appears on each node in the editor.

ComfyUI (Exclusive Edition)
-
Click the Settings gear icon
in the top menu, then select Settings.
-
In the settings panel, go to Lite Graph > Display Node ID and set it to Show All.

Node ID now appears on each node in the editor.
