All Products
Search
Document Center

API Gateway:Use AI Gateway to proxy a ComfyUI service

Last Updated:Jul 17, 2026

Route requests to your ComfyUI service through AI Gateway using a unified endpoint or custom domain.

Prerequisites

Create an AI Gateway

If you do not have an active AI Gateway, create an AI Gateway instance.

Procedure

  1. Log on to the AI Gateway console.

  2. In the navigation pane on the left, choose Instance. In the top menu bar, select a region.

  3. On the Instance page, click the target instance ID.

  4. In the navigation pane, select Service and click Create Service. Set Service Source to the ComfyUI service you created and complete the configuration.

    Note

    Optional: Configure security group rules to allow network traffic from the gateway to the target service.

  5. In the navigation pane on the left, choose Model API, then click Create Model API.

  6. 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.

  7. After the configuration is complete, use the AI Gateway endpoint or the configured custom domain to connect to the ComfyUI service.