All Products
Search
Document Center

API Gateway:Create a Model API product

Last Updated:Jun 02, 2026

Package a Model API into an API product and publish it to a developer portal for developers to browse and subscribe.

Prerequisites

A Model API is created. Manage Model APIs.

A developer portal is created. Create a portal.

Create an API product

  1. Log on to the Open Platform console.

  2. In the left-side navigation pane, click API products.

  3. Click Create API product.

  4. In the creation panel, configure the basic product information.

    Field

    Description

    Product name

    Required. A unique identifier for the product. Example: model-api-product.

    Product description

    Required. A brief description of the product's features and purpose.

    Product type

    Required. Select Model API.

    Product category

    Optional. Select or create a product category.

    Auto subscription approval

    Automatically approves developer subscription requests. The API product setting overrides the portal-level setting.

    Product icon

    Optional. Provide a URL or upload a local file.

  5. Configure the model parameters.

    Parameter

    Description

    Model

    The model name. Example: qwen-turbo.

    Max tokens

    The maximum number of tokens to generate. Controls the response length.

    Temperature

    Controls the randomness of generated content. Valid values: 0 to 2.

    Note

    These parameters are used for debugging in the HiMarket portal. Missing parameters cause model invocation to fail. Configure all required parameters.

  6. Click OK.

Associate a Model API

Associate the API product with a Model API before publishing it to a developer portal.

  1. On the details page of the API product, click Associate API.

  2. Select a gateway instance and a Model API.

  3. Click Associate.

After association, the product status changes to To be published and the Model API routing information appears on the page.

Write a user guide

Write a user guide that includes a product introduction, API reference, and code samples to help developers get started quickly.

  1. On the details page of the API product, click the User guide tab.

  2. Write documentation in the Markdown editor, or upload an existing Markdown file.

  3. Click Save.

Publish to portal

  1. Verify that the product status is To be published.

  2. Click Publish to portal.

  3. Select the target developer portal.

  4. Click Publish.

After publishing, developers can browse and subscribe to the product on the developer portal.