Route requests to your ComfyUI service through AI Gateway using a unified endpoint or custom domain.
Prerequisites
Procedure
Log on to the AI Gateway console.
In the navigation pane on the left, choose Instance. In the top menu bar, select a region.
On the Instance page, click the target instance ID.
-
In the navigation pane, select Service and click Create Service. Set Service Source to the ComfyUI service you created and complete the configuration.
NoteOptional: Configure security group rules to allow network traffic from the gateway to the target service.
In the navigation pane on the left, choose Model API, then click Create Model API.
-
On the Create Model API page, select Image Generation, click Create, set the protocol to ComfyUI, and select your routing. From the list of large model services, select the service you created in Step 4.
-
After the configuration is complete, use the AI Gateway endpoint or the configured custom domain to connect to the ComfyUI service.